Commit 72c01604ff8eaecd5b730cad7712d331c4d0dd0c

Authored by Shrikant Sharat
1 parent 8e3f27d941

Skip the legacy tests instead of omitting them.

Showing 4 changed files with 13 additions and 2 deletions Inline Diff

1 .PHONY: tests 1 .PHONY: tests
2 2
3 tests: 3 tests:
4 ZDOTDIR="${PWD}/tests" cram -i --shell=zsh tests/branch-bundle.t \ 4 ZDOTDIR="${PWD}/tests" cram -i --shell=zsh tests
5 tests/bundle.t tests/url-resolver.t tests/antigen-wrapper.t
6 5
tests/bundle-syntaxes.t
1 Skip test.
2
3 $ exit 80
4
1 Test helper and mock functions. 5 Test helper and mock functions.
2 6
3 $ git () { 7 $ git () {
4 > echo git "$@" 8 > echo git "$@"
5 > } 9 > }
6 $ b () { 10 $ b () {
7 > bundle "$@" 11 > bundle "$@"
8 > bundle-list | tail -1 12 > bundle-list | tail -1
9 > } 13 > }
10 14
11 Short and sweet. 15 Short and sweet.
12 16
13 $ b lol 17 $ b lol
14 plugin-name https://github.com/robbyrussell/oh-my-zsh.git plugins/plugin-name 18 plugin-name https://github.com/robbyrussell/oh-my-zsh.git plugins/plugin-name
15 19
16 Short repo url. 20 Short repo url.
17 21
18 $ b github-username/repo-name 22 $ b github-username/repo-name
19 repo-name https://github.com/github-username/repo-name.git / 23 repo-name https://github.com/github-username/repo-name.git /
20 24
21 Short repo url with `.git` suffix. 25 Short repo url with `.git` suffix.
22 26
23 $ b github-username/repo-name.git 27 $ b github-username/repo-name.git
24 repo-name https://github.com/github-username/repo-name.git / 28 repo-name https://github.com/github-username/repo-name.git /
25 29
26 Long repo url. 30 Long repo url.
27 31
28 $ b https://github.com/user/repo.git 32 $ b https://github.com/user/repo.git
29 repo https://github.com/user/repo.git / 33 repo https://github.com/user/repo.git /
30 34
31 Long repo url with missing `.git` suffix (should'nt add the suffix). 35 Long repo url with missing `.git` suffix (should'nt add the suffix).
32 36
33 $ b https://github.com/user/repo 37 $ b https://github.com/user/repo
34 repo https://github.com/user/repo / 38 repo https://github.com/user/repo /
35 39
36 Short repo with location. 40 Short repo with location.
37 41
38 $ b user/plugin path/to/plugin 42 $ b user/plugin path/to/plugin
39 plugin https://github.com/user/plugin.git path/to/plugin 43 plugin https://github.com/user/plugin.git path/to/plugin
40 44
41 Keyword arguments, in respective places. 45 Keyword arguments, in respective places.
42 46
43 $ b --url=user/repo --loc=path/of/plugin 47 $ b --url=user/repo --loc=path/of/plugin
44 plugin-name https://github.com/user/repo.git path/of/plugin 48 plugin-name https://github.com/user/repo.git path/of/plugin
45 49
46 Keyword arguments, in respective places, with full repo url. 50 Keyword arguments, in respective places, with full repo url.
47 51
48 $ b --url=https://github.com/user/repo.git --loc=plugin/path 52 $ b --url=https://github.com/user/repo.git --loc=plugin/path
49 name https://github.com/user/repo.git plugin/path 53 name https://github.com/user/repo.git plugin/path
50 54
51 Keyword arguments, in reversed order. 55 Keyword arguments, in reversed order.
52 56
53 $ b --loc=path/of/plugin --url=user/repo 57 $ b --loc=path/of/plugin --url=user/repo
54 plugin-name https://github.com/user/repo.git path/of/plugin 58 plugin-name https://github.com/user/repo.git path/of/plugin
55 59
56 Mixed positional and keyword arguments, and skip `loc`. 60 Mixed positional and keyword arguments, and skip `loc`.
57 61
58 $ b user/repo --loc=plugin/loc 62 $ b user/repo --loc=plugin/loc
59 plugin https://github.com/user/repo.git plugin/loc 63 plugin https://github.com/user/repo.git plugin/loc
60 64
61 Just `loc`, using keyword arguments. 65 Just `loc`, using keyword arguments.
62 66
63 $ b --loc=plugin/path 67 $ b --loc=plugin/path
64 path https://github.com/robbyrussell/oh-my-zsh.git plugin/path 68 path https://github.com/robbyrussell/oh-my-zsh.git plugin/path
65 69
66 TODO: Error reporting with erroneous arguments or usage with incorrect syntax. 70 TODO: Error reporting with erroneous arguments or usage with incorrect syntax.
67 71
1 Skip test.
2
3 $ exit 80
4
1 Confirm we have no plugins. 5 Confirm we have no plugins.
2 6
3 $ bundle-list 7 $ bundle-list
4 You don't have any bundles. 8 You don't have any bundles.
5 [1] 9 [1]
6 10
7 Record a plugin and install it. 11 Record a plugin and install it.
8 12
9 $ bundle lol 13 $ bundle lol
10 $ bundle-install 14 $ bundle-install
11 Cloning into '[-_\.a-zA-Z0-9/\\]+'... (re) 15 Cloning into '[-_\.a-zA-Z0-9/\\]+'... (re)
12 Installing lol 16 Installing lol
13 17
14 Check if the lol plugin is correctly loaded. 18 Check if the lol plugin is correctly loaded.
15 19
16 $ alias wtf 20 $ alias wtf
17 wtf=dmesg 21 wtf=dmesg
18 22
19 On-spot installation. 23 On-spot installation.
20 24
21 $ bundle-install git 25 $ bundle-install git
22 Installing git 26 Installing git
23 27
24 Check if git plugin is loaded correctly. 28 Check if git plugin is loaded correctly.
25 29
26 $ alias g 30 $ alias g
27 g=git 31 g=git
28 32
29 Confirm the listing of plugins. 33 Confirm the listing of plugins.
30 34
31 $ bundle-list 35 $ bundle-list
32 lol https://github.com/robbyrussell/oh-my-zsh.git plugins/lol 36 lol https://github.com/robbyrussell/oh-my-zsh.git plugins/lol
33 git https://github.com/robbyrussell/oh-my-zsh.git plugins/git 37 git https://github.com/robbyrussell/oh-my-zsh.git plugins/git
34 38
35 Update plugins (test both alternate syntaxes for do this). 39 Update plugins (test both alternate syntaxes for do this).
36 40
37 $ bundle-install! 41 $ bundle-install!
38 Already up-to-date. 42 Already up-to-date.
39 Installing lol 43 Installing lol
40 Installing git 44 Installing git
41 $ bundle-install --update 45 $ bundle-install --update
42 Already up-to-date. 46 Already up-to-date.
43 Installing lol 47 Installing lol
44 Installing git 48 Installing git
45 49
1 Skip test.
2
3 $ exit 80
4
1 Listing recorded bundles. 5 Listing recorded bundles.
2 6
3 $ bundle-list 7 $ bundle-list
4 You don't have any bundles. 8 You don't have any bundles.
5 [1] 9 [1]
6 $ bundle lol 10 $ bundle lol
7 $ bundle-list 11 $ bundle-list
8 lol https://github.com/robbyrussell/oh-my-zsh.git plugins/lol 12 lol https://github.com/robbyrussell/oh-my-zsh.git plugins/lol
9 $ bundle vi-mode 13 $ bundle vi-mode
10 $ bundle-list 14 $ bundle-list
11 lol https://github.com/robbyrussell/oh-my-zsh.git plugins/lol 15 lol https://github.com/robbyrussell/oh-my-zsh.git plugins/lol
12 vi-mode https://github.com/robbyrussell/oh-my-zsh.git plugins/vi-mode 16 vi-mode https://github.com/robbyrussell/oh-my-zsh.git plugins/vi-mode
13 17
14 TODO: Listing of plugins installed on-spot. 18 TODO: Listing of plugins installed on-spot.
15 19