diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-01-15 11:59:28 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-01-15 11:59:28 +0100 |
commit | 3e110ae14101e60edc00803131165f11d4212db1 (patch) | |
tree | 1e4034149d542f823628a2de3bfd2a9aa62bda9b | |
parent | a4ffc44eac2a6c9611bdc77a69c6e61ba3f3cf3f (diff) |
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
-rw-r--r-- | tests/testsuite.at | 4 |
1 files 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 |