Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Mock Turtle
Commits
eb9a3048
Commit
eb9a3048
authored
Mar 18, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tst: SPEC demo could be used for validation
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
5b84fbc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test_config.py
tests/test_config.py
+2
-2
No files found.
tests/test_config.py
View file @
eb9a3048
...
...
@@ -14,7 +14,7 @@ class TestConfig(object):
def
test_valid_host
(
self
,
trtl_device
,
cfg
):
assert
trtl_device
.
rom
.
signature
==
cfg
.
signature
assert
trtl_device
.
rom
.
app_id
==
cfg
.
app_id
assert
((
trtl_device
.
rom
.
app_id
==
cfg
.
app_id
)
or
(
trtl_device
.
rom
.
app_id
==
cfg
.
app_id
|
0x10001
))
# SVEC or SPEC DEMO
assert
trtl_device
.
rom
.
n_cpu
==
cfg
.
n_cpu
def
test_valid_softcpu
(
self
,
trtl_cpu
,
cfg
,
firmware_file_config
):
...
...
@@ -27,5 +27,5 @@ class TestConfig(object):
msg
=
trtl_cpu
.
hmq
[
0
]
.
recv_msg
()
assert
msg
.
payload
[
0
]
==
cfg
.
signature
assert
msg
.
payload
[
5
]
==
cfg
.
app_id
assert
((
msg
.
payload
[
5
]
==
cfg
.
app_id
)
or
(
msg
.
payload
[
5
]
==
cfg
.
app_id
|
0x10001
))
assert
msg
.
payload
[
6
]
==
cfg
.
n_cpu
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment