diff --git a/Makefile b/Makefile index b584c71..0bf8703 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,18 @@ DOCKER_RUN_TEST := docker run -v $(PWD):/mnt:ro -DOCKER_DEB_TEST := sh -c 'apt-get update && \ - apt-get install -y --no-install-recommends procps && \ - dpkg -i /mnt/dist/*.deb && cd /mnt && ./test' -DOCKER_PYTHON_TEST := sh -c 'apt-get update && \ - apt-get install -y --no-install-recommends python-pip build-essential procps && \ - pip install /mnt && cd /mnt && ./test' +DOCKER_DEB_TEST := sh -euxc ' \ + apt-get update \ + && apt-get install -y --no-install-recommends procps \ + && dpkg -i /mnt/dist/*.deb \ + && cd /mnt \ + && ./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 build: @@ -44,17 +52,11 @@ install-hooks: itest: itest_lucid itest_precise itest_trusty itest_wheezy itest_jessie itest_stretch itest_lucid: _itest-ubuntu-lucid - @true itest_precise: _itest-ubuntu-precise - @true itest_trusty: _itest-ubuntu-trusty - @true itest_wheezy: _itest-debian-wheezy - @true itest_jessie: _itest-debian-jessie - @true itest_stretch: _itest-debian-stretch - @true _itest-%: _itest_deb-% _itest_python-% @true diff --git a/test b/test index dcea989..421b346 100755 --- a/test +++ b/test @@ -1,4 +1,4 @@ -#!/bin/sh -eu +#!/bin/bash -eux if [ "$#" -eq 1 ]; then dumb_init_bin=$(readlink -f "$1") else diff --git a/tests/lib/print-signals b/tests/lib/print-signals index 2390378..cc4e6ce 100755 --- a/tests/lib/print-signals +++ b/tests/lib/print-signals @@ -1,4 +1,4 @@ -#!/bin/sh -eu +#!/bin/bash -eux # Print received signals into a file, one per line file="$1" @@ -10,5 +10,6 @@ done echo 'ready' > "$file" -# loop forever +echo 'loop forever...' +set +x while :; do true; done diff --git a/tests/test-exit-status b/tests/test-exit-status index 305c7f5..597b412 100755 --- a/tests/test-exit-status +++ b/tests/test-exit-status @@ -1,4 +1,4 @@ -#!/bin/sh -u +#!/bin/bash -eux dumb_init="$1" # dumb-init should exit with the same exit status as the process it launches. diff --git a/tests/test-help-message b/tests/test-help-message index 7bd2f00..b1c45a1 100755 --- a/tests/test-help-message +++ b/tests/test-help-message @@ -1,4 +1,4 @@ -#!/bin/sh -u +#!/bin/bash -eux # dumb-init should say something useful when called with no arguments, and exit # nonzero. diff --git a/tests/test-proxies-signals b/tests/test-proxies-signals index 4ca321f..f5d44cd 100755 --- a/tests/test-proxies-signals +++ b/tests/test-proxies-signals @@ -1,4 +1,4 @@ -#!/bin/sh -eum +#!/bin/bash -euxm # dumb-init should proxy all possible signals to the child process. dumb_init="$1"