Debian Codegraph @

llvm/utils/lit/tests/Inputs/shtest-shell/diff-pipes.txt

raw
1 # RUN: echo foo > %t.foo
2 # RUN: echo bar > %t.bar
3
4 # Check output pipe.
5 # RUN: diff %t.foo %t.foo | FileCheck -allow-empty -check-prefix=EMPTY %s
6 # RUN: diff -u %t.foo %t.bar | FileCheck %s && false || true
7
8 # Check input pipe.
9 # RUN: cat %t.foo | diff -u - %t.foo
10 # RUN: cat %t.foo | diff -u %t.foo -
11 # RUN: cat %t.bar | diff -u %t.foo - && false || true
12 # RUN: cat %t.bar | diff -u - %t.foo && false || true
13
14 # Check output and input pipes at the same time.
15 # RUN: cat %t.foo | diff - %t.foo | FileCheck -allow-empty -check-prefix=EMPTY %s
16 # RUN: cat %t.bar | diff -u %t.foo - | FileCheck %s && false || true
17
18 # Fail so lit will print output.
19 # RUN: false
20
21 # CHECK: @@
22 # CHECK-NEXT: -foo
23 # CHECK-NEXT: +bar
24
25 # EMPTY-NOT: {{.}}