Skip to content

Commit

Permalink
tests: Run all tests again in run_test
Browse files Browse the repository at this point in the history
Previous commit broke the run_test script and only ended up running
the first test. This  patch fixes it and displays an success message
at the end.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
  • Loading branch information
stefanberger committed Apr 7, 2020
1 parent 80b0943 commit b5b48d4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions run_tests
Expand Up @@ -23,9 +23,10 @@ CFLAGS='-m64' ./configure --with-openssl --with-gnutls --prefix=/usr --libdir=/l
cp /usr/bin/swtpm /tmp/swtpm64 &&
make -j$(nproc) check ||
exit 1
[ -z "${WITHOUT_CUSE}" ] &&
if [ -z "${WITHOUT_CUSE}" ]; then
sudo make -j$(nproc) check ||
exit 1
fi

PKG_CONFIG_PATH=/usr/lib/pkgconfig \
CFLAGS='-m32' ./configure --with-openssl --with-gnutls --prefix=/usr --libdir=/lib ${WITHOUT_CUSE} && \
Expand All @@ -36,12 +37,17 @@ PKG_CONFIG_PATH=/usr/lib/pkgconfig \
make -j$(nproc) check &&
SWTPM_EXE=/tmp/swtpm64 make -j$(nproc) check ||
exit 1
[ -z "${WITHOUT_CUSE}" ] &&
if [ -z "${WITHOUT_CUSE}" ]; then
sudo SWTPM_EXE=/tmp/swtpm64 make -j$(nproc) check ||
exit 1
fi

CFLAGS='-m64' ./configure --with-openssl --with-gnutls --prefix=/usr --libdir=/lib64 ${WITHOUT_CUSE} && \
make clean && \
make -j$(nproc) &&
SWTPM_EXE=/tmp/swtpm32 make -j$(nproc) check &&
SWTPM_EXE=/tmp/swtpm32 make -j$(nproc) check ||
exit 1

echo "*** All tests succeeded ***"

exit 0

0 comments on commit b5b48d4

Please sign in to comment.