From bb3b7e2b1571776e8c27111ea11f64a765e93569 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 3 Jul 2009 23:17:56 +0200 Subject: Added basic checklinks test --- test/checklinks | 20 ++++++++++++++++++++ test/main | 1 + 2 files changed, 21 insertions(+) create mode 100644 test/checklinks (limited to 'test') diff --git a/test/checklinks b/test/checklinks new file mode 100644 index 0000000..7b50c59 --- /dev/null +++ b/test/checklinks @@ -0,0 +1,20 @@ +## vim:ft=zsh + +cat > links <<- quux + foo ignored + # ignored + hard foo bar + soft link file + soft blub \$quux +quux + +alias checklinks='checklinks --parameter quux=flurbl' + +echo barbl > bar +echo flurbl > file +echo morp > flurbl + +checklinks +[[ $(cat foo) == $(cat bar) ]] +[[ $(cat link) == $(cat file) ]] +[[ $(cat blub) == $(cat flurbl) ]] diff --git a/test/main b/test/main index a72d5cc..75b3cd8 100755 --- a/test/main +++ b/test/main @@ -30,6 +30,7 @@ source $tests/setup echo "# bootstrapping PKG_DIR" cd $test_home export HOME=$test_home +source $tests/checklinks $test_proot/core/include/bootstrap $test_proot $test_pdir echo "# checking for success" -- cgit v1.2.3