1# Check that we can inject commands at the beginning of a ShTest.
2
3# RUN: %{lit} -j 1 %{inputs}/shtest-inject/test-empty.txt --show-all | FileCheck --check-prefix=CHECK-TEST1 %s
4#
5# CHECK-TEST1: Script:
6# CHECK-TEST1: --
7# CHECK-TEST1: echo "THIS WAS"
8# CHECK-TEST1: echo "INJECTED"
9# CHECK-TEST1: --
10#
11# CHECK-TEST1: THIS WAS
12# CHECK-TEST1: INJECTED
13#
14# CHECK-TEST1: Passed: 1
15
16# RUN: %{lit} -j 1 %{inputs}/shtest-inject/test-one.txt --show-all | FileCheck --check-prefix=CHECK-TEST2 %s
17#
18# CHECK-TEST2: Script:
19# CHECK-TEST2: --
20# CHECK-TEST2: echo "THIS WAS"
21# CHECK-TEST2: echo "INJECTED"
22# CHECK-TEST2: echo "IN THE FILE"
23# CHECK-TEST2: --
24#
25# CHECK-TEST2: THIS WAS
26# CHECK-TEST2: INJECTED
27# CHECK-TEST2: IN THE FILE
28#
29# CHECK-TEST2: Passed: 1
30
31# RUN: %{lit} -j 1 %{inputs}/shtest-inject/test-many.txt --show-all | FileCheck --check-prefix=CHECK-TEST3 %s
32#
33# CHECK-TEST3: Script:
34# CHECK-TEST3: --
35# CHECK-TEST3: echo "THIS WAS"
36# CHECK-TEST3: echo "INJECTED"
37# CHECK-TEST3: echo "IN THE FILE"
38# CHECK-TEST3: echo "IF IT WORKS"
39# CHECK-TEST3: echo "AS EXPECTED"
40# CHECK-TEST3: --
41#
42# CHECK-TEST3: THIS WAS
43# CHECK-TEST3: INJECTED
44# CHECK-TEST3: IN THE FILE
45# CHECK-TEST3: IF IT WORKS
46# CHECK-TEST3: AS EXPECTED
47#
48# CHECK-TEST3: Passed: 1
49