Skip to content
Snippets Groups Projects
Commit dec7ecd0 authored by Alex Lyon's avatar Alex Lyon
Browse files

tests: fix Makefile

parent 9325a29a
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ clean: ...@@ -29,7 +29,7 @@ clean:
run: $(BINS) run: $(BINS)
for bin in $(BINS); \ for bin in $(BINS); \
do do \
echo "# $${bin} #"; \ echo "# $${bin} #"; \
"./$${bin}" test args; \ "./$${bin}" test args; \
done done
...@@ -40,6 +40,7 @@ expected: $(BINS) ...@@ -40,6 +40,7 @@ expected: $(BINS)
for bin in $(BINS); \ for bin in $(BINS); \
do \ do \
echo "# $${bin} #"; \ echo "# $${bin} #"; \
mkdir -p expected/`dirname $${bin}`; \
"./$${bin}" test args > "expected/$${bin}.stdout" 2> "expected/$${bin}.stderr"; \ "./$${bin}" test args > "expected/$${bin}.stdout" 2> "expected/$${bin}.stderr"; \
done done
...@@ -49,6 +50,7 @@ verify: $(BINS) ...@@ -49,6 +50,7 @@ verify: $(BINS)
for bin in $(BINS); \ for bin in $(BINS); \
do \ do \
echo "# $${bin} #"; \ echo "# $${bin} #"; \
mkdir -p gen/`dirname $${bin}`; \
"./$${bin}" test args > "gen/$${bin}.stdout" 2> "gen/$${bin}.stderr"; \ "./$${bin}" test args > "gen/$${bin}.stdout" 2> "gen/$${bin}.stderr"; \
diff -u "gen/$${bin}.stdout" "expected/$${bin}.stdout"; \ diff -u "gen/$${bin}.stdout" "expected/$${bin}.stdout"; \
diff -u "gen/$${bin}.stderr" "expected/$${bin}.stderr"; \ diff -u "gen/$${bin}.stderr" "expected/$${bin}.stderr"; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment