Revision 777
Added by Aaron Marcuse-Kubitza almost 13 years ago
inputs/input.Makefile | ||
---|---|---|
154 | 154 |
@echo "Testing $(abspath $@)..." |
155 | 155 |
>$@ env test=1 verbose=1 n=$(test_n) $(1) |
156 | 156 |
@(set -x; $(DIFF) $(call testRef,$@) $@) 2>&1 || { e=$$?;\ |
157 |
$(if $(hasOwnRef),echo $(emph)"To accept new test output:"$(endEmph);\ |
|
158 |
echo "$(MAKE) $@-ok --directory=$(realpath .) --makefile=../input.Makefile";,\ |
|
159 |
echo $(emph)"Note: This test is compared to another test's output"$(endEmph);)\ |
|
157 |
$(if $(hasOwnRef),\ |
|
158 |
echo $(emph)"To accept new test output:"$(endEmph);\ |
|
159 |
echo "$(MAKE) $@-ok --directory=$(realpath .) --makefile=../input.Makefile";\ |
|
160 |
,\ |
|
161 |
echo $(emph)"Note: The preceding failed test is compared to another test's\ |
|
162 |
output"$(endEmph);\ |
|
163 |
echo $(emph)"When it fails, this always indicates a bug"$(endEmph);\ |
|
164 |
)\ |
|
160 | 165 |
exit $$e;} |
161 | 166 |
endef |
162 | 167 |
|
Also available in: Unified diff
input.Makefile: Print informative message if test failure is ignored