From ca0c62265eb8cdd5fb0d8a8b34ee77baf3de987e Mon Sep 17 00:00:00 2001 From: blazy Date: Fri, 20 Oct 2006 12:37:13 +0000 Subject: Ajout du banc de tests de CCured (Olden benchmark suite, cf. CCured: type-safe retrofitting of legacy code, G.Necula et al.) rapportCompcert_all.txt liste les erreurs produites par ccomp. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@121 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- test/ccured_olden/health/testit | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 test/ccured_olden/health/testit (limited to 'test/ccured_olden/health/testit') diff --git a/test/ccured_olden/health/testit b/test/ccured_olden/health/testit new file mode 100755 index 00000000..6b943eac --- /dev/null +++ b/test/ccured_olden/health/testit @@ -0,0 +1,25 @@ +#!/bin/sh +# test a health binary + +if [ "$1" = "" ]; then + echo "usage: $0 ./health.exe" + exit +fi + +# all of health's output is to stderr +echo "running: $1 5 500 1 1 2>output" +if ! $1 5 500 1 1 2>output; then + echo "$1 failed directly" + exit 2 +fi + +if ! diff out.orig output >out.diff 2>&1 ; then + if ! diff out.orig.msvc output >/dev/null ; then + echo "$1 got the wrong answer. See out.diff" + exit 4 + fi +fi + +echo "$1 seems to work" +rm -f out.diff + \ No newline at end of file -- cgit