2006-12-13 01:05:01 +02:00
|
|
|
source common.sh
|
|
|
|
|
|
|
|
rm -rf $TEST_ROOT/filterin
|
|
|
|
mkdir $TEST_ROOT/filterin
|
|
|
|
mkdir $TEST_ROOT/filterin/foo
|
|
|
|
touch $TEST_ROOT/filterin/foo/bar
|
|
|
|
touch $TEST_ROOT/filterin/xyzzy
|
2007-01-29 16:23:09 +02:00
|
|
|
touch $TEST_ROOT/filterin/b
|
|
|
|
touch $TEST_ROOT/filterin/bak
|
|
|
|
touch $TEST_ROOT/filterin/bla.c.bak
|
2007-01-15 10:54:51 +02:00
|
|
|
ln -s xyzzy $TEST_ROOT/filterin/link
|
2006-12-13 01:05:01 +02:00
|
|
|
|
2011-10-11 00:32:34 +03:00
|
|
|
nix-build ./filter-source.nix -o $TEST_ROOT/filterout
|
2006-12-13 01:05:01 +02:00
|
|
|
|
|
|
|
test ! -e $TEST_ROOT/filterout/foo/bar
|
|
|
|
test -e $TEST_ROOT/filterout/xyzzy
|
2007-01-29 16:23:09 +02:00
|
|
|
test -e $TEST_ROOT/filterout/bak
|
|
|
|
test ! -e $TEST_ROOT/filterout/bla.c.bak
|
2007-01-15 10:54:51 +02:00
|
|
|
test ! -L $TEST_ROOT/filterout/link
|