Skip to content
Snippets Groups Projects
Commit f79495d1 authored by Thibault Martin's avatar Thibault Martin
Browse files

[tests] Allow to run all config on a single file

parent 26a27b8a
No related branches found
No related tags found
No related merge requests found
...@@ -449,7 +449,11 @@ function TestFile ...@@ -449,7 +449,11 @@ function TestFile
FILE=$(basename $1) FILE=$(basename $1)
case "$CONFIG" in case "$CONFIG" in
"<all>"|"<default>") "<all>")
RESULT="result*"
CFG="(all config)"
;;
"<default>")
RESULT=result RESULT=result
CFG="(default config)" CFG="(default config)"
;; ;;
...@@ -458,16 +462,21 @@ function TestFile ...@@ -458,16 +462,21 @@ function TestFile
CFG="(config $CONFIG)" CFG="(config $CONFIG)"
;; ;;
esac esac
if [ "$LOGS" = "yes" ]; then
ALIAS=$DIR/$RESULT/$FILE RESULTS="$DIR/$RESULT"
else for res in $RESULTS ; do
ALIAS=$DIR/$RESULT/${FILE%.*}.diff if [ "$LOGS" = "yes" ]; then
fi ALIAS+=" @$res/$FILE"
if [ "$COMMIT" = "yes" ]; then else
COMMITS="${COMMITS} $DIR/$RESULT/${FILE%.*}" ALIAS+=" @$res/${FILE%.*}.diff"
fi fi
if [ "$COMMIT" = "yes" ]; then
COMMITS+=" $res/${FILE%.*}"
fi
done
Head "Register test on file $1 $CFG" Head "Register test on file $1 $CFG"
DUNE_ALIAS="${DUNE_ALIAS} @$ALIAS" DUNE_ALIAS="${DUNE_ALIAS} $ALIAS"
} }
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment