Skip to content

Commit

Permalink
Added generated .out files to clean. Moved variables up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariaKt committed Sep 11, 2024
1 parent 3c8932e commit c7ebf30
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ LENDINGPOOL_PARAMS = $(EXAMPLES_DIR)/lending/LendingPool.sol 2>&1 1>$(OUTPUT_DIR
AAVE_PARAMS = $(EXAMPLES_DIR)/lending/AaveLendingPool.sol 2>&1 1>$(OUTPUT_DIR)/aave.ast
REGRESSION_TESTS = $(patsubst %.sol, %.out, $(wildcard $(TEST_DIR)/regression/*.sol))

TRANSACTIONS = $(shell find $(TRANSACTIONS_DIR) -name "*.txn")
EXAMPLE_TESTS = $(patsubst %.txn, %.out, $(TRANSACTIONS))

build: $(SEMANTICS_DIR)/$(SEMANTICS_FILE)
kompile $(SEMANTICS_DIR)/$(SEMANTICS_FILE) --main-module $(MAIN_MODULE) --gen-glr-bison-parser -O2

clean:
rm -Rf $(SEMANTICS_FILE_NAME)-kompiled
rm -Rf $(OUTPUT_DIR)
rm -Rf $(TEST_DIR)/regression/*.out
rm -Rf $(EXAMPLE_TESTS)

test: test-swaps test-tokens test-staking test-lending test-regression test-examples

Expand Down Expand Up @@ -75,9 +79,6 @@ $(REGRESSION_TESTS): %.out: %.sol %.txn %.ref $(SEMANTICS_FILE_NAME)-kompiled/ti
ulimit -s 65536 && bin/krun-sol $*.sol $*.txn > $*.out
diff -U3 -w $*.ref $*.out

TRANSACTIONS = $(shell find $(TRANSACTIONS_DIR) -name "*.txn")
EXAMPLE_TESTS = $(patsubst %.txn, %.out, $(TRANSACTIONS))

test-examples: ${EXAMPLE_TESTS}

.SECONDEXPANSION:
Expand Down

0 comments on commit c7ebf30

Please sign in to comment.