Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
e5b78473
Commit
e5b78473
authored
7 years ago
by
Daniel Agar
Browse files
Options
Downloads
Patches
Plain Diff
delete unused cmake/test
parent
678e2c41
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmake/test/cmake_tester.py
+0
-52
0 additions, 52 deletions
cmake/test/cmake_tester.py
cmake/test/px4_simple_app_correct.txt
+0
-27
0 additions, 27 deletions
cmake/test/px4_simple_app_correct.txt
cmake/test/px4_simple_app_input.txt
+0
-4
0 additions, 4 deletions
cmake/test/px4_simple_app_input.txt
with
0 additions
and
83 deletions
cmake/test/cmake_tester.py
deleted
100755 → 0
+
0
−
52
View file @
678e2c41
#!/usr/bin/env python
"""
The module facilitates testing in cmake.
It takes a command and a regex for failure ok passing.
It passes if:
* No stderr output.
* Stdout doesn
'
t match failure regex.
* Stdout matches ok regex if given.
"""
from
__future__
import
print_function
import
argparse
import
subprocess
import
re
import
sys
#pylint: disable=invalid-name
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'
cmd
'
)
parser
.
add_argument
(
'
--re-fail
'
)
parser
.
add_argument
(
'
--re-ok
'
)
parser
.
add_argument
(
'
--verbose
'
,
'
-v
'
,
dest
=
'
verbose
'
,
action
=
'
store_true
'
)
parser
.
set_defaults
(
verbose
=
False
)
args
=
parser
.
parse_args
()
proc
=
subprocess
.
Popen
(
args
.
cmd
.
split
(),
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
stdout
,
stderr
=
proc
.
communicate
()
if
stderr
!=
""
:
print
(
stderr
)
sys
.
exit
(
1
)
if
args
.
re_fail
is
not
None
:
fail_match
=
re
.
search
(
args
.
re_fail
,
stdout
)
if
fail_match
is
not
None
:
print
(
stdout
)
sys
.
exit
(
1
)
if
args
.
re_ok
is
not
None
:
ok_match
=
re
.
search
(
args
.
re_ok
,
stdout
)
if
re
.
match
(
args
.
re_ok
,
stdout
)
is
None
:
print
(
stdout
)
sys
.
exit
(
1
)
if
args
.
verbose
:
print
(
stdout
)
sys
.
exit
(
0
)
# vim: set et ft=python fenc=utf-8 ff=unix sts=4 sw=4 ts=4 :
This diff is collapsed.
Click to expand it.
cmake/test/px4_simple_app_correct.txt
deleted
100644 → 0
+
0
−
27
View file @
678e2c41
INFO Shell id is 47996278451456
WARN 1 starting task wkr_high (file /home/jgoppert/git/px4/cmake-Firmware/src/platforms/posix/px4_layer/px4_posix_tasks.cpp line 146)
WARN 54 starting task wkr_low (file /home/jgoppert/git/px4/cmake-Firmware/src/platforms/posix/px4_layer/px4_posix_tasks.cpp line 146)
WARN 100 starting task wkr_hrt (file /home/jgoppert/git/px4/cmake-Firmware/src/platforms/posix/px4_layer/px4_posix_tasks.cpp line 146)
App name: px4
Enter a command and its args:
----------------------------------
Running: uorb
Returning: uorb
Enter a command and its args:
----------------------------------
Running: accelsim
Returning: accelsim
Enter a command and its args:
----------------------------------
Running: px4_simple_app
Hello Sky!
[px4_simple_app] Got no data within a second
[px4_simple_app] Got no data within a second
[px4_simple_app] Got no data within a second
[px4_simple_app] Got no data within a second
[px4_simple_app] Got no data within a second
Returning: px4_simple_app
Enter a command and its args:
----------------------------------
Running: shutdown
Shutting down
This diff is collapsed.
Click to expand it.
cmake/test/px4_simple_app_input.txt
deleted
100644 → 0
+
0
−
4
View file @
678e2c41
uorb start
accelsim start
px4_simple_app
shutdown
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