File: installcheck

package info (click to toggle)
deal 3.1.9-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,576 kB
  • sloc: ansic: 5,224; cpp: 4,186; tcl: 3,125; makefile: 203; javascript: 21; sh: 10
file content (15 lines) | stat: -rwxr-xr-x 386 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

SMALLTESTCOUNT=10
PATH=$PATH:/usr/games

echo "smalltest:"
deal -I "line tests/input/sample.line" -i format/ddline $SMALLTESTCOUNT > test.out
head -$SMALLTESTCOUNT tests/output/sample.ddline > correct.out
diff test.out correct.out
if cmp test.out correct.out ; then echo PASS; else echo FAIL  ; fi

echo "great88:"
deal -x tests/great88 | fgrep FAIL || echo "PASSED"