File: test-nadsum.sh

package info (click to toggle)
libhsync 0.5.7-1.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,060 kB
  • ctags: 543
  • sloc: sh: 7,944; ansic: 5,413; makefile: 154
file content (41 lines) | stat: -rw-r--r-- 917 bytes parent folder | download
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
31
32
33
34
35
36
37
38
39
40
41
#! /bin/sh -pe

# Regression test suite for libhsync.

# Copyright (C) 2000 by Martin Pool
# $Id: test-nadsum.sh,v 1.6 2000/07/29 18:24:01 mbp Exp $

# Generate and test differences based on compinations of source files.

diff=$tmpdir/diff.tmp
newsig=$tmpdir/newsig.tmp
old=$tmpdir/old.tmp
new=$tmpdir/new.tmp
out=$tmpdir/out.tmp
oldsig=$tmpdir/oldsig.tmp
fromsig=$tmpdir/fromsig.tmp
fromlt=$tmpdir/fromlt.tmp
ltfile=$tmpdir/lt.tmp

basis=$srcdir/COPYING

for instr1 in $delta_instr
do
    run_test hsmapread $debug $instr1 <$basis >$old

    run_test hsnad $debug /dev/null <$old >$ltfile
    run_test hsdecode $debug /dev/null $oldsig /dev/null $ltfile 

    for instr2 in $delta_instr
    do
	countdown
	run_test hsmapread $debug $instr1 <$basis >$new

	run_test hsnad $debug $oldsig <$new >$diff 
        run_test hsdecode $debug $old $newsig $out $diff 
   
        run_test cmp $out $new
   done
done