summaryrefslogtreecommitdiff
path: root/test/lib/completions/explodepkg.exp
blob: e5ee35e48d957a39b4e2dbcabbc9025990d3c55f (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
25
proc setup {} {
    save_env
}


proc teardown {} {
    assert_env_unmodified {/OLDPWD=/d}
}


setup


set test "should complete *.t\[gbxl\]z files and dirs"
set dir $::srcdir/fixtures/slackware/home
set files [split [exec bash -c "cd $dir && find . -mindepth 1 -maxdepth 1 \
           \\( -type d -printf '%P/\\n' \\) -o \
           \\( -type f -name '*.t\[bglx\]z' -printf '%P\\n' \\)"] "\n"]
assert_complete_dir $files "explodepkg " $dir $test


sync_after_int


teardown