[llvm] [cmake] Add possibility to use ChooseMSVCCRT.cmake when include LLVM library
[llvm-core.git] / utils / lit / tests / shtest-env.py
blobe89bfd6156b639678cdec31a6e11527a55dffeec
1 # Check the env command
3 # RUN: not %{lit} -j 1 -a -v %{inputs}/shtest-env \
4 # RUN: | FileCheck -match-full-lines %s
6 # END.
8 # Make sure env commands are included in printed commands.
10 # CHECK: -- Testing: 7 tests{{.*}}
12 # CHECK: FAIL: shtest-env :: env-args-last-is-assign.txt ({{[^)]*}})
13 # CHECK: Error: 'env' requires a subcommand
14 # CHECK: error: command failed with exit status: {{.*}}
16 # CHECK: FAIL: shtest-env :: env-args-last-is-u-arg.txt ({{[^)]*}})
17 # CHECK: Error: 'env' requires a subcommand
18 # CHECK: error: command failed with exit status: {{.*}}
20 # CHECK: FAIL: shtest-env :: env-args-last-is-u.txt ({{[^)]*}})
21 # CHECK: Error: 'env' requires a subcommand
22 # CHECK: error: command failed with exit status: {{.*}}
24 # CHECK: FAIL: shtest-env :: env-args-none.txt ({{[^)]*}})
25 # CHECK: Error: 'env' requires a subcommand
26 # CHECK: error: command failed with exit status: {{.*}}
28 # CHECK: PASS: shtest-env :: env-u.txt ({{[^)]*}})
29 # CHECK: $ "{{[^"]*}}" "print_environment.py"
30 # CHECK: $ "env" "-u" "FOO" "{{[^"]*}}" "print_environment.py"
31 # CHECK: $ "env" "-u" "FOO" "-u" "BAR" "{{[^"]*}}" "print_environment.py"
33 # CHECK: PASS: shtest-env :: env.txt ({{[^)]*}})
34 # CHECK: $ "env" "A_FOO=999" "{{[^"]*}}" "print_environment.py"
35 # CHECK: $ "env" "A_FOO=1" "B_BAR=2" "C_OOF=3" "{{[^"]*}}" "print_environment.py"
37 # CHECK: PASS: shtest-env :: mixed.txt ({{[^)]*}})
38 # CHECK: $ "env" "A_FOO=999" "-u" "FOO" "{{[^"]*}}" "print_environment.py"
39 # CHECK: $ "env" "A_FOO=1" "-u" "FOO" "B_BAR=2" "-u" "BAR" "C_OOF=3" "{{[^"]*}}" "print_environment.py"
41 # CHECK: Expected Passes : 3
42 # CHECK: Unexpected Failures: 4
43 # CHECK-NOT: {{.}}