Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Baitboat
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
OpenSource
Baitboat
Commits
e49cd68b
Commit
e49cd68b
authored
10 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
autotest: save core and elf files
try to catch floating pt exception causes
parent
7f823974
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Tools/autotest/autotest.py
+14
-0
14 additions, 0 deletions
Tools/autotest/autotest.py
Tools/scripts/build_autotest.sh
+4
-1
4 additions, 1 deletion
Tools/scripts/build_autotest.sh
with
18 additions
and
1 deletion
Tools/autotest/autotest.py
+
14
−
0
View file @
e49cd68b
...
...
@@ -319,17 +319,24 @@ def write_fullresults():
results
.
addfile
(
'
ArduPlane stack sizes
'
,
'
ArduPlane.framesizes.txt
'
)
results
.
addfile
(
'
ArduPlane defaults
'
,
'
ArduPlane-defaults.parm
'
)
results
.
addglob
(
"
ArduPlane log
"
,
'
ArduPlane-*.BIN
'
)
results
.
addglob
(
"
ArduPlane core
"
,
'
ArduPlane.core
'
)
results
.
addglob
(
"
ArduPlane ELF
"
,
'
ArduPlane.elf
'
)
results
.
addfile
(
'
ArduCopter build log
'
,
'
ArduCopter.txt
'
)
results
.
addfile
(
'
ArduCopter code size
'
,
'
ArduCopter.sizes.txt
'
)
results
.
addfile
(
'
ArduCopter stack sizes
'
,
'
ArduCopter.framesizes.txt
'
)
results
.
addfile
(
'
ArduCopter defaults
'
,
'
ArduCopter-defaults.parm
'
)
results
.
addglob
(
"
ArduCopter log
"
,
'
ArduCopter-*.BIN
'
)
results
.
addglob
(
"
ArduCopter core
"
,
'
ArduCopter.core
'
)
results
.
addglob
(
"
ArduCopter elf
"
,
'
ArduCopter.elf
'
)
results
.
addglob
(
"
CopterAVC log
"
,
'
CopterAVC-*.BIN
'
)
results
.
addglob
(
"
CopterAVC core
"
,
'
CopterAVC.core
'
)
results
.
addfile
(
'
APMrover2 build log
'
,
'
APMrover2.txt
'
)
results
.
addfile
(
'
APMrover2 code size
'
,
'
APMrover2.sizes.txt
'
)
results
.
addfile
(
'
APMrover2 stack sizes
'
,
'
APMrover2.framesizes.txt
'
)
results
.
addfile
(
'
APMrover2 defaults
'
,
'
APMrover2-defaults.parm
'
)
results
.
addglob
(
"
APMrover2 log
"
,
'
APMrover2-*.BIN
'
)
results
.
addglob
(
"
APMrover2 core
"
,
'
APMrover2.core
'
)
results
.
addglob
(
"
APMrover2 ELF
"
,
'
APMrover2.elf
'
)
results
.
addglob
(
'
APM:Libraries documentation
'
,
'
docs/libraries/index.html
'
)
results
.
addglob
(
'
APM:Plane documentation
'
,
'
docs/ArduPlane/index.html
'
)
results
.
addglob
(
'
APM:Copter documentation
'
,
'
docs/ArduCopter/index.html
'
)
...
...
@@ -357,6 +364,13 @@ def check_logs(step):
print
(
"
Renaming %s to %s
"
%
(
log
,
newname
))
os
.
rename
(
log
,
newname
)
corefile
=
util
.
reltopdir
(
"
core
"
)
if
os
.
path
.
exists
(
corefile
):
newname
=
util
.
reltopdir
(
"
../buildlogs/%s.core
"
%
vehicle
)
print
(
"
Renaming %s to %s
"
%
(
corefile
,
newname
))
os
.
rename
(
corefile
,
newname
)
util
.
run_cmd
(
util
.
reltopdir
(
'
/bin/cp A*/A*.elf ../buildlogs
'
),
dir
=
util
.
reltopdir
(
'
.
'
))
def
run_tests
(
steps
):
'''
run a list of steps
'''
global
results
...
...
This diff is collapsed.
Click to expand it.
Tools/scripts/build_autotest.sh
+
4
−
1
View file @
e49cd68b
...
...
@@ -150,7 +150,7 @@ for d in ArduPlane ArduCopter APMrover2; do
done
mkdir
-p
"buildlogs/history/
$hdate
"
(
cd
buildlogs
&&
cp
-f
*
.txt
*
.flashlog
*
.tlog
*
.km[lz]
*
.gpx
*
.html
*
.png
*
.bin
"history/
$hdate
/"
)
(
cd
buildlogs
&&
cp
-f
*
.txt
*
.flashlog
*
.tlog
*
.km[lz]
*
.gpx
*
.html
*
.png
*
.bin
*
.BIN
*
.elf
"history/
$hdate
/"
)
echo
$githash
>
"buildlogs/history/
$hdate
/githash.txt"
(
cd
APM
&&
Tools/scripts/build_parameters.sh
)
...
...
@@ -159,6 +159,9 @@ echo $githash > "buildlogs/history/$hdate/githash.txt"
killall
-9
JSBSim
||
/bin/true
# raise core limit
ulimit
-c
10000000
timelimit 7500 APM/Tools/autotest/autotest.py
--timeout
=
7000
>
buildlogs/autotest-output.txt 2>&1
)
>>
build.log 2>&1
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