File: test02

package info (click to toggle)
gnucobol3 3.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 30,032 kB
  • sloc: sh: 201,859; ansic: 99,735; yacc: 18,930; lex: 5,521; cobol: 1,078; makefile: 593; perl: 555; awk: 184; sed: 16
file content (17 lines) | stat: -rwxr-xr-x 378 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
cd debian/tests

echo "info: compiling"
(cobc test02.cob > $AUTOPKGTEST_TMP/test02.act 2>&1)

echo "info: running"
cmp -s test02.exp $AUTOPKGTEST_TMP/test02.act
res=$?
if [ $res = 0 ] ; then
    echo "success: test02 produced proper results"
else
    echo "error: test02 did not produce proper results"
    diff -u test02.exp $AUTOPKGTEST_TMP/test02.act
fi

exit $res