Skip to content

Commit

Permalink
tests: Don't compare tests that are not found in stable and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Thaodan committed Dec 14, 2020
1 parent c82c7ca commit 01a9d07
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,20 @@ tests_stable: latest_tag
tests: current
make -f tests.mk RESULT=$(RESULT_CURRENT)
check: tests_stable tests
$(DIFF) $(RESULT_STABLE) $(RESULT_CURRENT)
@find $(RESULT_STABLE) $(RESULT_CURRENT) -type f -printf %f\\n \
| uniq | while read -r test;\
do \
if [ -e $(RESULT_STABLE)/$$test ] && \
[ -e $(RESULT_CURRENT)/$$test ]; \
then\
echo $(DIFF) $(RESULT_STABLE)/$$test \
$(RESULT_CURRENT)/$$test;\
$(DIFF) $(RESULT_STABLE)/$$test \
$(RESULT_CURRENT)/$$test;\
else\
printf '%s not found in tests_stable and tests, skipping\n' $$test >&2;\
fi;\
done

clean:
make -f tests.mk RESULT=$(RESULT_CURRENT) clean
Expand Down

0 comments on commit 01a9d07

Please sign in to comment.