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
34 lines
372 B
Plaintext
34 lines
372 B
Plaintext
proc setup {} {
|
|
assert_bash_exec "export MANPATH=$::srcdirabs/fixtures/man"
|
|
save_env
|
|
}
|
|
|
|
|
|
proc teardown {} {
|
|
assert_env_unmodified {/OLDPWD/d}
|
|
}
|
|
|
|
|
|
setup
|
|
|
|
|
|
assert_complete "bar" "man b"
|
|
|
|
|
|
sync_after_int
|
|
|
|
|
|
assert_complete_dir oo.1 "man man1/f" $::srcdir/fixtures/man
|
|
|
|
|
|
sync_after_int
|
|
|
|
|
|
assert_complete "Bash::Completion" "man Bash::C"
|
|
|
|
|
|
sync_after_int
|
|
|
|
|
|
teardown
|