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

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

darwintrace now reports creation of directories outside the sandbox.
It works with rb-rubygems. Cf:
http://bugzilla.opendarwin.org/show_bug.cgi?id=5491

  • Property svn:eol-style set to native
File size: 639 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        @rm -f create-trace
13        @rm -rf mkdir-trace
14        @rm -f /tmp/hello-trace
15        @PORTSRC=$(PORTSRC) $(bindir)/port -t test > output 2>&1 || (cat output; exit 1)
16        @rm -f delete-trace
17        @rm -f create-trace
18        @rm -rf mkdir-trace
19        @rm -f /tmp/hello-trace
20        @sed -e "s|${PWD}|PWD|g" < output > output.sed
21        @diff output.sed master 2>&1 | tee difference
22        @if [ -s difference ]; then \
23                exit 1; \
24        else \
25                rm -f difference output.sed; \
26        fi
Note: See TracBrowser for help on using the repository browser.