source: trunk/base/tests/trace/Makefile @ 18721

Last change on this file since 18721 was 18721, checked in by pguyot (Paul Guyot), 14 years ago

Improvement in tests Makefile.
darwintrace (-t) now also blocks file deletions outside the sandbox.

  • Property svn:eol-style set to native
File size: 505 bytes
Line 
1include ../../Mk/dports.autoconf.mk
2
3.PHONY: test
4
5$(bindir)/port:
6        @echo "Please install DarwinPorts before running this test"
7        @exit 1
8       
9test:
10        @PORTSRC=$(PORTSRC) $(bindir)/port clean > /dev/null
11        @touch delete-trace
12        @PORTSRC=$(PORTSRC) $(bindir)/port -t test > output 2>&1 || (cat output; exit 1)
13        @rm -f delete-trace
14        @sed -e "s|${PWD}|PWD|g" < output > output.sed
15        @diff output.sed master 2>&1 | tee difference
16        @if [ -s difference ]; then \
17                exit 1; \
18        else \
19                rm -f difference output.sed; \
20        fi
Note: See TracBrowser for help on using the repository browser.