mirror of
https://github.com/koreader/koreader.git
synced 2025-12-24 12:14:05 +01:00
make: tweak emulator test rules
So `make --assume-old=all` can be used for both `testbase` & `testfront`.
This commit is contained in:
committed by
Frans de Jonge
parent
b5c4ccc5b3
commit
93c7ceccd9
@@ -37,12 +37,13 @@ $(INSTALL_DIR)/koreader/.busted: .busted
|
|||||||
$(INSTALL_DIR)/koreader/.luacov:
|
$(INSTALL_DIR)/koreader/.luacov:
|
||||||
$(SYMLINK) .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
|
testfront: all test-data $(INSTALL_DIR)/koreader/.busted
|
||||||
# sdr files may have unexpected impact on unit testing
|
# sdr files may have unexpected impact on unit testing
|
||||||
-rm -rf spec/unit/data/*.sdr
|
-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
|
test: testbase testfront
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user