Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
0ae8fb60
Commit
0ae8fb60
authored
2 years ago
by
Patrick Baudin
Browse files
Options
Downloads
Patches
Plain Diff
[tests] fix promoting when using test script
parent
e88b2108
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/test.sh
+11
-8
11 additions, 8 deletions
bin/test.sh
with
11 additions
and
8 deletions
bin/test.sh
+
11
−
8
View file @
0ae8fb60
...
...
@@ -29,6 +29,7 @@ LOGS=
TESTS
=
SAVE
=
DUNE_ALIAS
=
DUNE_OPT
=
DUNE_LOG
=
./.test-errors.log
CACHEDIR
=
$(
pwd
-P
)
/.wp-cache
...
...
@@ -169,9 +170,10 @@ function PullCache
# --------------------------------------------------------------------------
[
"
$DUNE_LOG
"
=
""
]
||
rm
-rf
$DUNE_LOG
function
Test
Alias
function
Run
Alias
{
Head
"Running tests..."
if
[
"
$DUNE_LOG
"
=
""
]
;
then
Run dune build
$DUNE_OPT
$@
elif
[
"
$SAVE
"
!=
"yes"
]
&&
[
"
$VERBOSE
"
!=
"yes"
]
;
then
...
...
@@ -204,8 +206,8 @@ function TestDir
CFG
=
"(config
$CONFIG
)"
;;
esac
Head
"R
unning
test on directory
$1
$CFG
"
TestAlias
@
$ALIAS
Head
"R
egister
test on directory
$1
$CFG
"
DUNE_ALIAS
=
"
${
DUNE_ALIAS
}
@
$ALIAS
"
}
# --------------------------------------------------------------------------
...
...
@@ -233,15 +235,15 @@ function TestFile
else
ALIAS
=
$DIR
/
$RESULT
/
${
FILE
%.*
}
.wtests
fi
Head
"R
unning
test on file
$1
$CFG
"
TestAlias
@
$ALIAS
Head
"R
egister
test on file
$1
$CFG
"
DUNE_ALIAS
=
"
${
DUNE_ALIAS
}
@
$ALIAS
"
}
# --------------------------------------------------------------------------
# --- Tests Processing
# --------------------------------------------------------------------------
function
R
unTests
function
R
egister
{
while
[
"
$1
"
!=
""
]
do
...
...
@@ -251,7 +253,7 @@ function RunTests
TestFile
$1
else
case
$1
in
@
*
)
Head
"R
unning
test on alias
$1
"
;
TestAlias
$1
;;
@
*
)
Head
"R
egister
test on alias
$1
"
;
DUNE_ALIAS
=
"
${
DUNE_ALIAS
}
$1
"
;;
*
)
ErrorUsage
"ERROR: don't known what to do with '
$1
'"
;;
esac
fi
...
...
@@ -349,5 +351,6 @@ do
esac
shift
done
RunTests
$TESTS
Register
$TESTS
RunAlias
${
DUNE_ALIAS
}
Status
$DUNE_LOG
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment