make: tweak emulator test rules

So `make --assume-old=all` can be used for both `testbase` & `testfront`.
This commit is contained in:
Benoit Pierre authored and Frans de Jonge committed 2024-08-15 09:37:49 +02:00
1 parent b5c4ccc5b3
commit 93c7ceccd9
1 file changed
+3 -2
+3 -2
View File
@@ -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