Files
macports-user-wms/trunk/base/tests/test/envvariables/Makefile
T
2012-09-11 19:07:30 +00:00

19 lines
453 B
Makefile

include ../../../Mk/macports.autoconf.mk
.PHONY: test
$(bindir)/port:
@echo "Please install MacPorts before running this test"
@exit 1
test:
@PORTSRC=$(PORTSRC) $(bindir)/port clean > /dev/null
@sh -c "export ENVA=A ; export ENVB=B; \
export PORTSRC=$(PORTSRC); $(bindir)/port test" > output 2>&1 || (cat output; exit 1)
@diff -u master output 2>&1 | tee difference
@if [ -s difference ]; then \
exit 1; \
else \
rm -f difference; \
fi