2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00

make: tweak emulator test rules

So `make --assume-old=all` can be used for both `testbase` & `testfront`.
This commit is contained in:
Benoit Pierre 2024-08-11 20:58:26 +02:00 committed by Frans de Jonge
parent b5c4ccc5b3
commit 93c7ceccd9

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