~ubuntu-branches/ubuntu/trusty/bash-completion/trusty-updates

« back to all changes in this revision

Viewing changes to test/lib/completions/make.exp

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2012-07-23 16:07:59 UTC
  • mfrom: (5.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120723160759-lt9vn33dl3nak9l0
Tags: 1:2.0-1ubuntu1
* debian/maintscript, debian/postinst:
  - clean etc conffiles on upgrade since completion files are in /usr
    with the new version
* Resync with Debian, remaining diff
  * debian/patches/disable-avahi-browse.diff: Disable avahi-browse since
    it scales poorly in the current form: refresh patch
  * patches/101_bash_completion.oga_ogv.patch: Increase support for other
    OGG formats including .oga, .ogx, etc. (LP: #311525)
  * patches/103_colormake.patch: Add support for colormake to the make
    completion rules. (LP: #743208)
* Dropped changes:
  * Add conffile upgrade handling for a run of conffiles that were dropped
    since lucid: lucid upgrades are only supported to precise.
* Those fixes are in the new version
  * debian/patches/apt-get-changelog.patch:
  * Drop whitelists if they fail to produce any results:
  * patches/apt-get-download.patch: Add download as an apt-get
    sub-command (LP: #720541)
  * patches/102_manpager.patch: Override MANPAGER when generating perldoc
    completions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
 
6
6
proc teardown {} {
7
 
    assert_env_unmodified
 
7
    assert_env_unmodified {/OLDPWD=/d}
8
8
}
9
9
 
10
10
 
11
11
setup
12
12
 
13
13
 
14
 
assert_complete_any "make "
 
14
set test "-f Ma<TAB> should complete \"Makefile\""
 
15
set dir $::srcdir/fixtures/make
 
16
assert_complete_dir "Makefile" "make -f Ma" $dir $test
 
17
 
 
18
 
 
19
sync_after_int
 
20
 
 
21
 
 
22
set test "\"make <TAB>\" should complete targets"
 
23
set dir $::srcdir/fixtures/make
 
24
set targets "all sample install clean"
 
25
assert_complete_dir $targets "make " $dir $test
 
26
 
 
27
 
 
28
sync_after_int
 
29
 
 
30
 
 
31
set test "\"make <TAB>\" should not show anything in directory without makefile"
 
32
set dir $::srcdir/fixtures/make/empty_dir
 
33
assert_complete_dir "" "make " $dir $test
 
34
 
 
35
 
 
36
sync_after_int
 
37
 
 
38
 
 
39
assert_complete_any "make -j "
15
40
 
16
41
 
17
42
sync_after_int