Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot DNS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
22
Issues
22
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
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
Knot projects
Knot DNS
Commits
ffa045fb
Commit
ffa045fb
authored
Jan 02, 2015
by
Marek Vavruša
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dockerized tests-extra
parent
78144893
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
2 deletions
+29
-2
tests-extra/Dockerfile
tests-extra/Dockerfile
+27
-0
tests-extra/README
tests-extra/README
+2
-2
No files found.
tests-extra/Dockerfile
0 → 100644
View file @
ffa045fb
FROM
cznic/knot:latest
MAINTAINER
Marek Vavrusa <marek.vavrusa@nic.cz>
# Install dependencies and sources
RUN
apt-get
-q
-y
update
;
\
apt-get
install
-q
-y
\
python3
\
python3-pip
\
bind9
\
bind9utils
\
valgrind
\
lsof
\
gdb
;
\
pip3
install
dnspython3
;
\
pip3
install
psutil
;
\
# Prepare the tests
mkdir /tests; \
# Link the tested executables
mkdir /src; \
ln -sfn /usr/local/sbin/knotd /src/knotd; \
ln -sfn /usr/local/bin/knotc /src/knotc; \
# Trim down the image
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*
# Select entrypoint
WORKDIR
/tests
ENTRYPOINT
"/tests/runtests.py"
tests-extra/README
View file @
ffa045fb
...
...
@@ -37,8 +37,8 @@ the main benefit is that each test runs in an isolated container and can be run
Run tests on the upstream branch:
---------------------------------
$ docker pull cznic/knot
-tests-extra # Or build with 'docker build -t knot-
tests-extra .'
$ docker run -v $(pwd):/tests cznic/knot
-
tests-extra basic
$ docker pull cznic/knot
:tests-extra # Or build with 'docker build -t
tests-extra .'
$ docker run -v $(pwd):/tests cznic/knot
:
tests-extra basic
Run tests on the local executables:
-----------------------------------
...
...
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