Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CTU CAN FD IP Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canbus
CTU CAN FD IP Core
Commits
5697766e
Commit
5697766e
authored
May 30, 2018
by
Martin Jeřábek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
place intermediate build products in build subdirectory
parent
e9ebaccc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
.gitlab-ci.yml
.gitlab-ci.yml
+1
-3
test/.gitignore
test/.gitignore
+1
-2
test/Makefile
test/Makefile
+3
-3
test/run.py
test/run.py
+5
-1
No files found.
.gitlab-ci.yml
View file @
5697766e
...
...
@@ -6,9 +6,7 @@ build_ip_and_tests:
stage
:
build
artifacts
:
paths
:
&vunit_build_paths
-
test/vunit_out
-
'
test/*.gcda'
-
'
test/*.gcno'
-
test/build
expire_in
:
1 hour
script
:
-
cd test
...
...
test/.gitignore
View file @
5697766e
*.gcda
*.gcno
/
vunit_out
/
build
/code_html
code_coverage.info
/work
tb_wrappers*.vhd
test*.xml
test/Makefile
View file @
5697766e
...
...
@@ -7,7 +7,7 @@ ifeq ($(XUNIT),0)
TEST_FLAGS
+=
POSTPROC
:=
:
else
TEST_FLAGS
+=
--xunit-xml
$@
.xml1
TEST_FLAGS
+=
--xunit-xml
../
$@
.xml1
POSTPROC
=
ret
=
$$
?
;
(
echo
'<?xml version="1.0" encoding="utf-8"?>'
;
echo
'<?xml-stylesheet href="xunit.xsl" type="text/xsl"?>'
;
cat
$@
.xml1
)
>
$@
.xml
;
rm
$@
.xml1
;
exit
$$
ret
endif
...
...
@@ -25,10 +25,10 @@ test_sanity:
$(PYTHON)
run.py
$(TEST_FLAGS)
'lib.tb_sanity.*'
;
$(POSTPROC)
coverage
:
lcov
--capture
--directory
.
--output-file
code_coverage.info
lcov
--capture
--directory
build
--output-file
code_coverage.info
genhtml code_coverage.info
--output-directory
code_html
clean
:
-
rm
-Rf
*
.gcno
*
.gcda vunit_out
-
rm
-Rf
build
.PHONY
:
all elaborate test test_unit test_feature test_sanity clean
test/run.py
View file @
5697766e
...
...
@@ -10,10 +10,12 @@ from vunit.ui import VUnit
from
glob
import
glob
from
pprint
import
pprint
import
os
from
os.path
import
abspath
import
signal
import
subprocess
import
re
from
textwrap
import
dedent
from
pathlib
import
Path
def
get_children_pids
(
parent_pid
):
cmd
=
subprocess
.
run
(
"ps -o pid --ppid {} --noheaders"
.
format
(
parent_pid
),
shell
=
True
,
stdout
=
subprocess
.
PIPE
,
check
=
False
)
...
...
@@ -84,7 +86,9 @@ signal.signal(signal.SIGTERM, sighandler)
signal
.
signal
(
signal
.
SIGINT
,
sighandler
)
# ------------------------------------------------------------------------------
root
=
dirname
(
__file__
)
root
=
abspath
(
dirname
(
__file__
))
Path
(
'build'
).
mkdir
(
exist_ok
=
True
)
os
.
chdir
(
'build'
)
ui
=
VUnit
.
from_argv
()
lib
=
ui
.
add_library
(
"lib"
)
...
...
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