URL:
https://svn.lrde.epita.fr/svn/scool/branches/scool-ng
ChangeLog:
2009-04-07 Warren Seine <soow(a)lrde.epita.fr>
Use atdiff instead of diff when comparing ATerm's.
* tests/check.sh: Allow to run check.sh from outside the
"tests" folder.
* tests/config: Change to "atdiff".
---
check.sh | 14 ++++++++++++--
config | 2 +-
2 files changed, 13 insertions(+), 3 deletions(-)
Index: branches/scool-ng/tests/config
===================================================================
--- branches/scool-ng/tests/config (revision 148)
+++ branches/scool-ng/tests/config (revision 149)
@@ -4,7 +4,7 @@
{
desc="Scool parser"
cmd='sglri -p ../../src/scl-syn/Scool.tbl -i $input_file'
- cmp='diff -EwbB -u $ref $output'
+ cmp='atdiff --notemplate $ref $output'
print_input_cmd='cat $input_file'
print_output_cmd='pp-aterm -i $input_file'
Index: branches/scool-ng/tests/check.sh
===================================================================
--- branches/scool-ng/tests/check.sh (revision 148)
+++ branches/scool-ng/tests/check.sh (revision 149)
@@ -3,6 +3,7 @@
#FIXME: command line
+default="\033[0m"
white="\033[33;00;29m"
black="\033[33;01;30m"
grey="\033[33;01;30m"
@@ -173,10 +174,10 @@
if [ $print_diff -eq 1 ]; then
echo
if [ $exit_val -eq 2 ]; then
- echo -ne $grey; cat $cmd_log $cmd_err
+ echo -ne $default; cat $cmp_log $cmp_err
echo -n
else
- echo -ne $grey; cat $cmp_log $cmp_err
+ echo -ne $default; cat $cmp_log $cmp_err
fi
fi
fi
@@ -228,6 +229,15 @@
"
}
+enter_test_dir()
+{
+ local filename=`readlink -f $0`
+ local test_dir=`dirname $filename`
+ cd $test_dir
+}
+
+enter_test_dir
+
print_diff=0
gen_ref=0
flush_sk=0
--
:: Warren Seine // SooW ::
:: warren.seine @
gmail.com ::
:: EPITA CSI 2010 ::