Fix a 'make check' failure when valgrind is not installed.
* src/kripketest/defs.in (run2): Remove this function. It was incorrectly trying to run valgrind even when valgrind is not installed. * src/kripketest/kripke.test: Simplify and use run().
This commit is contained in:
parent
89279d9829
commit
c21e716893
3 changed files with 28 additions and 52 deletions
|
|
@ -1,6 +1,5 @@
|
|||
#! /bin/sh
|
||||
|
||||
# Copyright (C) 2011 Laboratoire de Recherche et Developpement
|
||||
# Copyright (C) 2011, 2012 Laboratoire de Recherche et Developpement
|
||||
# de l'Epita (LRDE)
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
|
|
@ -20,52 +19,56 @@
|
|||
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
# 02111-1307, USA.
|
||||
|
||||
|
||||
|
||||
. ./defs
|
||||
|
||||
set -e
|
||||
|
||||
run2()
|
||||
{
|
||||
run 0 ../parse_print "$1" > "$1.out"
|
||||
run 0 ../parse_print "$1.out" > "$1.out2"
|
||||
cmp "$1.out" "$1.out2"
|
||||
}
|
||||
|
||||
cat >input <<\EOF
|
||||
cat >input1 <<EOF
|
||||
state1, "!b", state2;
|
||||
state2, "a&b", state3;
|
||||
state3, "a", state4 state1;
|
||||
state4, "b", state1;
|
||||
EOF
|
||||
|
||||
run2 0 ../parse_print input
|
||||
run2 input1
|
||||
|
||||
cat >input <<\EOF
|
||||
cat >input2 <<EOF
|
||||
state1, , state1 state2;
|
||||
state2, , state1 state2;
|
||||
EOF
|
||||
|
||||
run2 0 ../parse_print input
|
||||
run2 input2
|
||||
|
||||
cat >input <<\EOF
|
||||
cat >input3 <<EOF
|
||||
state42, "!b & !a", state40;
|
||||
state40, "!a | b", state42;
|
||||
EOF
|
||||
|
||||
run2 0 ../parse_print input
|
||||
run2 input3
|
||||
|
||||
cat >input <<\EOF
|
||||
cat >input4 <<EOF
|
||||
state1, "a&b", state1;
|
||||
EOF
|
||||
|
||||
run2 0 ../parse_print input
|
||||
run2 input4
|
||||
|
||||
cat >input <<\EOF
|
||||
cat >input5 <<EOF
|
||||
state51,,state60 state17 state3 state18 state62;
|
||||
EOF
|
||||
|
||||
run2 0 ../parse_print input
|
||||
run2 input5
|
||||
|
||||
cat >input <<\EOF
|
||||
cat >input6 <<EOF
|
||||
s42, "a&b|c&d", s51 s69 s73 s7;
|
||||
s7, "a&a&a&!a", s42 s51 s69 s73 s42;
|
||||
EOF
|
||||
|
||||
run2 0 ../parse_print input
|
||||
run2 input6
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue