spot/iface/gspn/simple.test
Alexandre Duret-Lutz 664e49e07e * 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.
2003-07-24 13:04:10 +00:00

23 lines
416 B
Bash
Executable file

#! /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
: