Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libnux
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
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Apps
BrainScaleS
libnux
Commits
f028e50b
Commit
f028e50b
authored
5 years ago
by
Yannik Stradmann
Committed by
Yannik Stradmann
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Adapt to c/9382: Use unstripped test binaries
Depends-On: 9382,9384 Change-Id: I1119611c305d63577d18b4042a7209d48cc8013d
parent
c977240a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/helpers/hwtest_common.py
+7
-6
7 additions, 6 deletions
test/helpers/hwtest_common.py
wscript
+4
-7
4 additions, 7 deletions
wscript
with
11 additions
and
13 deletions
test/helpers/hwtest_common.py
+
7
−
6
View file @
f028e50b
...
...
@@ -14,7 +14,8 @@ TEST_BINARY_PATH = os.environ.get("TEST_BINARY_PATH",
os
.
pardir
,
os
.
pardir
,
"
build
"
,
"
libnux
"
)
"
libnux
"
,
"
test
"
)
)
if
not
os
.
path
.
isdir
(
TEST_BINARY_PATH
):
...
...
@@ -68,7 +69,7 @@ def find_binaries(dls_version: str) -> Set[PpuHwTest]:
"""
ret
=
set
()
test_regex
=
re
.
compile
(
r
'
(?:\b|_)[Tt]est.*
'
+
dls_version
+
r
'
\.bin
ary
'
)
test_regex
=
re
.
compile
(
r
'
(?:\b|_)[Tt]est.*
'
+
dls_version
+
r
'
\.bin
$
'
)
for
path
,
directories
,
files
in
os
.
walk
(
TEST_BINARY_PATH
):
for
f
in
files
:
if
test_regex
.
search
(
f
):
...
...
@@ -91,15 +92,15 @@ def get_special_binaries(dls_version: str) -> Set[PpuHwTest]:
return
{
PpuHwTest
(
join
(
TEST_BINARY_PATH
,
f
"
test_unittest_
{
dls_version
}
.bin
ary
"
),
join
(
TEST_BINARY_PATH
,
f
"
test_unittest_
{
dls_version
}
.bin
"
),
expected_exit_code
=
1
),
PpuHwTest
(
join
(
TEST_BINARY_PATH
,
f
"
test_returncode_
{
dls_version
}
.bin
ary
"
),
join
(
TEST_BINARY_PATH
,
f
"
test_returncode_
{
dls_version
}
.bin
"
),
expected_exit_code
=-
559038737
),
PpuHwTest
(
join
(
TEST_BINARY_PATH
,
f
"
test_stack_guard_
{
dls_version
}
.bin
ary
"
),
join
(
TEST_BINARY_PATH
,
f
"
test_stack_guard_
{
dls_version
}
.bin
"
),
expected_exit_code
=
stack_protection
*
-
559038737
),
PpuHwTest
(
join
(
TEST_BINARY_PATH
,
f
"
test_stack_redzone_
{
dls_version
}
.bin
ary
"
),
join
(
TEST_BINARY_PATH
,
f
"
test_stack_redzone_
{
dls_version
}
.bin
"
),
expected_exit_code
=
12
if
stack_redzone
else
2
)
}
This diff is collapsed.
Click to expand it.
wscript
+
4
−
7
View file @
f028e50b
...
...
@@ -42,7 +42,6 @@ def configure(conf):
conf.setenv('nux')
conf.load('nux_assembler')
conf.load('nux_compiler')
conf.load('objcopy')
conf.load('test_base')
conf.env.append_value('LINKFLAGS', '-T%s' % conf.path.find_node('libnux/elf32nux.x').abspath())
conf.env.append_value('ASLINKFLAGS', '-T%s' % conf.path.find_node('libnux/elf32nux.x').abspath())
...
...
@@ -171,8 +170,7 @@ def build(bld):
for program in program_list:
bld.program(
features = 'cxx objcopy',
objcopy_bfdname = 'binary',
features = 'cxx',
target = program.replace('.cpp', '') + '_' + dls_version + '.bin',
source = [program],
use = ['nux_' + dls_version, 'nux_runtime_' + dls_version],
...
...
@@ -209,9 +207,8 @@ def build(bld):
return 976
bld.program(
features = 'cxx
objcopy
check_size',
features = 'cxx check_size',
check_size_max = max_size_empty(),
objcopy_bfdname = 'binary',
target = 'test_empty_' + dls_version + '.bin',
source = ['test/test_empty.cpp'],
use = ['nux_' + dls_version, 'nux_runtime_' + dls_version],
...
...
@@ -228,7 +225,7 @@ def build(bld):
env = bld.all_envs[''],
test_environ = dict(STACK_PROTECTION=env.LIBNUX_STACK_PROTECTOR_ENABLED[0],
STACK_REDZONE=env.LIBNUX_STACK_REDZONE_ENABLED[0],
TEST_BINARY_PATH=os.path.join(bld.env.PREFIX, 'build', 'libnux')),
TEST_BINARY_PATH=os.path.join(bld.env.PREFIX, 'build', 'libnux'
, 'test'
)),
pylint_config=join(get_toplevel_path(), "code-format", "pylintrc"),
pycodestyle_config=join(get_toplevel_path(), "code-format", "pycodestyle"),
test_timeout = 3600
...
...
@@ -244,7 +241,7 @@ def build(bld):
env = bld.all_envs[''],
test_environ = dict(STACK_PROTECTION=env.LIBNUX_STACK_PROTECTOR_ENABLED[0],
STACK_REDZONE=env.LIBNUX_STACK_REDZONE_ENABLED[0],
TEST_BINARY_PATH=os.path.join(bld.env.PREFIX, 'build', 'libnux'))
TEST_BINARY_PATH=os.path.join(bld.env.PREFIX, 'build', 'libnux'
, 'test'
))
)
bld.add_post_fun(summary)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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