Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Open Source Software
Zipr Toolchain
Commits
e341d8d9
Commit
e341d8d9
authored
13 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
Added timeout to manual tests
Former-commit-id: 7f01f52063aef11cb6f2b6644743e8752151a67a
parent
6e886a39
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/do_manual_cover.sh
+6
-0
6 additions, 0 deletions
tools/do_manual_cover.sh
tools/manual_test_import.sh
+7
-1
7 additions, 1 deletion
tools/manual_test_import.sh
with
13 additions
and
1 deletion
tools/do_manual_cover.sh
+
6
−
0
View file @
e341d8d9
...
...
@@ -16,12 +16,18 @@ if [ ! $? -eq 0 ]; then
exit
1
fi
echo
"Inside do_manual_cover.sh"
touch
$AGGREGATE_COVERAGE
for
testname
in
`
ls
$MANUAL_TEST_DIR
`
do
echo
"do moi:
$MANUAL_TEST_DIR
/
$testname
/spec/
$COVER_SCRIPT
"
cd
$MANUAL_TEST_DIR
/
$testname
/spec/
$MANUAL_TEST_DIR
/
$testname
/spec/
$COVER_SCRIPT
cd
-
cat
$MANUAL_TEST_DIR
/
$testname
/spec/coverage/executed_addresses.txt
>>
$AGGREGATE_COVERAGE
done
...
...
This diff is collapsed.
Click to expand it.
tools/manual_test_import.sh
+
7
−
1
View file @
e341d8d9
...
...
@@ -31,6 +31,8 @@ do
shift
done
TEST_TIMEOUT
=
30
echo
"TEST_NAME =
$TEST_NAME
"
echo
"INFILES =
$INFILES
"
echo
"OUTFILES =
$OUTFILES
"
...
...
@@ -93,6 +95,8 @@ done
touch
$TEST_ORIG_CMD_SCRIPT
echo
"#!/bin/sh"
>>
$TEST_ORIG_CMD_SCRIPT
# cleanup input/output files
for
i
in
$INFILES
do
...
...
@@ -113,6 +117,8 @@ done
echo
"
\$
PEASOUP_HOME/tools/manual_cover.sh
$TEST_ORIG_COVERAGE
/executed_addresses.txt --
$CMD
"
>>
$TEST_ORIG_CMD_SCRIPT
cp
a.ncexe
$TEST_SPEC_DIR
/
$PROG
#---------------------------------------
# Transformed cmd/program
#---------------------------------------
...
...
@@ -141,7 +147,7 @@ done
# run command (check for seg faults)
# @todo: we should really register the program exit code and check against it
echo
"STRATA_SPRI_FILE=
\$
1
$CMD
"
>>
$TEST_XFORMED_CMD_SCRIPT
echo
"STRATA_SPRI_FILE=
\$
1
timeout
$TEST_TIMEOUT
$CMD
"
>>
$TEST_XFORMED_CMD_SCRIPT
echo
"status=
\$
?"
>>
$TEST_XFORMED_CMD_SCRIPT
echo
"echo
\$
status"
>>
$TEST_XFORMED_CMD_SCRIPT
echo
"if [
\$
status -eq 139 ]; then"
>>
$TEST_XFORMED_CMD_SCRIPT
...
...
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