explpro4.test 1.29 KB
Newer Older
1
#!/bin/sh
2 3
# -*- coding: utf-8 -*-
# Copyright (C) 2009, 2014 Laboratoire de Recherche et Développement
Guillaume Sadegh's avatar
Guillaume Sadegh committed
4 5
# de l'Epita (LRDE).
# Copyright (C) 2006 Laboratoire d'Informatique de Paris 6 (LIP6),
6
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
7 8 9 10 11 12
# et Marie Curie.
#
# This file is part of Spot, a model checking library.
#
# Spot is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
13
# the Free Software Foundation; either version 3 of the License, or
14 15 16 17 18 19 20 21
# (at your option) any later version.
#
# Spot is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License
22
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42


. ./defs

set -e

cat >input1 <<EOF
acc = p1;
s1, s1, "a", p1;
s1, s1, "!a", ;
EOF

cat >input2 <<EOF
acc= p1;
s1, s1, "a", ;
s1, s1, "!a", p1;
EOF

cat >expected <<'EOF'
acc = "p1$1" "p1";
43 44
"0 * 0", "0 * 0", "a", "p1";
"0 * 0", "0 * 0", "!a", "p1$1";
45 46
EOF

47
run 0 ../explprod input1 input2 > stdout
48 49 50
cat stdout
diff stdout expected
rm input1 input2 stdout expected