File: diff-brief.test

package info (click to toggle)
btest 0.72-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,208 kB
  • sloc: python: 2,187; sh: 547; makefile: 165; xml: 12; awk: 1
file content (11 lines) | stat: -rw-r--r-- 519 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
# Verify that setting TEST_DIFF_BRIEF causes btest-diff to not show the
# file contents when it doesn't match the baseline (but the diff is still
# shown).
# %TEST-EXEC: mkdir -p Baseline/diff-brief
# %TEST-EXEC: echo "This is the baseline" > Baseline/diff-brief/child-output
# %TEST-EXEC-FAIL: btest -d %INPUT >raw 2>&1
# %TEST-EXEC: cat raw | grep -v '+++' | grep -v '\-\-\-' >output
# %TEST-EXEC: btest-diff output

@TEST-EXEC: echo "Hello world" > child-output
@TEST-EXEC: TEST_DIFF_BRIEF=1 btest-diff child-output