]>
git.proxmox.com Git - swtpm.git/blob - run_tests
3 if [ $
(uname
-p) != "x86_64" ]; then
4 echo "This test only runs on x86_64 host"
10 # Comment the following to compile and test with CUSE interface
11 WITHOUT_CUSE
="--without-cuse"
14 # Due to some bug in glib2 for i686 we don't seem to be able to run a
15 # 32bit swtpm with cuse interface correctly. The g_cond_wait_until()
16 # doesn't behave as it does with 64bit. test_hashing2 gets stuck.
19 CFLAGS
='-m64' .
/configure
--with-openssl --with-gnutls --prefix=/usr
--libdir=/lib64
${WITHOUT_CUSE} && \
22 sudo
make -j$
(nproc
) install &&
23 cp /usr
/bin
/swtpm
/tmp
/swtpm64
&&
24 make -j$
(nproc
) check ||
26 if [ -z "${WITHOUT_CUSE}" ]; then
27 sudo
make -j$
(nproc
) check ||
31 PKG_CONFIG_PATH
=/usr
/lib
/pkgconfig \
32 CFLAGS
='-m32' .
/configure
--with-openssl --with-gnutls --prefix=/usr
--libdir=/lib
${WITHOUT_CUSE} && \
35 sudo
make -j$
(nproc
) install &&
36 cp /usr
/bin
/swtpm
/tmp
/swtpm32
&&
37 make -j$
(nproc
) check
&&
38 SWTPM_EXE
=/tmp
/swtpm64
make -j$
(nproc
) check ||
40 if [ -z "${WITHOUT_CUSE}" ]; then
41 sudo SWTPM_EXE
=/tmp
/swtpm64
make -j$
(nproc
) check ||
45 CFLAGS
='-m64' .
/configure
--with-openssl --with-gnutls --prefix=/usr
--libdir=/lib64
${WITHOUT_CUSE} && \
48 SWTPM_EXE
=/tmp
/swtpm32
make -j$
(nproc
) check ||
51 echo "*** All tests succeeded ***"