aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-03-08 07:35:32 -0400
committerMike Frysinger <vapier@gentoo.org>2009-03-08 09:11:14 -0400
commitd4dee0ebe39627e9d3b90c312f770d7ba73a46f5 (patch)
treeb5613010981c5561febfd3b6dd07076b375a5364 /tests/script.at
parentlibsandbox: handle symlinks properly (diff)
downloadsandbox-d4dee0ebe39627e9d3b90c312f770d7ba73a46f5.tar.gz
sandbox-d4dee0ebe39627e9d3b90c312f770d7ba73a46f5.tar.bz2
sandbox-d4dee0ebe39627e9d3b90c312f770d7ba73a46f5.zip
tests: add symlink tests and unify code
Add test cases for symlink behavior and unify some of the test code to make adding more test cases even easier. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests/script.at')
-rw-r--r--tests/script.at10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/script.at b/tests/script.at
index 47e2798..3b40b29 100644
--- a/tests/script.at
+++ b/tests/script.at
@@ -1,12 +1,4 @@
-m4_defun([SB_CHECK],[dnl
-AT_SETUP([scripts/$1])
-AT_CHECK(
- [env SANDBOX_BEEP=0 sandbox.sh . $abs_top_srcdir/tests/script-$1.sh],
- [0],
- m4_ifval($2,$2,[ignore]),
- m4_ifval($3,$3,[ignore]))
-AT_CLEANUP])
-
+m4_defun([SB_SECTION],[script])
SB_CHECK(0)
SB_CHECK(1,, [touch: cannot touch `/a/b/c/d/e/f/g/no/real/path/so/dont/make/it': No such file or directory
])