Skip to content

Commit 2d1cc02

Browse files
committed
DELETE - debugging errors only
1 parent a49c34b commit 2d1cc02

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
- uses: actions/checkout@v4
2020
- name: CI Test
2121
run: |
22-
make test
22+
make --debug test

Makefile

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,25 @@ $(FASTOBO): | build
130130
# args = input-directory, command-to-match-test-files
131131
define 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."
136142
endef
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
140146
define 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."
156170
endef
157171

158172

0 commit comments

Comments
 (0)