buck's review
This commit is contained in:
parent
737582d78a
commit
47489106e2
6 changed files with 21 additions and 18 deletions
26
Makefile
26
Makefile
|
@ -1,10 +1,18 @@
|
||||||
DOCKER_RUN_TEST := docker run -v $(PWD):/mnt:ro
|
DOCKER_RUN_TEST := docker run -v $(PWD):/mnt:ro
|
||||||
DOCKER_DEB_TEST := sh -c 'apt-get update && \
|
DOCKER_DEB_TEST := sh -euxc ' \
|
||||||
apt-get install -y --no-install-recommends procps && \
|
apt-get update \
|
||||||
dpkg -i /mnt/dist/*.deb && cd /mnt && ./test'
|
&& apt-get install -y --no-install-recommends procps \
|
||||||
DOCKER_PYTHON_TEST := sh -c 'apt-get update && \
|
&& dpkg -i /mnt/dist/*.deb \
|
||||||
apt-get install -y --no-install-recommends python-pip build-essential procps && \
|
&& cd /mnt \
|
||||||
pip install /mnt && cd /mnt && ./test'
|
&& ./test \
|
||||||
|
'
|
||||||
|
DOCKER_PYTHON_TEST := sh -uexc ' \
|
||||||
|
apt-get update \
|
||||||
|
&& apt-get install -y --no-install-recommends python-pip build-essential procps \
|
||||||
|
&& pip install -vv /mnt \
|
||||||
|
&& cd /mnt \
|
||||||
|
&& ./test \
|
||||||
|
'
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
|
@ -44,17 +52,11 @@ install-hooks:
|
||||||
itest: itest_lucid itest_precise itest_trusty itest_wheezy itest_jessie itest_stretch
|
itest: itest_lucid itest_precise itest_trusty itest_wheezy itest_jessie itest_stretch
|
||||||
|
|
||||||
itest_lucid: _itest-ubuntu-lucid
|
itest_lucid: _itest-ubuntu-lucid
|
||||||
@true
|
|
||||||
itest_precise: _itest-ubuntu-precise
|
itest_precise: _itest-ubuntu-precise
|
||||||
@true
|
|
||||||
itest_trusty: _itest-ubuntu-trusty
|
itest_trusty: _itest-ubuntu-trusty
|
||||||
@true
|
|
||||||
itest_wheezy: _itest-debian-wheezy
|
itest_wheezy: _itest-debian-wheezy
|
||||||
@true
|
|
||||||
itest_jessie: _itest-debian-jessie
|
itest_jessie: _itest-debian-jessie
|
||||||
@true
|
|
||||||
itest_stretch: _itest-debian-stretch
|
itest_stretch: _itest-debian-stretch
|
||||||
@true
|
|
||||||
|
|
||||||
_itest-%: _itest_deb-% _itest_python-%
|
_itest-%: _itest_deb-% _itest_python-%
|
||||||
@true
|
@true
|
||||||
|
|
2
test
2
test
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh -eu
|
#!/bin/bash -eux
|
||||||
if [ "$#" -eq 1 ]; then
|
if [ "$#" -eq 1 ]; then
|
||||||
dumb_init_bin=$(readlink -f "$1")
|
dumb_init_bin=$(readlink -f "$1")
|
||||||
else
|
else
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh -eu
|
#!/bin/bash -eux
|
||||||
# Print received signals into a file, one per line
|
# Print received signals into a file, one per line
|
||||||
file="$1"
|
file="$1"
|
||||||
|
|
||||||
|
@ -10,5 +10,6 @@ done
|
||||||
|
|
||||||
echo 'ready' > "$file"
|
echo 'ready' > "$file"
|
||||||
|
|
||||||
# loop forever
|
echo 'loop forever...'
|
||||||
|
set +x
|
||||||
while :; do true; done
|
while :; do true; done
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh -u
|
#!/bin/bash -eux
|
||||||
dumb_init="$1"
|
dumb_init="$1"
|
||||||
|
|
||||||
# dumb-init should exit with the same exit status as the process it launches.
|
# dumb-init should exit with the same exit status as the process it launches.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh -u
|
#!/bin/bash -eux
|
||||||
# dumb-init should say something useful when called with no arguments, and exit
|
# dumb-init should say something useful when called with no arguments, and exit
|
||||||
# nonzero.
|
# nonzero.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh -eum
|
#!/bin/bash -euxm
|
||||||
# dumb-init should proxy all possible signals to the child process.
|
# dumb-init should proxy all possible signals to the child process.
|
||||||
dumb_init="$1"
|
dumb_init="$1"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue