| # Test running an application using vrun under the agent. |
| source "$(go list -f {{.Dir}} v.io/core/shell/lib)/shell_test.sh" |
| readonly WORKDIR="${shell_test_WORK_DIR}" |
| AGENTD_BIN="$(shell_test::build_go_binary 'v.io/core/veyron/security/agent/agentd')" |
| export VEYRON_CREDENTIALS="$(shell::tmp_dir)" |
| # Make sure the testchild.sh script gets the same shell_test_BIN_DIR as the main script. |
| export shell_test_BIN_DIR |
| "${AGENTD_BIN}" --no_passphrase --additional_principals="$(shell::tmp_dir)" bash "$(go list -f {{.Dir}} v.io/core/veyron/tools/vrun)/testchild.sh" || shell_test::fail "${LINENO}: testchild.sh failed" |