c86b336769
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
13 lines
321 B
Plaintext
13 lines
321 B
Plaintext
set test "Completion via _filedir_xspec() should be installed"
|
|
set cmd "complete -p acroread"
|
|
send "$cmd\r"
|
|
|
|
set expected "^$cmd\r\ncomplete -F _filedir_xspec acroread\r\n/@$"
|
|
expect {
|
|
-re $expected { pass "$test" }
|
|
-re /@ { fail "$test at prompt" }
|
|
}; # expect
|
|
|
|
|
|
source "$::srcdir/lib/completions/acroread.exp"
|