Skip to content

Commit

Permalink
'make test' less verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
mbevand committed Nov 11, 2016
1 parent 2463449 commit eba4c6b
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 @@ -27,14 +27,15 @@ _kernel.h : input.cl param.h
echo ')_mrb_";' >>$@

test : sa-solver
# When compiling with NR_ROWS_LOG != 20, the solutions it finds are
# different: testing/sols-100
if res=`./sa-solver --nonces 100 -v -v 2>&1 | grep Soln: | \
@echo Testing...
@if res=`./sa-solver --nonces 100 -v -v 2>&1 | grep Soln: | \
diff -u testing/sols-100.nr_rows_log_20 -`; then \
echo "Test: success"; \
else \
echo "$$res\nTest: FAILED" | cut -c 1-75 >&2; \
fi
# When compiling with NR_ROWS_LOG != 20, the solutions it finds are
# different: testing/sols-100

clean :
rm -f sa-solver _kernel.h *.o _temp_*
Expand Down

0 comments on commit eba4c6b

Please sign in to comment.