summaryrefslogtreecommitdiff
path: root/test/lib/completions/configure.exp
blob: 1be8e16784f582b7abeb0f88328e49e4b48c8d0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
proc setup {} {
    # Make sure our own ./configure is in PATH
    assert_bash_exec {OLDPATH="$PATH"; PATH="$SRCDIR/..:$PATH"}
    save_env
}


proc teardown {} {
    assert_env_unmodified
    assert_bash_exec {PATH="$OLDPATH"; unset -v OLDPATH}
}


setup


assert_complete_any "configure --"
sync_after_int

assert_complete_any "configure --prefix "
sync_after_int


teardown