36 lines
645 B
Plaintext
36 lines
645 B
Plaintext
proc setup {} {
|
|
save_env
|
|
}
|
|
|
|
|
|
proc teardown {} {
|
|
assert_env_unmodified {
|
|
/OLDPWD=/d
|
|
/ANT_ARGS=/d
|
|
}
|
|
}
|
|
|
|
|
|
setup
|
|
|
|
|
|
assert_complete_any "ant -"
|
|
sync_after_int
|
|
|
|
|
|
assert_complete_dir "bashcomp clean init realclean" "ant " $::srcdir/fixtures/ant
|
|
sync_after_int
|
|
|
|
|
|
assert_complete_dir "named-build" "ant -f named-build.xml " $::srcdir/fixtures/ant
|
|
sync_after_int
|
|
|
|
|
|
assert_bash_exec {OLD_ANT_ARGS=$ANT_ARGS; ANT_ARGS="-f named-build.xml"}
|
|
assert_complete_dir "named-build" "ant " $::srcdir/fixtures/ant "ant with buildfile from ANT_ARGS"
|
|
sync_after_int
|
|
assert_bash_exec {ANT_ARGS=$OLD_ANT_ARGS; unset -v OLD_ANT_ARGS}
|
|
|
|
|
|
teardown
|