Changeset 18721 for trunk/base/tests


Ignore:
Timestamp:
Jul 25, 2006, 4:01:34 AM (14 years ago)
Author:
pguyot (Paul Guyot)
Message:

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

Location:
trunk/base/tests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/tests/Makefile

    r18709 r18721  
    33SUBDIR=checksums-1 envvariables site-tags trace xcodeversion
    44
    5 .PHONY: test
     5.PHONY: test clean
    66
    77all:
     
    2323        @exit 1
    2424       
    25 test: /tmp/darwinports-tests/opt/local/etc/ports/sources.conf
     25test: clean /tmp/darwinports-tests/opt/local/etc/ports/sources.conf
    2626        @for subdir in $(SUBDIR); do\
    2727                echo ===\> test ${DIRPRFX}$$subdir; \
     
    3939                                exit 1; \
    4040                        else \
    41                                 rm -f difference; \
     41                                rm -f difference output.sed; \
    4242                        fi) \
    4343                fi || exit 1; \
  • trunk/base/tests/trace/Makefile

    r18709 r18721  
    99test:
    1010        @PORTSRC=$(PORTSRC) $(bindir)/port clean > /dev/null
     11        @touch delete-trace
    1112        @PORTSRC=$(PORTSRC) $(bindir)/port -t test > output 2>&1 || (cat output; exit 1)
     13        @rm -f delete-trace
    1214        @sed -e "s|${PWD}|PWD|g" < output > output.sed
    1315        @diff output.sed master 2>&1 | tee difference
     
    1517                exit 1; \
    1618        else \
    17                 rm -f difference; \
     19                rm -f difference output.sed; \
    1820        fi
  • trunk/base/tests/trace/Portfile

    r18709 r18721  
    1 # $Id: Portfile,v 1.2 2006/07/24 05:55:44 pguyot Exp $
     1# $Id: Portfile,v 1.3 2006/07/25 04:01:34 pguyot Exp $
    22
    33PortSystem 1.0
     
    2020
    2121test { 
    22         catch {system "rm -f hello-trace && touch hello-trace && rm hello-trace"}
     22        catch {system "rm -f create-trace && touch create-trace && rm create-trace"}
     23        catch {system "rm delete-trace"}
    2324        catch {system "rm -f /tmp/hello-trace && /tmp/hello-trace && rm /tmp/hello-trace"}
    2425}
  • trunk/base/tests/trace/master

    r18709 r18721  
    55--->  Building trace with target all
    66--->  Testing trace
    7 Warning: A file creation/writing was attempted outside sandbox: PWD/hello-trace
     7Warning: A file creation/deletion/modification was attempted outside sandbox: PWD/create-trace
     8Warning: A file creation/deletion/modification was attempted outside sandbox: PWD/delete-trace
Note: See TracChangeset for help on using the changeset viewer.