File tree Expand file tree Collapse file tree 4 files changed +33
-0
lines changed
Expand file tree Collapse file tree 4 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ import lit.formats
2+
3+ config.name = " shtest-env-path"
4+ config.suffixes = [" .txt" ]
5+ config.test_format = lit.formats.ShTest()
6+ config.test_source_root = None
7+ config.test_exec_root = None
8+ config.substitutions.append((" %{python}" , ' "%s"' % (sys.executable)))
Original file line number Diff line number Diff line change 1+ ## Tests env command for setting the PATH variable.
2+
3+ ## Check that test.sh can be found using the configured PATH.
4+ #
5+ # RUN: env PATH=%S test.sh | FileCheck --check-prefix=CHECK %s
6+ #
7+
8+ # CHECK: TEST-ENV-PATH-123
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ echo " TEST-ENV-PATH-123"
4+
Original file line number Diff line number Diff line change 1+ ## Tests env command for setting the PATH variable.
2+
3+ # The test is using /bin/sh. Limit to system known to have /bin/sh.
4+ # REQUIRED: system-linux
5+
6+ # RUN: %{lit} -a -v %{inputs}/shtest-env-path/path.txt \
7+ # RUN: | FileCheck -match-full-lines %s
8+ #
9+ # END.
10+
11+ # CHECK: -- Testing: 1 tests{{.*}}
12+ # CHECK: PASS: shtest-env-path :: path.txt (1 of 1)
13+ # CHECK: --
You can’t perform that action at this time.
0 commit comments