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