aboutsummaryrefslogtreecommitdiff
path: root/test-suite/check
diff options
context:
space:
mode:
authornotin2007-08-10 12:06:59 +0000
committernotin2007-08-10 12:06:59 +0000
commitb8ad07a703040113720bbb11e3e87920aa874baf (patch)
tree9bf3af2cdc09f226f671ce9f66b0bbaa859c59f6 /test-suite/check
parent4f11ea967cca6f2249f192651d1df84c79150440 (diff)
Modification de la test suite pour intégrer des tests spécifiques aux
bugs soumis sur Coq-bugs. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10068 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite/check')
-rwxr-xr-xtest-suite/check70
1 files changed, 70 insertions, 0 deletions
diff --git a/test-suite/check b/test-suite/check
index 504e96cc24..907b773c48 100755
--- a/test-suite/check
+++ b/test-suite/check
@@ -145,12 +145,82 @@ test_complexity() {
fi
}
+test_bugs () {
+ # Process verifications concerning submitted bugs. A message is
+ # printed for all opened bugs (still active or seem to be closed.
+ # For closed bugs that behave as expected, no message is printed
+
+ # All files are assumed to have <# of the bug>.v as a name
+
+ echo "Testing opened bugs..."
+ # We first test opened bugs that should not succeed
+ files=`/bin/ls -1 $1/opened/shoulnotsucceed/*.v 2> /dev/null`
+ for f in $files; do
+ nbtests=`expr $nbtests + 1`
+ printf " "$f"..."
+ $command $f $2 > /dev/null 2>&1
+ if [ $? = 0 ]; then
+ echo "still active"
+ nbtestsok=`expr $nbtestsok + 1`
+ else
+ echo "Error! (bug seems to be closed, please check)"
+ fi
+ done
+
+ # And opened bugs that should not fail
+ files=`/bin/ls -1 $1/opened/shouldnotfail/*.v 2> /dev/null`
+ for f in $files; do
+ nbtests=`expr $nbtests + 1`
+ printf " "$f"..."
+ $command $f > /dev/null 2>&1
+ if [ $? != 0 ]; then
+ echo "still active"
+ nbtestsok=`expr $nbtestsok + 1`
+ else
+ echo "Error! (bug seems to be closed, please check)"
+ fi
+ done
+
+ echo "Testing closed bugs..."
+ # Then closed bugs that should succeed
+ files=`/bin/ls -1 $1/closed/shouldsucceed/*.v 2> /dev/null`
+ for f in $files; do
+ nbtests=`expr $nbtests + 1`
+ printf " "$f"..."
+ $command $f $2 > /dev/null 2>&1
+ if [ $? = 0 ]; then
+ echo "Ok"
+ nbtestsok=`expr $nbtestsok + 1`
+ else
+ echo "Error! (bug seems to be opened, please check)"
+ fi
+ done
+
+
+ # At last, we test closed bugs that should fail
+ files=`/bin/ls -1 $1/bugs/closed/shouldfail/*.v 2> /dev/null`
+ for f in $files; do
+ nbtests=`expr $nbtests + 1`
+ printf " "$f"..."
+ $command $f > /dev/null 2>&1
+ if [ $? != 0 ]; then
+ echo "Ok"
+ nbtestsok=`expr $nbtestsok + 1`
+ else
+ echo "Error! (bug seems to be opend, please check)"
+ fi
+ done
+
+}
+
# Programme principal
echo "Success tests"
test_success success
echo "Failure tests"
test_failure failure
+echo "Bugs test"
+test_bugs bugs
echo "Output tests"
test_output output
echo "Parser tests"