]> git.proxmox.com Git - swtpm.git/blob - run_tests
test: add script to test 32bit and 64bit versions
[swtpm.git] / run_tests
1 #!/bin/bash
2
3 unset SWTPM
4
5 # FIXME:
6 # Due to some bug in glib2 for i686 we don't seem to be able to run a
7 # 32bit swtpm with cuse interface correctly. The g_cond_wait_until()
8 # doesn't behave as it does with 64bit. test_hashing2 gets stuck.
9
10
11 CFLAGS='-m64' ./configure --with-openssl --with-gnutls --prefix=/usr --libdir=/lib64 && \
12 make clean && \
13 make -j8 &&
14 sudo make -j8 install &&
15 cp /usr/bin/swtpm /tmp/swtpm64 &&
16 make -j8 check &&
17 sudo make -j8 check ||
18 exit 1
19
20 CFLAGS='-m32' ./configure --with-openssl --with-gnutls --prefix=/usr --libdir=/lib && \
21 make clean && \
22 make -j8 &&
23 sudo make -j8 install &&
24 cp /usr/bin/swtpm /tmp/swtpm32 &&
25 make -j8 check &&
26 SWTPM_EXE=/tmp/swtpm64 make -j8 check &&
27 sudo SWTPM_EXE=/tmp/swtpm64 make -j8 check ||
28 exit 1
29
30 CFLAGS='-m64' ./configure --with-openssl --with-gnutls --prefix=/usr --libdir=/lib64 && \
31 make clean && \
32 make -j8 &&
33 SWTPM_EXE=/tmp/swtpm32 make -j8 check &&
34 exit 1