Skip to content

Instantly share code, notes, and snippets.

@QuLogic
Created October 9, 2016 00:08
Show Gist options
  • Select an option

  • Save QuLogic/b9de354f189ded6d65405ba241fc6c7a to your computer and use it in GitHub Desktop.

Select an option

Save QuLogic/b9de354f189ded6d65405ba241fc6c7a to your computer and use it in GitHub Desktop.
--- libmseed.orig/test/Makefile 2016-10-08 01:42:04.339418308 -0400
+++ libmseed/test/Makefile 2016-10-08 01:48:56.889028948 -0400
@@ -41,13 +41,10 @@ $(BINS) : % : %.c
# Run test scripts, create %.test.out files and compare to %.test.ref references
$(TESTOUTS) : %.test.out : %.test $(BINS) FORCE
@$(eval TESTCOUNT=$(shell echo $$(($(TESTCOUNT)+1))))
- @$(shell ./$< > $@ 2>&1)
- @diff $<.ref $@ >/dev/null; \
- if [ $$? -eq 0 ]; \
- then printf '$(PASSED) Test $<\n'; \
- else printf '$(FAILED) Test $<, Compare $<.ref $@\n'; \
- exit 0; \
- fi
+ @echo -n $<
+ @./$< > $@ 2>&1
+ @diff $<.ref $@
+ @printf ' $(PASSED)\n'
clean:
@rm -f $(BINS) $(TESTOUTS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment