Blame view

tests/cleanup.t 1.21 KB
c46b6673e   Shrikant Sharat   More tests for cl...
1
2
3
4
  Firstly, no plugins, nothing to cleanup.
  
    $ antigen-cleanup --force
    You don't have any bundles.
af81e3312   Shrikant Sharat   Test cleanup with...
5
  Load the plugins.
01590aa28   Shrikant Sharat   Add test for clea...
6
7
8
9
  
    $ antigen-bundle $PLUGIN_DIR
    Cloning into '*'... (glob)
    done.
dc2d37ff0   Shrikant Sharat   It appears git ch...
10
    Checking connectivity... done
af81e3312   Shrikant Sharat   Test cleanup with...
11
12
13
    $ antigen-bundle $PLUGIN_DIR2
    Cloning into '*'... (glob)
    done.
dc2d37ff0   Shrikant Sharat   It appears git ch...
14
    Checking connectivity... done
01590aa28   Shrikant Sharat   Add test for clea...
15
16
17
18
  
  Check the listing.
  
    $ antigen-list
0efbfc326   Shrikant Sharat   Fix tests to work...
19
    */test-plugin / plugin true (glob)
af81e3312   Shrikant Sharat   Test cleanup with...
20
    */test-plugin2 / plugin true (glob)
01590aa28   Shrikant Sharat   Add test for clea...
21

c46b6673e   Shrikant Sharat   More tests for cl...
22
23
24
25
  Nothing should be available for cleanup.
  
    $ antigen-cleanup --force
    You don't have any unidentified bundles.
01590aa28   Shrikant Sharat   Add test for clea...
26
27
28
29
30
31
32
33
34
35
36
37
38
  Clear out the bundles record.
  
    $ _ANTIGEN_BUNDLE_RECORD=""
  
  Check the listing, after clearing the record.
  
    $ antigen-list
    You don't have any bundles.
    [1]
  
  Confirm the plugin directory exists.
  
    $ ls dot-antigen/repos | wc -l
af81e3312   Shrikant Sharat   Test cleanup with...
39
    2
01590aa28   Shrikant Sharat   Add test for clea...
40
41
42
43
44
45
  
  Do the cleanup.
  
    $ antigen-cleanup --force
    You have clones for the following repos, but are not used.
      */test-plugin (glob)
af81e3312   Shrikant Sharat   Test cleanup with...
46
      */test-plugin2 (glob)
01590aa28   Shrikant Sharat   Add test for clea...
47
48
49
    
    
    Deleting clone for */test-plugin... done. (glob)
af81e3312   Shrikant Sharat   Test cleanup with...
50
    Deleting clone for */test-plugin2... done. (glob)
01590aa28   Shrikant Sharat   Add test for clea...
51
52
53
54
55
56
57
58
59
60
61
  
  Check the listing, after cleanup.
  
    $ antigen-list
    You don't have any bundles.
    [1]
  
  Confirm the plugin directory does not exist after cleanup.
  
    $ ls dot-antigen/repos | wc -l
    0