Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
061a407c
Commit
061a407c
authored
Oct 02, 2017
by
Andrei Vagin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alpine: compile all tests
Signed-off-by:
Andrei Vagin
<
avagin@virtuozzo.com
>
parent
7678f440
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
Dockerfile.alpine
scripts/build/Dockerfile.alpine
+7
-4
Makefile
scripts/travis/Makefile
+4
-1
asan.sh
scripts/travis/asan.sh
+1
-1
No files found.
scripts/build/Dockerfile.alpine
View file @
061a407c
...
@@ -20,8 +20,8 @@ RUN apk update && apk add \
...
@@ -20,8 +20,8 @@ RUN apk update && apk add \
COPY . /criu
COPY . /criu
WORKDIR /criu
WORKDIR /criu
ENV CC="ccache $CC" CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
ENV CC="ccache $CC" CCACHE_DIR=/tmp/.ccache CCACHE_NOCOMPRESS=1 $ENV1=yes
RUN mv .ccache /tmp && make mrproper && ccache -s && \
RUN mv .ccache /tmp && make mrproper && ccache -s &&
ccache -z &&
\
date && make -j $(nproc) CC="$CC" && date
date && make -j $(nproc) CC="$CC" && date
&& ccache -s
# Run a test
# Run a test
RUN apk add py-yaml \
RUN apk add py-yaml \
...
@@ -29,5 +29,8 @@ RUN apk add py-yaml \
...
@@ -29,5 +29,8 @@ RUN apk add py-yaml \
ip6tables \
ip6tables \
iptables \
iptables \
iproute2 \
iproute2 \
&& pip install protobuf \
tar \
&& make -C test/zdtm/static env00
bash
RUN pip install protobuf ipaddr
RUN make -C test/zdtm
scripts/travis/Makefile
View file @
061a407c
...
@@ -12,12 +12,15 @@ ifdef CLANG
...
@@ -12,12 +12,15 @@ ifdef CLANG
endif
endif
TARGETS
:=
fedora-asan alpine fedora-rawhide
TARGETS
:=
fedora-asan alpine fedora-rawhide
ZDTM_OPTIONS
:=
alpine
:
ZDTM_OPTIONS=-x zdtm/static/binfmt_misc -x zdtm/static/netns-nf -x zdtm/static/sched_policy00 -x zdtm/static/seccomp_strict -x zdtm/static/sigaltstack -x zdtm/static/signalfd00 -x zdtm/static/config_inotify_irmap
$(TARGETS)
:
$(TARGETS)
:
echo
'DOCKER_OPTS="--storage-driver=devicemapper"'
>
/etc/default/docker
echo
'DOCKER_OPTS="--storage-driver=devicemapper"'
>
/etc/default/docker
restart docker
restart docker
$(MAKE)
-C
../build
$@
$
(
target-suffix
)
$(MAKE)
-C
../build
$@
$
(
target-suffix
)
docker run
--rm
-it
--privileged
-v
/lib/modules:/lib/modules criu-
$@
./scripts/travis/asan.sh
docker run
--rm
-it
--privileged
-v
/lib/modules:/lib/modules criu-
$@
./scripts/travis/asan.sh
$(ZDTM_OPTIONS)
docker-test
:
docker-test
:
./docker-test.sh
./docker-test.sh
...
...
scripts/travis/asan.sh
View file @
061a407c
...
@@ -8,7 +8,7 @@ chmod 0777 test
...
@@ -8,7 +8,7 @@ chmod 0777 test
chmod
0777
test
/zdtm/transition/
chmod
0777
test
/zdtm/transition/
chmod
0777
test
/zdtm/static
chmod
0777
test
/zdtm/static
./test/zdtm.py run
-a
--keep-going
-k
always
--parallel
4
-x
zdtm/static/rtc
./test/zdtm.py run
-a
--keep-going
-k
always
--parallel
4
-x
zdtm/static/rtc
"
$@
"
ret
=
$?
ret
=
$?
for
i
in
`
find /
-name
'asan.log*'
`
;
do
for
i
in
`
find /
-name
'asan.log*'
`
;
do
...
...
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