tests/test-run-tests.t
changeset 25730 c380d5273e91
parent 25729 57dfadc4f46c
child 26109 bad09bd22b6a
--- a/tests/test-run-tests.t	Fri Jul 03 06:56:03 2015 +0900
+++ b/tests/test-run-tests.t	Fri Jul 03 06:56:03 2015 +0900
@@ -602,3 +602,22 @@
   $ run-tests.py test-runtestdir.t
   .
   # Ran 1 tests, 0 skipped, 0 warned, 0 failed.
+
+#if execbit
+
+test that TESTDIR is referred in PATH
+
+  $ cat > custom-command.sh <<EOF
+  > #!/bin/sh
+  > echo "hello world"
+  > EOF
+  $ chmod +x custom-command.sh
+  $ cat > test-testdir-path.t <<EOF
+  >   $ custom-command.sh
+  >   hello world
+  > EOF
+  $ run-tests.py test-testdir-path.t
+  .
+  # Ran 1 tests, 0 skipped, 0 warned, 0 failed.
+
+#endif