diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2022-05-22 23:24:31 +0100 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2022-05-22 23:24:31 +0100 |
commit | fe56281fd5dc6e1ec85812cdb55de2df223b8cd1 (patch) | |
tree | 225ad2ebe3815e261b32c3ab473f9b7cd84ba95d | |
parent | 6e5b46e3f363bd70923419a9a0f1764a09fdd98f (diff) | |
download | librufl-fe56281fd5dc6e1ec85812cdb55de2df223b8cd1.tar.gz librufl-fe56281fd5dc6e1ec85812cdb55de2df223b8cd1.tar.bz2 |
Don't build/run unit tests when building for RISC OS
UnixLib does not provide the POSIX extensions we're using here
(and we can't run these tests without an emulator when
cross-compiling, anyway). Take the easy option and disable them
(and neuter the test runner, too, as the tests it wants to run
don't exist).
-rw-r--r-- | test/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/Makefile b/test/Makefile index 21297e5..ec15598 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,13 +1,15 @@ # Tests -DIR_TEST_ITEMS := nofonts:nofonts.c;harness.c;mocks.c \ - oldfminit:oldfminit.c;harness.c;mocks.c \ - olducsinit:olducsinit.c;harness.c;mocks.c \ - ucsinit:ucsinit.c;harness.c;mocks.c - ifeq ($(HOST),arm-unknown-riscos) DIR_TEST_ITEMS := $(DIR_TEST_ITEMS) \ rufl_test:rufl_test.c \ rufl_chars:rufl_chars.c + # We do not want to run tests if building for RISC OS + TESTRUNNER := echo +else + DIR_TEST_ITEMS := nofonts:nofonts.c;harness.c;mocks.c \ + oldfminit:oldfminit.c;harness.c;mocks.c \ + olducsinit:olducsinit.c;harness.c;mocks.c \ + ucsinit:ucsinit.c;harness.c;mocks.c endif include $(NSBUILD)/Makefile.subdir |