File: testit

package info (click to toggle)
delta 2006.08.03-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 384 kB
  • sloc: perl: 502; sh: 60; makefile: 58; ansic: 11
file content (30 lines) | stat: -rwxr-xr-x 563 bytes parent folder | download | duplicates (5)
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
29
30
#!/bin/bash
# see delta/License.txt for copyright and terms of use

# test multidelta

: ${MULTIDELTA:=../multidelta}

set -e
set -x

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

# run multidelta
"$MULTIDELTA" -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" -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"