From 7349bd0176b8a8ced3a017bb5d0e9ebb30570722 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 29 Jan 2007 14:23:09 +0000 Subject: New primitives: * `sub' to subtract two numbers. * `stringLength' to get the length of a string. * `substring' to get a substring of a string. These should be enough to allow most string operations to be expressed. --- tests/filter-source.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/filter-source.sh') diff --git a/tests/filter-source.sh b/tests/filter-source.sh index 96ccaedca028..73f353024513 100644 --- a/tests/filter-source.sh +++ b/tests/filter-source.sh @@ -5,6 +5,9 @@ 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_BIN_DIR/nix-build ./filter-source.nix -o $TEST_ROOT/filterout @@ -12,4 +15,6 @@ $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 +test -e $TEST_ROOT/filterout/bak +test ! -e $TEST_ROOT/filterout/bla.c.bak test ! -L $TEST_ROOT/filterout/link -- cgit 1.4.1