From 93c7ceccd9f3bab110dc230cfb07ba5ae16ced3c Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Sun, 11 Aug 2024 20:58:26 +0200 Subject: [PATCH] make: tweak emulator `test` rules So `make --assume-old=all` can be used for both `testbase` & `testfront`. --- make/emulator.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/make/emulator.mk b/make/emulator.mk index d640c37d6..2c14e27d2 100644 --- a/make/emulator.mk +++ b/make/emulator.mk @@ -37,12 +37,13 @@ $(INSTALL_DIR)/koreader/.busted: .busted $(INSTALL_DIR)/koreader/.luacov: $(SYMLINK) .luacov $@ -testbase: base-test +testbase: all test-data $(OUTPUT_DIR)/.busted $(OUTPUT_DIR)/spec/base + cd $(OUTPUT_DIR) && $(BUSTED_LUAJIT) $(or $(BUSTED_OVERRIDES),./spec/base/unit) testfront: all test-data $(INSTALL_DIR)/koreader/.busted # sdr files may have unexpected impact on unit testing -rm -rf spec/unit/data/*.sdr - cd $(INSTALL_DIR)/koreader && $(BUSTED_LUAJIT) $(BUSTED_OVERRIDES) $(BUSTED_SPEC_FILE) + cd $(INSTALL_DIR)/koreader && $(BUSTED_LUAJIT) $(BUSTED_OVERRIDES) test: testbase testfront