Add no-brainer make check.
CVS patchset: 7260 CVS date: 2004/05/27 21:35:37
This commit is contained in:
parent
e2f84dd308
commit
bde534de89
|
@ -28,4 +28,5 @@ stamp-h.in
|
|||
*.lcd
|
||||
*.lo
|
||||
*.swp
|
||||
sexp
|
||||
sexp-*.tar.gz
|
||||
|
|
|
@ -2,9 +2,7 @@ AUTOMAKE_OPTIONS = 1.4 foreign
|
|||
|
||||
LINT = splint
|
||||
|
||||
EXTRA_DIST = sexp-sample-a sexp-sample-b sexp-sample-c
|
||||
|
||||
EXTRA_PROGRAMS =
|
||||
SUBDIRS=tests
|
||||
|
||||
INCLUDES = -I.
|
||||
|
||||
|
|
|
@ -22,4 +22,6 @@ fi
|
|||
dnl XXX lose rpm libs
|
||||
LIBS=
|
||||
|
||||
AC_OUTPUT([Makefile])
|
||||
AC_CONFIG_FILES([Makefile tests/Makefile])
|
||||
|
||||
AC_OUTPUT
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
Makefile
|
||||
Makefile.in
|
||||
*.out
|
|
@ -0,0 +1,14 @@
|
|||
## Process this file with automake to produce Makefile.in.
|
||||
|
||||
AUTOMAKE_OPTIONS = 1.4 foreign
|
||||
|
||||
all:
|
||||
|
||||
EXTRA_DIST = \
|
||||
sexp-sample-a sexp-sample-b sexp-sample-c sexp-sample.exp
|
||||
|
||||
noinst_SCRIPTS = chk-samples
|
||||
|
||||
TESTS_ENVIRONMENT =
|
||||
|
||||
TESTS = chk-samples
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
samples="
|
||||
sexp-sample-a
|
||||
sexp-sample-b
|
||||
sexp-sample-c
|
||||
"
|
||||
|
||||
expected=sexp-sample.exp
|
||||
|
||||
rc=0
|
||||
for s in $samples
|
||||
do
|
||||
../sexp < $s > ${s}.out || rc=1
|
||||
diff -u ${s}.out $expected || rc=1
|
||||
rm -f ${s}.out
|
||||
done
|
||||
|
||||
exit $rc
|
Binary file not shown.
Loading…
Reference in New Issue