mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 02:36:16 +02:00
3f80060500
So all these years I was totally deluded about the meaning of "set -e". You might think that it causes statements like "false && true" or "! true" to fail, but it doesn't...
19 lines
538 B
Bash
19 lines
538 B
Bash
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
|
|
|
|
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
|