Changeset 18988 for trunk/base/tests


Ignore:
Timestamp:
Aug 2, 2006, 12:48:29 AM (14 years ago)
Author:
pguyot (Paul Guyot)
Message:

-t now forbids renaming files/dirs and deleting directories outside the sandbox.

Location:
trunk/base/tests/trace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/tests/trace/Makefile

    r18781 r18988  
    1010        @PORTSRC=$(PORTSRC) $(bindir)/port clean > /dev/null
    1111        @touch delete-trace
     12        @touch rename-trace
     13        @mkdir rmdir-trace
    1214        @rm -f create-trace
    1315        @rm -rf mkdir-trace
     
    1517        @PORTSRC=$(PORTSRC) $(bindir)/port -t test > output 2>&1 || (cat output; exit 1)
    1618        @rm -f delete-trace
     19        @rm -f rename-trace
     20        @rm -f rename-new-trace
    1721        @rm -f create-trace
    1822        @rm -rf mkdir-trace
     23        @rm -rf rmdir-trace
    1924        @rm -f /tmp/hello-trace
    2025        @sed -e "s|${PWD}|PWD|g" < output > output.sed
  • trunk/base/tests/trace/Portfile

    r18781 r18988  
    1 # $Id: Portfile,v 1.5 2006/07/28 10:11:10 pguyot Exp $
     1# $Id: Portfile,v 1.6 2006/08/02 00:48:29 pguyot Exp $
    22
    33PortSystem 1.0
     
    2525        system "rm /tmp/hello-trace"
    2626        catch {system "mkdir mkdir-trace"}
     27        catch {system "rmdir rmdir-trace"}
     28        catch {system "mv rename-trace rename-new-trace"}
    2729        system "mkdir -p /usr/bin"
    2830}
  • trunk/base/tests/trace/master

    r18781 r18988  
    88Warning: A creation/deletion/modification was attempted outside sandbox: PWD/delete-trace
    99Warning: A creation/deletion/modification was attempted outside sandbox: PWD/mkdir-trace
     10Warning: A creation/deletion/modification was attempted outside sandbox: PWD/rename-trace
     11Warning: A creation/deletion/modification was attempted outside sandbox: PWD/rmdir-trace
Note: See TracChangeset for help on using the changeset viewer.