File: testit

package info (click to toggle)
creduce 2.6.0-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 4,328 kB
  • ctags: 4,312
  • sloc: cpp: 23,740; ansic: 6,970; sh: 4,827; perl: 2,680; lex: 441; makefile: 426
file content (28 lines) | stat: -rwxr-xr-x 541 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# see delta/License.txt for copyright and terms of use

# test multidelta

set -e
set -x

# reset state
cp file1.start.txt file1.txt
cp file2.start.txt file2.txt

# run multidelta
../multidelta -cpp -level=3 ./trivtest file1.txt file2.txt

# compare to expected output
diff file1.end.txt file1.txt
diff file2.end.txt file2.txt

# check that -u works
../multidelta -cpp -u ./trivtest file1.txt file2.txt

# compare to original input
diff file1.start.txt file1.txt
diff file2.start.txt file2.txt

# dsw: Tell the user.
echo "PASS"