diff options
Diffstat (limited to 'tests/filter-source.sh')
-rw-r--r-- | tests/filter-source.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/filter-source.sh b/tests/filter-source.sh new file mode 100644 index 000000000000..f7a096ed605d --- /dev/null +++ b/tests/filter-source.sh @@ -0,0 +1,20 @@ +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 +touch $TEST_ROOT/filterin/b +touch $TEST_ROOT/filterin/bak +touch $TEST_ROOT/filterin/bla.c.bak +ln -s xyzzy $TEST_ROOT/filterin/link + +nix-build ./filter-source.nix -o $TEST_ROOT/filterout + +set -x +test ! -e $TEST_ROOT/filterout/foo/bar +test -e $TEST_ROOT/filterout/xyzzy +test -e $TEST_ROOT/filterout/bak +test ! -e $TEST_ROOT/filterout/bla.c.bak +test ! -L $TEST_ROOT/filterout/link |