explpro3.test 1.3 KB
Newer Older
1
#!/bin/sh
Guillaume Sadegh's avatar
Guillaume Sadegh committed
2
3
4
# Copyright (C) 2009 Laboratoire de Recherche et Dveloppement
# de l'Epita (LRDE).
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
5
6
7
8
9
10
11
# dpartement Systmes Rpartis Coopratifs (SRC), Universit Pierre
# 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
12
# the Free Software Foundation; either version 3 of the License, or
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
13
14
15
16
17
18
19
20
# (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
21
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
22

23
24
25
26
27
28
29

. ./defs

set -e

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

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

cat >expected <<EOF
acc = "p2" "p3";
42
43
"s1 * s1", "s2 * s2", "!a & b", "p2";
"s1 * s1", "s3 * s3", "a & !b", "p3";
44
45
EOF

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