URL:
https://svn.lrde.epita.fr/svn/oln/trunk
ChangeLog:
2009-06-04 Fabien Freling <fabien.freling(a)lrde.epita.fr>
Exclude some files during checking.
* build-aux/check_source_has_test.sh: Exclude some files.
---
check_source_has_test.sh | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
Index: trunk/build-aux/check_source_has_test.sh
===================================================================
--- trunk/build-aux/check_source_has_test.sh (revision 3991)
+++ trunk/build-aux/check_source_has_test.sh (revision 3992)
@@ -6,21 +6,30 @@
check_directory ()
{
echo "Current directories: $1 $2"
+
for file in `ls $1`; do
- test_file=${file%.hh}.cc
if [ -f ${1}/$file ]; then
+ ext=${file##*.}
+ base=${file%.*}
+
+ if [ "$ext" = "hh" -a \
+ "${base##*.}" != "spe" ]; then
+ test_file=${file%.hh}.cc
all_tests=$(($all_tests + 1))
+
if [ -f ${2}/$test_file ]; then
- echo "\t\e[0;32mOK\e[m $file <-> $test_file"
+ echo "\t\e[0;32mOK\e[m $file <-> $test_file" > /dev/null
else
-# FIXME: Manage exceptions.
if [ "$file" != "all.hh" -a \
"$file" != "essential.hh" ]; then
- echo "\t\e[0;31mFAIL\e[m Test \"$test_file\" does not exist."
+ echo "\tFAIL Test \"$test_file\" does not exist."
failed_tests=$(($failed_tests + 1))
fi
fi
+
+ fi
+
fi
if [ -d ${1}/$file ]; then
@@ -28,9 +37,8 @@
echo ""
check_directory ${1}/$file ${2}/$file
else
-# FIXME: Manage exceptions.
if [ "$file" != "internal" ]; then
- echo "\e[0;31mFAIL\e[m Test directory \"${2}/$file\" does not
exist."
+ echo "FAIL Test directory \"${2}/$file\" does not exist."
fi
fi
fi
@@ -58,5 +66,5 @@
fi
echo "\n====="
-echo "Uncorrect tests: $failed_tests"
+echo "Missing tests: $failed_tests"