Skip to content

Commit dd53911

Browse files
committed
Run tests on qemu
1 parent a342f04 commit dd53911

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ install:
5656
- make check TESTS=
5757
script:
5858
- if [[ "$CROSS_COMPILE" == 1 ]]; then
59+
cd test ;
5960
if [[ "$ARM_ARCH_DIR" == "aarch64-linux-gnu" ]]; then
60-
qemu-aarch64 -L /usr/aarch64-linux-gnu/ make check ;
61+
qemu-aarch64 -L /usr/aarch64-linux-gnu/ ./run_tests ;
6162
else
62-
qemu-arm -L /usr/arm-linux-gnueabi/ make check ;
63+
qemu-arm -L /usr/arm-linux-gnueabi/ ./run_tests ;
6364
fi
6465
else
6566
make check ;

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ AC_SUBST(LDFLAGS)
308308
AC_SUBST(EXT_LIB_PATH)
309309
AC_SUBST(EXT_LIBS)
310310

311+
AC_CONFIG_LINKS([test/run_tests:test/run_tests])
312+
311313
AC_OUTPUT(
312314
libhttpserver.pc
313315
Makefile

test/run_tests

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
./basic
4+
./http_utils
5+
./threaded

0 commit comments

Comments
 (0)