-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update testing for latest adacore/gpr tests.
- Loading branch information
Showing
4 changed files
with
38 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
MAKEFILE_DIR = $(dir $(lastword $(MAKEFILE_LIST))) | ||
|
||
.PHONY: default examples testsuite build | ||
TEST_DIRS = | ||
TEST_DIRS += examples | ||
TEST_DIRS += gpr_compliance_test_database | ||
TEST_DIRS += testsuite | ||
|
||
GPR_BASE_DIR ?= $(MAKEFILE_DIR)../../../gpr | ||
.PHONY: default $(TEST_DIRS) | ||
|
||
GPR_DIR_NAME = gpr | ||
GPR_BASE_DIR ?= $(MAKEFILE_DIR)../../../$(GPR_DIR_NAME) | ||
GPR_SKIP_FILE = $(MAKEFILE_DIR)gpr_skip.txt | ||
|
||
default: examples testsuite | ||
default: $(TEST_DIRS) | ||
|
||
examples: TEST_DIR=$(GPR_BASE_DIR)/examples | ||
testsuite: TEST_DIR=$(GPR_BASE_DIR)/testsuite | ||
examples testsuite: | ||
@sed 's;^;! -path */;' $(GPR_SKIP_FILE) | xargs find $(TEST_DIR) -iname '*.gpr' | sort | xargs npx tree-sitter parse --quiet --stat | ||
$(TEST_DIRS): | ||
@echo Testing against $(GPR_DIR_NAME)/$@... | ||
@sed 's;^;! -path */;' $(GPR_SKIP_FILE) | xargs find $(GPR_BASE_DIR)/$@ -iname '*.gpr' | sort | xargs npx tree-sitter parse --quiet --stat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters