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
bb1afb86
Commit
bb1afb86
authored
7 years ago
by
Alexandre Abadie
Browse files
Options
Downloads
Patches
Plain Diff
tests/pkg_8g2: migrate to testrunner
parent
4ee7d135
No related branches found
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/pkg_u8g2/Makefile
+3
-0
3 additions, 0 deletions
tests/pkg_u8g2/Makefile
tests/pkg_u8g2/tests/01-run.py
+75
-0
75 additions, 0 deletions
tests/pkg_u8g2/tests/01-run.py
with
78 additions
and
0 deletions
tests/pkg_u8g2/Makefile
+
3
−
0
View file @
bb1afb86
...
...
@@ -59,3 +59,6 @@ CFLAGS += -DTEST_PIN_RESET=$(TEST_PIN_RESET)
CFLAGS
+=
-DTEST_DISPLAY
=
$(
TEST_DISPLAY
)
include
$(RIOTBASE)/Makefile.include
test
:
tests/01-run.py
This diff is collapsed.
Click to expand it.
tests/pkg_u8g2/tests/01-run.py
0 → 100755
+
75
−
0
View file @
bb1afb86
#!/usr/bin/env python3
# Copyright (C) 2017 Inria
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import
os
import
sys
EXPECTED_STDOUT
=
(
'
00| |
'
,
'
02| |
'
,
'
04| |
'
,
'
06| |
'
,
'
08| |
'
,
'
10| █████▐▋ ▐▋▐▋ ▟██▖ |
'
,
'
12| █ ▐▋ ▐▋▐▋▐▛ ▝█ |
'
,
'
14| █ ▐████▋▐▋▝█▙▄ |
'
,
'
16| █ ▐▋ ▐▋▐▋ ▀▜▙ |
'
,
'
18| █ ▐▋ ▐▋▐▋▐▙ ▗█ |
'
,
'
20| █ ▐▋ ▐▋▐▋ ▜██▘ |
'
,
'
22| |
'
,
'
24| |
'
,
'
26| |
'
,
'
28| |
'
,
'
30| |
'
,
'
00| |
'
,
'
02| |
'
,
'
04| |
'
,
'
06| |
'
,
'
08| |
'
,
'
10| ▐▋ ▟██▖ |
'
,
'
12| ▐▋▐▛ ▝█ |
'
,
'
14| ▐▋▝█▙▄ |
'
,
'
16| ▐▋ ▀▜▙ |
'
,
'
18| ▐▋▐▙ ▗█ |
'
,
'
20| ▐▋ ▜██▘ |
'
,
'
22| |
'
,
'
24| |
'
,
'
26| |
'
,
'
28| |
'
,
'
30| |
'
,
'
00| ▄▄▖ |
'
,
'
02| ▗████▋ |
'
,
'
04| ▗█▛▘ ▜█▖ |
'
,
'
06| ▐█ █▋ |
'
,
'
08| ██ █▋ |
'
,
'
10| ██ ▟█▘ |
'
,
'
12| ▜█ ▄▟█▛ ▄ ▄▄ ▄▄▄▄ |
'
,
'
14| ▗▄█▖▐█▝██▀ █▋ ▟▛▜▙ ▀▜▛▀ |
'
,
'
16| ▗██▀ ▐█ ▝ █▋ █▋ █ ▐▋ |
'
,
'
18| ▟▛ ▐█ ▄ █▋ █▋ █ ▐▋ |
'
,
'
20| █▋ ▐█ ▝█▋ █▋ █▋ █ ▐▋ |
'
,
'
22| █▋ ▐█ ▜█ █▋ █▋ █ ▐▋ |
'
,
'
24| █▙ ▗█▛ ▝█▙ █▋ █▋▗█ ▐▋ |
'
,
'
26| ▐█▙▄██▘ ▜█ █▘ ▝██▘ ▐▋ |
'
,
'
28| ▝▜█▀▘ |
'
,
'
30| |
'
,
)
def
testfunc
(
child
):
child
.
expect_exact
(
'
Initializing to stdout.
'
)
child
.
expect_exact
(
'
Initializing display.
'
)
child
.
expect_exact
(
'
Drawing on screen.
'
)
for
line
in
EXPECTED_STDOUT
:
child
.
expect_exact
(
line
)
if
__name__
==
"
__main__
"
:
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
environ
[
'
RIOTBASE
'
],
'
dist/tools/testrunner
'
))
from
testrunner
import
run
sys
.
exit
(
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