Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
210910794
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
210910794
Commits
63b1fa03
Commit
63b1fa03
authored
5 years ago
by
Matthew Hansen
Committed by
Matt Hansen
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add ctest loop script to system tests
parent
2eec1436
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nav2_system_tests/scripts/ctest_loop.bash
+50
-0
50 additions, 0 deletions
nav2_system_tests/scripts/ctest_loop.bash
with
50 additions
and
0 deletions
nav2_system_tests/scripts/ctest_loop.bash
0 → 100755
+
50
−
0
View file @
63b1fa03
#!/bin/bash
#
# Simple bash script to loop over the navigation2 "bt_navigator" system test
#
# options:
# -c <#> - number of times to loop
# -o <file> - name of summary output file
# -l <file> - name to use for failing log files
# -d <dds> - name of DDS implementation to use (ex: rmw_fastrtps_cpp)
failcount
=
0
loopcount
=
1
while
getopts
c:o:l:d: option
do
case
"
$option
"
in
c
)
loopcount
=
$OPTARG
;;
o
)
outfile
=
$OPTARG
;;
l
)
logfile
=
$OPTARG
;;
d
)
dds
=
$OPTARG
;;
esac
done
echo
"Total loop count = "
$loopcount
export
RMW_IMPLEMENTATION
=
$dds
for
((
i
=
1
;
i<
=
$loopcount
;
i++
))
do
echo
"******************************"
echo
"Loop number: "
$i
echo
"Running with DDS: "
$dds
echo
"******************************"
ctest
-V
-R
test_bt_navigator
$
-O
$logfile
result
=
$?
echo
"RESULT ="
$result
if
[
"
$result
"
!=
"0"
]
then
((
failcount+
=
1
))
echo
"TEST
$i
FAILED"
>>
$outfile
mv
$logfile
$logfile
.
$i
.fail
fi
echo
$i
"TESTS COMPLETED"
echo
$failcount
"TOTAL FAILURES"
done
echo
$failcount
" FAILURES / "
$loopcount
echo
$failcount
" FAILURES / "
$loopcount
>>
$outfile
This diff is collapsed.
Click to expand it.
Preview
0%
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