source: trunk/base/tests/test/universal-2/Makefile @ 71041

Last change on this file since 71041 was 71041, checked in by raimue@…, 10 years ago

tests: Use unified diff format everywhere; generate diff from master to output

File size: 429 bytes
Line 
1include ../../../Mk/macports.autoconf.mk
2
3.PHONY: test
4
5$(bindir)/port:
6        @echo "Please install MacPorts before running this test"
7        @exit 1
8
9test:
10        @PORTSRC=$(PORTSRC) $(bindir)/port clean > /dev/null
11        @sh -c "export PORTSRC=$(PORTSRC); $(bindir)/port info --variants" > output 2>&1 || (cat output; exit 1)
12        @diff -u master output 2>&1 | tee difference
13        @if [ -s difference ]; then \
14                exit 1; \
15        else \
16                rm -f difference; \
17        fi
Note: See TracBrowser for help on using the repository browser.