Skip to content

Commit

Permalink
Updated Makefile and an initial comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wendellpiez committed Jul 27, 2023
1 parent c180ef0 commit 9a3a746
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/document/METASCHEMA-DOCS-DIVS.xpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!-- Purpose: Emit XML and JSON-oriented metaschema documentation FILE FRAGMENTS (`div` elements) -->
<!-- Input: A valid and correct OSCAL Metaschema instance linked to its modules (also valid and correct) -->
<!-- Input: options 'path' and 'metaschema-id' must be set, to populate a/@href in crosslinks -->
<!-- Output: Writes outputs to designated subdirectory; exposes no ports -->
<!-- Output: exposes outputs on named ports -->

<!-- NIST/ITL Metaschema github.com/usnistgov/metaschema https://pages.nist.gov/metaschema/ -->

Expand Down
20 changes: 8 additions & 12 deletions src/document/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,15 @@ test: smoke-test ## Run all tests
smoke-test: smoke-test-hugo smoke-test-standalone ## Run all smoke-tests

.PHONY: smoke-test-hugo
smoke-test-hugo: ## Test verifies that 'write-hugo-metaschema-docs.xpl' runs without error
$(call EXEC_CALABASH,-i source=$(test_metaschema) output-path=file://$(output_folder)/smoke/hugo/ write-hugo-metaschema-docs.xpl)
smoke-test-hugo: ## Test verifies that 'METASCHEMA-DOCS-DIVS-write.xpl' runs without error
$(call EXEC_CALABASH,-iMETASCHEMA=$(test_metaschema) METASCHEMA-DOCS-DIVS-write.xpl output-path=file://$(output_folder)/smoke/hugo/ metaschema-id=models_metaschema)

.PHONY: smoke-test-standalone
smoke-test-standalone: ## Test verifies that make-metaschema-standalone-docs.xpl runs without error
$(call EXEC_CALABASH,-i source=$(test_metaschema) \
output-path=file://$(output_folder)/smoke/standalone/ \
-o INT_0_echo-input=/dev/null \
-o INT_1_composed=/dev/null \
-o INT_2_abstract-model-map=/dev/null \
-o INT_3_unfolded-instance-map=/dev/null \
-o INT_4_marked-instance-map=/dev/null \
make-metaschema-standalone-docs.xpl)
.PHONY: smoke-test-testsite
smoke-test-standalone: ## Test verifies that METASCHEMA-DOCS-TESTSITE-write.xpl runs without error
$(call EXEC_CALABASH,-iMETASCHEMA=$(test_metaschema) \
METASCHEMA-DOCS-TESTSITE-write.xpl \
output-path=file://$(output_folder)/smoke/testsite/ \
metaschema-id=models_metaschema)

clean: ## Remove test output
rm -fr $(smoke-test_output)

0 comments on commit 9a3a746

Please sign in to comment.