| # Test the simulator command-line tool. |
| source "$(go list -f {{.Dir}} v.io/core/shell/lib)/shell_test.sh" |
| # Run the test under the security agent. |
| shell_test::enable_agent "$@" |
| readonly WORKDIR="${shell_test_WORK_DIR}" |
| PKG="v.io/core/veyron/tools/naming/simulator" |
| SIMULATOR_BIN="$(shell_test::build_go_binary ${PKG})" |
| local -r DIR=$(go list -f {{.Dir}} "${PKG}") |
| for file in "${DIR}"/*.scr; do |
| "${VRUN}" "${SIMULATOR_BIN}" --interactive=false < "${file}" &> /dev/null || shell_test::fail "line ${LINENO}: failed for ${file}" |