Commit 88da1ad8 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

work around BSD sed not interpreting \r in s/$/\r/

* src/kripketest/bad_parsing.test, src/tgbatest/neverclaimread.test,
src/tgbatest/readsave.test, src/tgbatest/hoaparse.test: Use Perl for the
unix2dos conversion.
parent a0d9268f
......@@ -68,8 +68,7 @@ cat output | grep -v + > res
diff expected res
# The diagnostic should be the same with DOS return lines
sed 's/$/\r/' input > input.dos
mv input.dos input
perl -pi -e 's/$/\r/' input
run 1 ../parse_print input 2> output
cat output | grep -v + > res
diff expected res
......
......@@ -453,8 +453,7 @@ input:8.1-16.12: aborted input automaton
EOF
# DOS-style new lines should have the same output.
sed 's/$/\r/g' input > input.dos
mv input.dos input
perl -pi -e 's/$/\r/' input
../../bin/autfilt --hoa input 2>stderr && exit 1
cat stderr
diff stderr input.exp
......@@ -669,8 +668,7 @@ EOF
diff expected input.out
# DOS-style new lines should have the same output.
sed 's/$/\r/g' input > input.dos
mv input.dos input
perl -pe -e 's/$/\r/' input
../../bin/autfilt --hoa input 2>stderr && exit 1
cat stderr
diff stderr input.exp
......
......@@ -293,8 +293,7 @@ grep input: stderr > stderrfilt
diff stderrfilt expected-err
# DOS-style new lines should have the same output.
sed 's/$/\r/g' input > input.dos
mv input.dos input
perl -pi -e 's/$/\r/' input
run 2 ../ltl2tgba -ks -XN input > stdout 2>stderr
cat stderr
grep input: stderr > stderrfilt
......
......@@ -3,7 +3,7 @@
# Copyright (C) 2009, 2010, 2012, 2014 Laboratoire de Recherche et
# Développement de l'Epita (LRDE).
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
# et Marie Curie.
#
# This file is part of Spot, a model checking library.
......@@ -123,8 +123,7 @@ EOF
diff stderrfilt expected
# The diagnostic should be the same with DOS input
sed 's/$/\r/' input > input.dos
mv input.dos input
perl -pi -e 's/$/\r/' input
run 2 ../ltl2tgba -b -X input > stdout 2>stderr
cat stderr
grep input: stderr > stderrfilt
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment