Add no-brainer make check.

CVS patchset: 7260
CVS date: 2004/05/27 21:35:37
This commit is contained in:
jbj 2004-05-27 21:35:37 +00:00
parent e2f84dd308
commit bde534de89
10 changed files with 41 additions and 4 deletions

View File

@ -28,4 +28,5 @@ stamp-h.in
*.lcd
*.lo
*.swp
sexp
sexp-*.tar.gz

View File

@ -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.

View File

@ -22,4 +22,6 @@ fi
dnl XXX lose rpm libs
LIBS=
AC_OUTPUT([Makefile])
AC_CONFIG_FILES([Makefile tests/Makefile])
AC_OUTPUT

View File

@ -0,0 +1,3 @@
Makefile
Makefile.in
*.out

View File

@ -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

19
rpmio/sexp/tests/chk-samples Executable file
View File

@ -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.