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
d46149de
Commit
d46149de
authored
1 year ago
by
Thibault Martin
Browse files
Options
Downloads
Patches
Plain Diff
[tests] Also promote err.log files
parent
d02a915f
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
+24
-16
24 additions, 16 deletions
bin/test.sh
with
24 additions
and
16 deletions
bin/test.sh
+
24
−
16
View file @
d46149de
...
...
@@ -500,27 +500,35 @@ function Register
# --- Tests Create New Oracles
# --------------------------------------------------------------------------
function
CreateNewOraclesAux
{
for
log
in
$1
*
.
$2
.log
do
# Only non-empty oracles
if
[
-s
"
$log
"
]
;
then
dest
=
"
${
log
//result/oracle
}
"
dest
=
"
${
dest
//
$2
.log/
$2
.oracle
}
"
# Only non-existing oracles, existing ones will be updated via
# dune --auto-promote
if
[
!
-f
"../../
$dest
"
]
;
then
echo
"Create oracle
$dest
"
cp
-f
$log
"../../
$dest
"
fi
fi
done
}
function
CreateNewOracles
{
while
[
"
$1
"
!=
""
]
do
cd
_build/default
for
log
in
$1
*
.res.log
do
# Only non-empty oracles
if
[
-s
"
$log
"
]
;
then
dest
=
"
${
log
//result/oracle
}
"
dest
=
"
${
dest
//res.log/res.oracle
}
"
# Only non-existing oracles, existing ones will be updated via
# dune --auto-promote
if
[
!
-f
"../../
$dest
"
]
;
then
echo
"Create oracle
$dest
"
cp
-f
$log
"../../
$dest
"
fi
fi
done
CreateNewOraclesAux
$1
res
CreateNewOraclesAux
$1
err
cd
../..
shift
done
...
...
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