summaryrefslogtreecommitdiff
path: root/test/lib/completions/pkg_deinstall.exp
diff options
context:
space:
mode:
authorFreddy Vulto <fvulto@gmail.com>2010-11-12 23:35:36 +0100
committerFreddy Vulto <fvulto@gmail.com>2010-11-12 23:35:36 +0100
commitc86b336769cdc025a63c13bf3448ce5d5019a563 (patch)
treecdf57784ed5c117415335d311edddc648899af65 /test/lib/completions/pkg_deinstall.exp
parent8f0055553bc15bb4aa31e6a32e0572949cffb6c3 (diff)
downloadbash-completion-c86b336769cdc025a63c13bf3448ce5d5019a563.tar.gz
(testuite) Fix tests to run with autotools' make distcheck
File locations are prefixed with `$::srcdir' so that `make distcheck' can execute the test suite using a relative path. The current working directory is removed from the test-suite-bash-prompt. Furthermore, no more dynamic creation of files in dir $::srcdir/fixtures since this dir is read-only during `make distcheck'. Instead create dynamic files in $TESTDIR/tmp The test suite uses these "directory" variables tcl bash description ------------ ----------- ------------------------------------ $::srcdir $SRCDIR where `fixtures' reside, relative $::srcdirabs $SRCDIRABS where `fixtures' reside, absolute $::TESTDIR $TESTDIR where `runtest' is invoked, absolute
Diffstat (limited to 'test/lib/completions/pkg_deinstall.exp')
-rw-r--r--test/lib/completions/pkg_deinstall.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/completions/pkg_deinstall.exp b/test/lib/completions/pkg_deinstall.exp
index e61d0ce3..c2b3ae0b 100644
--- a/test/lib/completions/pkg_deinstall.exp
+++ b/test/lib/completions/pkg_deinstall.exp
@@ -1,5 +1,5 @@
proc setup {} {
- assert_bash_exec {PKG_DBDIR=fixtures/pkgtools/db}
+ assert_bash_exec {PKG_DBDIR=$::srcdir/fixtures/pkgtools/db}
save_env
}
@@ -12,7 +12,7 @@ proc teardown {} {
setup
-set pkgs [exec bash -c "cd fixtures/pkgtools/db ; compgen -d"]
+set pkgs [exec bash -c "cd $::srcdir/fixtures/pkgtools/db ; compgen -d"]
assert_complete $pkgs "pkg_deinstall "