From 3e110ae14101e60edc00803131165f11d4212db1 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 15 Jan 2014 11:59:28 +0100 Subject: misc: Allow to cross-execute the testsuite using qemu When cross-compiling osmo-bts/osmo-pcu one can not easily execute the testsuite. By adding the OSMO_QEMU variable in front of the normal execution we can execute the tests. This should work for native and cross builds. $ OSMO_QEMU="qemu-arm -L /opt/poky/1.1.2/sysroots/armv5te-poky-linux-gnueabi/" make check --- tests/testsuite.at | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testsuite.at b/tests/testsuite.at index 357bfcbc..12974218 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -4,11 +4,11 @@ AT_BANNER([Regression tests.]) AT_SETUP([paging]) AT_KEYWORDS([paging]) cat $abs_srcdir/paging/paging_test.ok > expout -AT_CHECK([$abs_top_builddir/tests/paging/paging_test], [], [expout], [ignore]) +AT_CHECK([$OSMO_QEMU $abs_top_builddir/tests/paging/paging_test], [], [expout], [ignore]) AT_CLEANUP AT_SETUP([cipher]) AT_KEYWORDS([cipher]) cat $abs_srcdir/cipher/cipher_test.ok > expout -AT_CHECK([$abs_top_builddir/tests/cipher/cipher_test], [], [expout], [ignore]) +AT_CHECK([$OSMO_QEMU $abs_top_builddir/tests/cipher/cipher_test], [], [expout], [ignore]) AT_CLEANUP -- cgit v1.2.3