Clean up testing infrastructure in the Makefile
author |
Steve Losh <steve@stevelosh.com> |
date |
Sat, 03 Nov 2018 15:30:06 -0400 |
parents |
969c97036477
|
children |
8cf220c55f13
|
branches/tags |
(none) |
files |
Makefile |
Changes
--- a/Makefile Mon Jan 15 15:46:20 2018 -0500
+++ b/Makefile Sat Nov 03 15:30:06 2018 -0400
@@ -1,5 +1,6 @@
.PHONY: vendor test test-sbcl test-ccl test-ecl test-abcl pubdocs
+heading_printer = $(shell which heading || echo 'true')
sourcefiles = $(shell ffind --full-path --literal .lisp)
docfiles = $(shell ls docs/*.markdown)
apidocs = $(shell ls docs/*reference*.markdown)
@@ -10,24 +11,23 @@
vendor: vendor/quickutils.lisp
-
# Testing ---------------------------------------------------------------------
test: test-sbcl test-ccl test-ecl test-abcl
test-sbcl:
- echo; figlet -kf computer 'SBCL' | sed -Ee 's/ +$$//' | tr -s '\n' | lolcat --freq=0.25; echo
- ros run -L sbcl --load test/run.lisp
+ $(heading_printer) computer 'SBCL'
+ sbcl --load test/run.lisp
test-ccl:
- echo; figlet -kf slant 'CCL' | sed -Ee 's/ +$$//' | tr -s '\n' | lolcat --freq=0.25; echo
- ros run -L ccl-bin --load test/run.lisp
+ $(heading_printer) slant 'CCL'
+ ccl --load test/run.lisp
test-ecl:
- echo; figlet -kf roman 'ECL' | sed -Ee 's/ +$$//' | tr -s '\n' | lolcat --freq=0.25; echo
- ros run -L ecl --load test/run.lisp
+ $(heading_printer) roman 'ECL'
+ ecl -load test/run.lisp
test-abcl:
- echo; figlet -kf broadway 'ABCL' | sed -Ee 's/ +$$//' | tr -s '\n' | lolcat --freq=0.25; echo
+ $(heading_printer) broadway 'ABCL'
abcl --load test/run.lisp
# Documentation ---------------------------------------------------------------