Skip to content

Commit

Permalink
test Makefile: quick fix: running 'make' works
Browse files Browse the repository at this point in the history
  • Loading branch information
tfaoliveira-sb committed Aug 7, 2024
1 parent 90a2b2c commit c0f7935
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
libjade-*
.vscode
result
src/
11 changes: 7 additions & 4 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ RANDSRC := $(COMMON)/notrandombytes.c
FILTER ?= $(SRC)/crypto_%
export FILTER

JAZZ ?= $(filter $(FILTER), $(filter-out $(addprefix $(SRC)/,$(EXCLUDE)), $(sort $(dir $(shell find $(SRC) -name '*.jazz')))))
JAZZ ?= $(filter $(FILTER), $(filter-out $(addprefix $(SRC)/,$(EXCLUDE)), $(sort $(dir $(shell test -d $(SRC) && find $(SRC) -name '*.jazz')))))
TESTDIR := $(subst $(SRC),$(BIN), $(JAZZ))

CHECKSUMSMALL := $(addsuffix checksumsmall, $(TESTDIR))
Expand Down Expand Up @@ -113,15 +113,18 @@ COMPILE_P = $(CC) $(CFLAGS) -o $@ $(DEFINE) $(DNAMESPACES) $(INCLUDES) crypto_
# --------------------------------------------------------------------
.PHONY: __phony default compile-and-run reporter-and-err

default: compile-and-run
default: compile-and-run reporter-and-err

compile-and-run:
compile-and-run: $(SRC)
$(MAKE) CI=1 all

reporter-and-err:
$(MAKE) CI=1 reporter
$(MAKE) CI=1 err

$(SRC):
$(shell ../scripts/extract-all.sh > /dev/null)

# --------------------------------------------------------------------
$(TESTS):

Expand Down Expand Up @@ -256,5 +259,5 @@ clean:
rm -fr $(BIN) $(LOGS)

distclean: clean clean-external
$(MAKE) -C $(SRC) distclean
rm -fr $(SRC)

0 comments on commit c0f7935

Please sign in to comment.