Help language development. Donate to The Perl Foundation

Geo::Ellipsoid cpan:TBROWDER last updated on 2018-01-23

Makefile
PERL6     := perl6
LIBPATH   := ./lib

# set below to 0 for no effect, 1 for debugging messages
DEBUG := GEO_ELLIPSOID_DEBUG=0

# set below to 0 for no effect, 1 to die on first failure
EARLYFAIL := PERL6_TEST_DIE_ON_FAIL=0

.PHONY: test-funcs test test-orig bad good

default: test

TESTS     := t/*.t
BADTESTS  := bad-tests/*.t
GOODTESTS := good-tests/*.t

test-funcs:
	$(DEBUG) $(EARLYFAIL) PERL6LIB=$(LIBPATH) prove -v --exec=$(PERL6) t/99-exported-funcs.t


# the original test suite (i.e., 'make test')
test:
	for f in $(TESTS) ; do \
	    $(DEBUG) $(EARLYFAIL) PERL6LIB=$(LIBPATH) prove -v --exec=$(PERL6) $$f ; \
	done

bad:
	for f in $(BADTESTS) ; do \
	    $(DEBUG) $(EARLYFAIL) PERL6LIB=$(LIBPATH) prove -v --exec=$(PERL6) $$f ; \
	done

good:
	for f in $(GOODTESTS) ; do \
	    $(EARLYFAIL) PERL6LIB=$(LIBPATH) prove -v --exec=$(PERL6) $$f ; \
	done

test-orig:
	$(PERL6) -Ilib test/test-ellipsoid.p6 -t > test/res.txt
	diff test/res.txt test/results.txt > test/diff.log