From 2bf3446f7aacbb613aab651ea54d61638e8a53ab Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 15 Jan 2014 11:14:52 +0100 Subject: [PATCH] misc: Allow to cross-execute the tests 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/testsuite.at b/tests/testsuite.at index 27f66b9f..2a21a936 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -6,26 +6,26 @@ AT_SETUP([rlcmac]) AT_KEYWORDS([rlcmac]) cat $abs_srcdir/rlcmac/RLCMACTest.ok > expout cat $abs_srcdir/rlcmac/RLCMACTest.err > experr -AT_CHECK([$abs_top_builddir/tests/rlcmac/RLCMACTest], [0], [expout], [experr]) +AT_CHECK([$OSMO_QEMU $abs_top_builddir/tests/rlcmac/RLCMACTest], [0], [expout], [experr]) AT_CLEANUP AT_SETUP([ts_alloc]) AT_KEYWORDS([ts_alloc]) cat $abs_srcdir/alloc/AllocTest.ok > expout cat $abs_srcdir/alloc/AllocTest.err > experr -AT_CHECK([$abs_top_builddir/tests/alloc/AllocTest], [0], [expout], [experr]) +AT_CHECK([$OSMO_QEMU $abs_top_builddir/tests/alloc/AllocTest], [0], [expout], [experr]) AT_CLEANUP AT_SETUP([tbf]) AT_KEYWORDS([tbf]) cat $abs_srcdir/tbf/TbfTest.ok > expout cat $abs_srcdir/tbf/TbfTest.err > experr -AT_CHECK([$abs_top_builddir/tests/tbf/TbfTest], [0], [expout], [experr]) +AT_CHECK([$OSMO_QEMU $abs_top_builddir/tests/tbf/TbfTest], [0], [expout], [experr]) AT_CLEANUP AT_SETUP([types]) AT_KEYWORDS([types]) cat $abs_srcdir/types/TypesTest.ok > expout cat $abs_srcdir/types/TypesTest.err > experr -AT_CHECK([$abs_top_builddir/tests/types/TypesTest], [0], [expout], [experr]) +AT_CHECK([$OSMO_QEMU $abs_top_builddir/tests/types/TypesTest], [0], [expout], [experr]) AT_CLEANUP