Commit 01590aa28a44de6c1f9d5d41dd44a393d72291b9

Authored by Shrikant Sharat
1 parent 1f541f429a

Add test for cleanup command.

Showing 1 changed file with 45 additions and 0 deletions Inline Diff

File was created 1 Load a plugin.
2
3 $ antigen-bundle $PLUGIN_DIR
4 Cloning into '*'... (glob)
5 done.
6
7 Check the listing.
8
9 $ antigen-list
10 */test-plugin / plugin (glob)
11
12 Clear out the bundles record.
13
14 $ _ANTIGEN_BUNDLE_RECORD=""
15
16 Check the listing, after clearing the record.
17
18 $ antigen-list
19 You don't have any bundles.
20 [1]
21
22 Confirm the plugin directory exists.
23
24 $ ls dot-antigen/repos | wc -l
25 1
26
27 Do the cleanup.
28
29 $ antigen-cleanup --force
30 You have clones for the following repos, but are not used.
31 */test-plugin (glob)
32
33
34 Deleting clone for */test-plugin... done. (glob)
35
36 Check the listing, after cleanup.
37
38 $ antigen-list
39 You don't have any bundles.
40 [1]
41
42 Confirm the plugin directory does not exist after cleanup.
43
44 $ ls dot-antigen/repos | wc -l
45 0
46