Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
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
cm-projects
RIOT
Commits
3217648a
Commit
3217648a
authored
7 years ago
by
Alexandre Abadie
Browse files
Options
Downloads
Patches
Plain Diff
tests/thread_msg_seq: migrate to testrunner script
parent
3a7621d0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/thread_msg_seq/Makefile
+4
-1
4 additions, 1 deletion
tests/thread_msg_seq/Makefile
tests/thread_msg_seq/tests/01-run.py
+26
-0
26 additions, 0 deletions
tests/thread_msg_seq/tests/01-run.py
with
30 additions
and
1 deletion
tests/thread_msg_seq/Makefile
+
4
−
1
View file @
3217648a
APPLICATION
=
thread_msg_seq
APPLICATION
=
thread_msg_seq
include
../Makefile.tests_common
include
../Makefile.tests_common
BOARD_INSUFFICIENT_MEMORY
:=
nucleo32-f031 nucleo32-f042
stm32f0discovery
BOARD_INSUFFICIENT_MEMORY
:=
nucleo32-f031 nucleo32-f042
DISABLE_MODULE
+=
auto_init
DISABLE_MODULE
+=
auto_init
include
$(RIOTBASE)/Makefile.include
include
$(RIOTBASE)/Makefile.include
test
:
tests/01-run.py
This diff is collapsed.
Click to expand it.
tests/thread_msg_seq/tests/01-run.py
0 → 100755
+
26
−
0
View file @
3217648a
#!/usr/bin/env python3
import
os
import
sys
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
environ
[
'
RIOTBASE
'
],
'
dist/tools/testrunner
'
))
import
testrunner
def
testfunc
(
child
):
child
.
expect
(
"
START
"
)
child
.
expect
(
"
THREADS CREATED
"
)
child
.
expect
(
"
THREAD nr1 \(pid:3\) start
"
)
child
.
expect
(
"
THREAD nr1 \(pid:3\) end.
"
)
child
.
expect
(
"
THREAD nr2 \(pid:4\) start
"
)
child
.
expect
(
"
THREAD nr3 \(pid:5\) start
"
)
child
.
expect
(
"
Got msg from pid 3:
\"
nr1
\"
"
)
child
.
expect
(
"
THREAD nr2 \(pid:4\) end.
"
)
child
.
expect
(
"
Got msg from pid 4:
\"
nr2
\"
"
)
child
.
expect
(
"
THREAD nr3 \(pid:5\) end.
"
)
child
.
expect
(
"
Got msg from pid 5:
\"
nr3
\"
"
)
child
.
expect
(
"
SUCCESS
"
)
if
__name__
==
"
__main__
"
:
sys
.
exit
(
testrunner
.
run
(
testfunc
))
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