experimental_test_shell_command
Run a script as a test via the test
goal, with all dependencies packaged/copied available in the chroot.
Example BUILD file:
experimental_test_shell_command(
name="test",
tools=["test"],
command="test -r $CHROOT/some-data-file.txt",
execution_dependencies=["src/project/files:data"],
)
The command
may use either {chroot}
on the command line, or the $CHROOT
environment variable to get the root directory for where any dependencies are located.
In contrast to the run_shell_command
, this target is intended to run shell commands as tests and will only run them via the test
goal.
Backend: pants.backend.shell