explpro2.test 1.36 KB
Newer Older
1
#!/bin/sh
2 3 4
# -*- coding: utf-8 -*-
# Copyright (C) 2013, 2014 Laboratoire de Recherche et Développement
# de l'Epita (LRDE).
5
# Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009 Laboratoire
6 7
# d'Informatique de Paris 6 (LIP6), département Systèmes Répartis
# Coopératifs (SRC), Université Pierre et Marie Curie.
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
8 9 10 11 12
#
# 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
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
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/>.
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
23

24 25 26 27 28 29 30

. ./defs

set -e

cat >input1 <<EOF
acc = p1 p2;
31 32
s1, s2, "!a", p1;
s1, s3, "!b", p2;
33 34 35 36
EOF

cat >input2 <<EOF
acc = p2 p3;
37 38
s1, s2, "b", p2;
s1, s3, "a", p3;
39 40
EOF

41 42
cat >expected <<'EOF'
acc = "p2$1" "p3" "p2" "p1";
43 44
"0 * 0", "1 * 1", "!a & b", "p2$1" "p1";
"0 * 0", "2 * 2", "a & !b", "p3" "p2";
45 46
EOF

47
run 0 ../explprod input1 input2 | tee stdout
48 49
diff stdout expected
rm input1 input2 stdout expected