* configure.ac: Output iface/gspn/defs.

* iface/gspn/Makefile.am (EXTRA_DIST): Add $(TESTS).
(TESTS, check_SCRIPTS, distclean-local): New.
* iface/gspn/dcswave.test, iface/gspn/simple.test,
iface/gspn/defs.in: New files.
* iface/gspn/dottygspn.cc (main): Take the list of properties
of interest in argument.
This commit is contained in:
Alexandre Duret-Lutz 2003-07-24 13:04:10 +00:00
parent 5e8cbcde7f
commit 664e49e07e
7 changed files with 125 additions and 5 deletions

23
iface/gspn/simple.test Executable file
View file

@ -0,0 +1,23 @@
#! /bin/sh
. ./defs || exit 1
set -e
cp -R $srcdir/examples/simple .
# Unknown properties should be flagged.
../dottygspn-rg simple/simple unknown && exit 1
../dottygspn-rg simple/simple obs >output
# We expect exactly 1024 states.
grep ' 1024 ' output
grep ' 1025 ' output && exit 1
../dottygspn-srg simple/simple obs >output
# We expect exactly 11 states.
grep ' 11 ' output
grep ' 12 ' output && exit 1
: