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
8acc15dc
Commit
8acc15dc
authored
Sep 03, 2018
by
Martin Jeřábek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run-docker-test: autoremove container, allow for direct command execution
parent
d10d8186
Pipeline
#2051
passed with stages
in 5 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
run-docker-test
run-docker-test
+9
-2
No files found.
run-docker-test
View file @
8acc15dc
...
...
@@ -4,6 +4,9 @@
# Run docker with vunit and ghdl with current directory mounted in /build.
# It is ready to run tests via, for example, `make test_fast coverage`
#
# Can also be run directly with command to run:
# ./run-docker-test make test_fast
#
if
[
-d
/build
]
;
then
export
PATH
=
/opt/ghdl/bin:
$PATH
...
...
@@ -11,8 +14,12 @@ if [ -d /build ]; then
export
LANG
=
C.UTF-8
export
PYTHONUNBUFFERED
=
1
cd
/build/test
exec
bash
if
[
$#
-gt
0
]
;
then
exec
"
$@
"
else
exec
bash
fi
else
docker run
-ti
-v
$PWD
:/build mjerabek/ghdl:upstream-gcc /build/run-docker-test
docker run
--rm
-ti
-v
$PWD
:/build mjerabek/ghdl:upstream-gcc /build/run-docker-test
"
$@
"
fi
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