summaryrefslogtreecommitdiff
path: root/test/lib/completions/rpm.exp
blob: 3ed154a91fbdd051a74147d26a4c6a4b7c9e3d41 (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
26
27
28
29
proc setup {} {
    save_env
}; # setup()


proc teardown {} {
    assert_env_unmodified
}; # teardown()


setup


assert_complete_any "rpm "


sync_after_int


    # Build list of installed packages
if {[assert_exec {rpm -qa --qf=%\{NAME\}\n | sort -u} packages]} {
    assert_complete $packages "rpm -q "
}; # if


sync_after_int


teardown