Skip to content

Commit

Permalink
For tests, use standard check target
Browse files Browse the repository at this point in the history
  • Loading branch information
ppomes committed Apr 20, 2022
1 parent 309b001 commit d8dc63d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
run: make

- name: Run tests
run: make tests
run: make check
8 changes: 4 additions & 4 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ EXTRA_DIST = $(top_srcdir)/uthash/uthash.h \
$(top_srcdir)/debian/copyright \
$(top_srcdir)/debian/rules

TESTS = test1 null-example
TULIST = test1 null-example

tests: all
check: all
@rc=0; \
for ut in $(TESTS); do \
for ut in $(TULIST); do \
main/myanon -f tests/$${ut}.conf < tests/$${ut}.sql | diff tests/$${ut}_anon.sql - > /dev/null; \
if [ $$? -eq 0 ]; then \
echo "Test $${ut} OK" >&2; \
Expand All @@ -24,4 +24,4 @@ tests: all
done; \
exit $$rc

.PHONY: tests
.PHONY: check

0 comments on commit d8dc63d

Please sign in to comment.