1 # Check the env command
3 # RUN: %{lit} -j 1 -a -v %{inputs}/shtest-env \
4 # RUN: | FileCheck -match-full-lines %s
8 # Make sure env commands are included in printed commands.
10 # CHECK: PASS: shtest-env :: env-u.txt ({{[^)]*}})
11 # CHECK: $ "{{[^"]*}}" "print_environment.py"
12 # CHECK: $ "env" "-u" "FOO" "{{[^"]*}}" "print_environment.py"
13 # CHECK: $ "env" "-u" "FOO" "-u" "BAR" "{{[^"]*}}" "print_environment.py"
15 # CHECK: PASS: shtest-env :: env.txt ({{[^)]*}})
16 # CHECK: $ "env" "A_FOO=999" "{{[^"]*}}" "print_environment.py"
17 # CHECK: $ "env" "A_FOO=1" "B_BAR=2" "C_OOF=3" "{{[^"]*}}" "print_environment.py"
19 # CHECK: PASS: shtest-env :: mixed.txt ({{[^)]*}})
20 # CHECK: $ "env" "A_FOO=999" "-u" "FOO" "{{[^"]*}}" "print_environment.py"
21 # CHECK: $ "env" "A_FOO=1" "-u" "FOO" "B_BAR=2" "-u" "BAR" "C_OOF=3" "{{[^"]*}}" "print_environment.py"
23 # CHECK: Expected Passes : 3