Commit c46b6673e4ef1fa5ba6d4119e8f9d2d79908f1f5
1 parent
e97773908d
More tests for cleanup.
Showing 1 changed file with 10 additions and 0 deletions Inline Diff
tests/cleanup.t
1 | Firstly, no plugins, nothing to cleanup. | ||
2 | |||
3 | $ antigen-cleanup --force | ||
4 | You don't have any bundles. | ||
5 | |||
1 | Load a plugin. | 6 | Load a plugin. |
2 | 7 | ||
3 | $ antigen-bundle $PLUGIN_DIR | 8 | $ antigen-bundle $PLUGIN_DIR |
4 | Cloning into '*'... (glob) | 9 | Cloning into '*'... (glob) |
5 | done. | 10 | done. |
6 | 11 | ||
7 | Check the listing. | 12 | Check the listing. |
8 | 13 | ||
9 | $ antigen-list | 14 | $ antigen-list |
10 | */test-plugin / plugin true (glob) | 15 | */test-plugin / plugin true (glob) |
11 | 16 | ||
17 | Nothing should be available for cleanup. | ||
18 | |||
19 | $ antigen-cleanup --force | ||
20 | You don't have any unidentified bundles. | ||
21 | |||
12 | Clear out the bundles record. | 22 | Clear out the bundles record. |
13 | 23 | ||
14 | $ _ANTIGEN_BUNDLE_RECORD="" | 24 | $ _ANTIGEN_BUNDLE_RECORD="" |
15 | 25 | ||
16 | Check the listing, after clearing the record. | 26 | Check the listing, after clearing the record. |
17 | 27 | ||
18 | $ antigen-list | 28 | $ antigen-list |
19 | You don't have any bundles. | 29 | You don't have any bundles. |
20 | [1] | 30 | [1] |
21 | 31 | ||
22 | Confirm the plugin directory exists. | 32 | Confirm the plugin directory exists. |
23 | 33 | ||
24 | $ ls dot-antigen/repos | wc -l | 34 | $ ls dot-antigen/repos | wc -l |
25 | 1 | 35 | 1 |
26 | 36 | ||
27 | Do the cleanup. | 37 | Do the cleanup. |
28 | 38 | ||
29 | $ antigen-cleanup --force | 39 | $ antigen-cleanup --force |
30 | You have clones for the following repos, but are not used. | 40 | You have clones for the following repos, but are not used. |
31 | */test-plugin (glob) | 41 | */test-plugin (glob) |
32 | 42 | ||
33 | 43 | ||
34 | Deleting clone for */test-plugin... done. (glob) | 44 | Deleting clone for */test-plugin... done. (glob) |
35 | 45 | ||
36 | Check the listing, after cleanup. | 46 | Check the listing, after cleanup. |
37 | 47 | ||
38 | $ antigen-list | 48 | $ antigen-list |
39 | You don't have any bundles. | 49 | You don't have any bundles. |
40 | [1] | 50 | [1] |
41 | 51 | ||
42 | Confirm the plugin directory does not exist after cleanup. | 52 | Confirm the plugin directory does not exist after cleanup. |
43 | 53 | ||
44 | $ ls dot-antigen/repos | wc -l | 54 | $ ls dot-antigen/repos | wc -l |
45 | 0 | 55 | 0 |
46 | 56 |