Skip to content

Commit

Permalink
fix: Make sure tests compile grammar first
Browse files Browse the repository at this point in the history
  • Loading branch information
reiniscirpons committed May 26, 2024
1 parent ae89ad9 commit 453069c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ $(EXAMPLES_DIR)/temp_corpus_pkg_$(CORPUS_VERSION):
mkdir -p $(EXAMPLES_DIR)/temp_corpus_pkg_$(CORPUS_VERSION)
tar -xzf $(EXAMPLES_DIR)/corpus_pkg_$(CORPUS_VERSION).tar.gz -C $(EXAMPLES_DIR)/temp_corpus_pkg_$(CORPUS_VERSION)

test_quick:
test_quick: compile
tree-sitter test

test_gap: $(EXAMPLES_DIR)/temp_corpus_gap_$(CORPUS_VERSION)
test_gap: $(EXAMPLES_DIR)/temp_corpus_gap_$(CORPUS_VERSION) compile
tree-sitter parse '$(EXAMPLES_DIR)/temp_corpus_gap_$(CORPUS_VERSION)/*.g*' --quiet --stat

test_pkg: $(EXAMPLES_DIR)/temp_corpus_pkg_$(CORPUS_VERSION)
test_pkg: $(EXAMPLES_DIR)/temp_corpus_pkg_$(CORPUS_VERSION) compile
tree-sitter parse '$(EXAMPLES_DIR)/temp_corpus_pkg_$(CORPUS_VERSION)/*.g*' --quiet --stat

test_all: test_quick $(EXAMPLES_DIR)/temp_corpus_gap_$(CORPUS_VERSION) $(EXAMPLES_DIR)/temp_corpus_pkg_$(CORPUS_VERSION)
Expand Down

0 comments on commit 453069c

Please sign in to comment.