blob: 4465fc52813a00d47f6be5c2364ab2f93be73151 [file] [log] [blame]
#!/bin/bash
# Helper script for testing two binaries under the same agent.
source "$(go list -f {{.Dir}} veyron.io/veyron/shell/lib)/shell_test.sh"
main() {
if [[ -n "${VEYRON_CREDENTIALS}" ]]; then
shell_test::fail "line ${LINENO}: identity preserved"
fi
PINGPONG_BIN="$(shell_test::build_go_binary 'veyron.io/veyron/veyron/security/agent/pingpong')"
shell_test::start_server "${PINGPONG_BIN}" --server
"${PINGPONG_BIN}" || shell_test::fail "line ${LINENO}: ping"
shell_test::pass
}
main "$@"