Skip to content

Commit 6059f00

Browse files
committed
Adds 32-bit (i386) compilation of integration tests
This was added to catch errors/warning when compiled with '-m32' compiler option. This also catches arch dependent differences in the tests and yukti.h.
1 parent 580b223 commit 6059f00

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

tests/run_all_tests.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,21 @@
33
TESTS_DIR=`dirname $0`
44

55
#######################################################################
6-
# Compiling and running tests with GCC
6+
# Compiling and running tests with GCC (Native)
77
#######################################################################
88
export CC=gcc
99
export CFLAGS="-Wall -Wextra -std=c99 -DYT__TESTING"
1010

11-
echo "Test 1/2: Running tests with C Compiler ($CC)"
11+
echo "Test 1/2: Running tests with C Compiler ($CC) (Native)"
12+
bash $TESTS_DIR/test.sh || exit
13+
14+
#######################################################################
15+
# Compiling and running tests with GCC (m32)
16+
#######################################################################
17+
export CC=gcc
18+
export CFLAGS="-Wall -Wextra -std=c99 -m32 -DYT__TESTING"
19+
20+
echo "Test 2/3: Running tests with C Compiler ($CC) (32-bits)"
1221
bash $TESTS_DIR/test.sh || exit
1322

1423
#######################################################################
@@ -17,7 +26,7 @@ bash $TESTS_DIR/test.sh || exit
1726
export CC=g++
1827
export CFLAGS="-Wall -Wextra -DYT__TESTING"
1928

20-
echo "Test 2/2: Running tests with C++ Compiler ($CC)"
29+
echo "Test 3/3: Running tests with C++ Compiler ($CC)"
2130
bash $TESTS_DIR/test.sh || exit
2231

2332
echo "[All tests passed]"

0 commit comments

Comments
 (0)