test_all target added.

This commit is contained in:
2018-08-11 23:01:44 +01:00
parent eaae132adf
commit a46f2942ab
2 changed files with 34 additions and 0 deletions

16
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,16 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "make test",
"type": "shell",
"command": "make test",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

View File

@@ -1,3 +1,21 @@
TEST_FILES = $(wildcard samples/*.zip)
.PHONY: test
test:
python gragir/__main__.py -v samples/algorithms_third_edition_in_c.zip algorithms_third_edition_in_c.epub
.PHONY: test_all
test_all: $(addprefix test_,$(TEST_FILES))
.PHONY: $(addprefix test_,$(TEST_FILES))
$(addprefix test_,$(TEST_FILES)): test_%:
@echo Testing $*
@python -v gragir/__main__.py $* test_out/$(*F).epub
#python gragir/__main__.py samples/algorithms_third_edition_in_c.zip algorithms_third_edition_in_c.epub
.PHONY: setup
setup:
git submodule update