Skip to content

Commit

Permalink
tests: Dynamically determine make parallelism
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Nov 15, 2020
1 parent 97dbd2e commit 7644779
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions tests/run-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ apk add --no-cache autoconf automake libtool gcc musl-dev glib-dev eudev-dev lib
# run build as user
su -s /bin/sh - guest << EOG
set -ex
export MAKEFLAGS="-j$(nproc)"
cp -r /source /tmp
cd /tmp/source
./autogen.sh
Expand Down
3 changes: 2 additions & 1 deletion tests/run-centos
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ dnf -y --enablerepo=PowerTools install autoconf automake gcc glib2-devel gtk-doc
useradd guest
su -s /bin/sh - guest << EOG
set -ex
export MAKEFLAGS="-j$(nproc)"
cp -r /source /tmp
cd /tmp/source
./autogen.sh
make -j4
make
make check
EOG
Expand Down
3 changes: 2 additions & 1 deletion tests/run-fedora
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ dnf -y install autoconf automake gcc glib2-devel gtk-doc libgudev1-devel libtool
useradd guest
su -s /bin/sh - guest << EOG
set -eux
export MAKEFLAGS="-j$(nproc)"
cp -r /source /tmp
cd /tmp/source
./autogen.sh
make -j4
make
make check
make check-valgrind
EOG
Expand Down
8 changes: 5 additions & 3 deletions tests/run-ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ eatmydata apt-get install -y --no-install-recommends pkg-config dh-autoreconf au
useradd build
su -s /bin/sh - build << EOG
set -ex
export MAKEFLAGS="-j$(nproc)"
cp -r /source /tmp
cd /tmp/source
./autogen.sh --prefix=/usr
make -j$(nproc)
make
make check
make check-valgrind
make -j$(nproc) distcheck
make distcheck
EOG
# install and run check-installed
Expand All @@ -48,7 +50,7 @@ set -ex
cd /tmp/source
make distclean
./autogen.sh --prefix=/usr CPPFLAGS=-DNDEBUG
make -j$(nproc) check
make check
EOG
# copy release tarball to outside
Expand Down

0 comments on commit 7644779

Please sign in to comment.