diff options
Diffstat (limited to 'src/batchtools/build.mk')
-rw-r--r-- | src/batchtools/build.mk | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/batchtools/build.mk b/src/batchtools/build.mk new file mode 100644 index 0000000..8649476 --- /dev/null +++ b/src/batchtools/build.mk @@ -0,0 +1,19 @@ + +mvn-exe := $(shell which mvn 2>/dev/null) +batchtools-dir := $(path) + +ifeq "$(mvn-exe)" "" +$(call strict-error,"No maven found, unable to run batchtools tests") +else + +test: test-batchtools + +.PHONY: test-batchtools +test-batchtools: $(topdir)/profiles/chrome $(topdir)/profiles/firefox + $(call label,BATCHTEST)(cd $(batchtools-dir) \ + && xvfb-run -a $(mvn-cmd) test) + +clean:: + (cd $(batchtools-dir) && $(mvn-exe) clean) + +endif |