Ryan Brown | 50b473a | 2014-09-23 14:23:00 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Helper script for testing two binaries under the same agent. |
| 4 | |
Jiri Simsa | 3540e3a | 2014-12-26 07:54:09 -0800 | [diff] [blame^] | 5 | source "$(go list -f {{.Dir}} v.io/core/shell/lib)/shell_test.sh" |
Ryan Brown | 50b473a | 2014-09-23 14:23:00 -0700 | [diff] [blame] | 6 | |
| 7 | main() { |
Asim Shankar | b3a82ba | 2014-10-29 11:41:27 -0700 | [diff] [blame] | 8 | if [[ -n "${VEYRON_CREDENTIALS}" ]]; then |
Ryan Brown | 50b473a | 2014-09-23 14:23:00 -0700 | [diff] [blame] | 9 | shell_test::fail "line ${LINENO}: identity preserved" |
| 10 | fi |
Jiri Simsa | 764efb7 | 2014-12-25 20:57:03 -0800 | [diff] [blame] | 11 | PINGPONG_BIN="$(shell_test::build_go_binary 'v.io/core/veyron/security/agent/pingpong')" |
Jing Jin | 89312ff | 2014-10-24 10:42:08 -0700 | [diff] [blame] | 12 | shell_test::start_server "${PINGPONG_BIN}" --server |
| 13 | "${PINGPONG_BIN}" || shell_test::fail "line ${LINENO}: ping" |
Ryan Brown | 50b473a | 2014-09-23 14:23:00 -0700 | [diff] [blame] | 14 | |
| 15 | shell_test::pass |
| 16 | } |
| 17 | |
| 18 | main "$@" |