diff options
Diffstat (limited to 'tests/filter-source.sh')
-rw-r--r-- | tests/filter-source.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/filter-source.sh b/tests/filter-source.sh new file mode 100644 index 000000000000..4880969ba7ad --- /dev/null +++ b/tests/filter-source.sh @@ -0,0 +1,13 @@ +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 + +$NIX_BIN_DIR/nix-build ./filter-source.nix -o $TEST_ROOT/filterout + +set -x +test ! -e $TEST_ROOT/filterout/foo/bar +test -e $TEST_ROOT/filterout/xyzzy |