Skip to content

Commit

Permalink
Addressing #117
Browse files Browse the repository at this point in the history
  • Loading branch information
wendellpiez committed Jun 7, 2024
1 parent 5a7bf68 commit 5e36e76
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/converter-gen/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,29 @@ include ../testing/make_common.mk

# XML Calabash prefers absolute paths
test_metaschema:=../testing/models_metaschema.xml
output_folder:=test_output
module_path:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
output_folder:=$(module_path)/test_output

xspec_script=$(realpath $(module_path)/../../support/xslt3-functions/xspec-dev/mvn-saxon-xspec-batch-quiet.sh)
xspec_ci_script=$(realpath $(module_path)/../../support/xslt3-functions/xspec-dev/mvn-saxon-xspec-batch.sh)
folder=.

.PHONY: test
test: smoke-test ## Run all tests

.PHONY: smoke-test
smoke-test: ## Run all smoke-tests
smoke-test: ## Apply generators to ../testing/models_metaschema.xml metaschema
./mvn-converters-xpl.sh "$(test_metaschema)" $(output_folder) models_metaschema

.PHONY: spec-test
spec-test: ## Run all XSpec in testing folder
LOGFILE="$(output_folder)/converter-gen-xspec.log" $(xspec_ci_script) \
"folder=$(module_path)/testing/" \
"report-to=$(output_folder)/converter-gen_report.html" \
"junit-to=$(output_folder)/converter-gen_junit-report.xml" \
"stop-on-error=yes" \
"recurse=yes"

.PHONY: clean
clean: ## Remove test output
rm -fr $(output_folder)/*

0 comments on commit 5e36e76

Please sign in to comment.