| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | # see delta/License.txt for copyright and terms of use |
| 3 | |
| 4 | # test multidelta |
| 5 | |
| 6 | set -e |
| 7 | set -x |
| 8 | |
| 9 | # reset state |
| 10 | cpscip-shell system . . cp. file1.start.txt file1.txt |
| 11 | cpscip-shell system . . cp. file2.start.txt file2.txt |
| 12 | |
| 13 | # run multidelta |
| 14 | ../multidelta -level=3 ./trivtest file1.txt file2.txt |
| 15 | |
| 16 | # compare to expected output |
| 17 | diffscip-shell system . . diff. file1.end.txt file1.txt |
| 18 | diffscip-shell system . . diff. file2.end.txt file2.txt |
| 19 | |
| 20 | # check that -u works |
| 21 | ../multidelta -u ./trivtest file1.txt file2.txt |
| 22 | |
| 23 | # compare to original input |
| 24 | diffscip-shell system . . diff. file1.start.txt file1.txt |
| 25 | diffscip-shell system . . diff. file2.start.txt file2.txt |
| 26 | |
| 27 | # dsw: Tell the user. |
| 28 | echoscip-shell system . . echo. "PASS" |