Skip to content

Commit

Permalink
CN: add a --coq option to tests/run-cn.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
talsewell committed Sep 1, 2023
1 parent 6a0e57f commit c402f36
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tests/run-cn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ FAIL=$(find $DIRNAME/cn -name '*.error.c')

for TEST in $FAIL
do
echo cn --expect-fail $TEST
echo cn --expect-failure $TEST
if ! cn --expect-failure $TEST
then
NUM_FAILED=$(( $NUM_FAILED + 1 ))
Expand All @@ -35,6 +35,21 @@ UNKNOWN=$(find $DIRNAME/cn -name '*.unknown.c')

echo $UNKNOWN | xargs -n 1 cn

COQ_LEMMAS=$(find $DIRNAME/cn -name 'coq_lemmas' -type d)

for TEST in $COQ_LEMMAS
do
if [ "$1" == "--coq" ]
then
echo make -C $TEST
if ! make -C $TEST
then
NUM_FAILED=$(( $NUM_FAILED + 1 ))
FAILED="$FAILED $TEST"
fi
fi
done

echo
echo 'Done running tests.'
echo
Expand Down

0 comments on commit c402f36

Please sign in to comment.