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

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

tests/test/universal{,-2}:
Use port info --variants to check for the variant instead of the whole info
output. Should be more error prone if we make further changes.

File size: 426 bytes
RevLine 
[26177]1include ../../../Mk/macports.autoconf.mk
[23968]2
3.PHONY: test
4
5$(bindir)/port:
6        @echo "Please install MacPorts before running this test"
7        @exit 1
[26177]8
[23968]9test:
10        @PORTSRC=$(PORTSRC) $(bindir)/port clean > /dev/null
[37271]11        @sh -c "export PORTSRC=$(PORTSRC); $(bindir)/port info --variants" > output 2>&1 || (cat output; exit 1)
[23968]12        @diff output master 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.