@@ -130,16 +130,25 @@ $(FASTOBO): | build
130130# args = input-directory, command-to-match-test-files
131131define clean_prior_results
132132 @TMP_FILES=$$(find $(1 ) | $(2 ) ) ; \
133+ echo "clean_prior_results started..." ; \
134+ echo " -> $$TMP_FILES" ; \
133135 if [ "$$TMP_FILES" ]; then \
136+ echo "Removing prior test result files..." ; \
134137 rm $$TMP_FILES ; \
135- fi ;
138+ else \
139+ echo "No prior test result files found." ; \
140+ fi ; \
141+ echo "clean_prior_results complete."
136142endef
137143
138144# concatenate test results from multiple files into one
139145# args = type ('TEST' will error if output), output-file, input-directory, command-to-match-test-files
140146define concat_files
141147 @TMP_FILES=$$(find $(3 ) | $(4 ) ) ; \
148+ echo "concat_files started..." ; \
149+ echo " -> $$TMP_FILES" ; \
142150 if [ "$$TMP_FILES" ]; then \
151+ echo "Concatenating test result files into $(2 ) ..." ; \
143152 awk 'BEGIN { OFS = FS = "," } ; { \
144153 if (FNR == 1) { \
145154 gsub(/^.*verify-|\.csv/, "", FILENAME) ; \
@@ -149,10 +158,15 @@ define concat_files
149158 else { print $$0 } \
150159 }' $$TMP_FILES > $(2 ) \
151160 && rm -f $$TMP_FILES ; \
152- if [ "$(1 ) " = "TEST" ] ; then exit 1 ; fi ; \
161+ if [ "$(1 ) " = "TEST" ] ; then \
162+ echo "Test results found! See $(2 ) for details." ; \
163+ exit 1 ; \
164+ fi ; \
153165 else \
166+ echo "No test result files found. Creating empty $(2 ) ..." ; \
154167 touch $(2 ) ; \
155- fi ;
168+ fi ; \
169+ echo "concat_files complete."
156170endef
157171
158172
0 commit comments