explpro3.test 1.33 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) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
6
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
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
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 = ;
31 32
s1, s2, "!a",;
s1, s3, "!b",;
33 34 35 36
EOF

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

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

47 48
run 0 ../explprod input1 input2 |
sed 's/"p3" "p2"/"p2" "p3"/g' | tee stdout
49 50
diff stdout expected
rm input1 input2 stdout expected