Blame view

tests/snapshots.t 896 Bytes
d36c6f93d   Shrikant Sharat   Implemented `anti...
1
2
3
4
5
  Load a couple of plugins.
  
    $ antigen-bundle $PLUGIN_DIR
    Cloning into '*'... (glob)
    done.
dc2d37ff0   Shrikant Sharat   It appears git ch...
6
    Checking connectivity... done
d36c6f93d   Shrikant Sharat   Implemented `anti...
7
8
9
    $ antigen-bundle $PLUGIN_DIR2
    Cloning into '*'... (glob)
    done.
dc2d37ff0   Shrikant Sharat   It appears git ch...
10
    Checking connectivity... done
d36c6f93d   Shrikant Sharat   Implemented `anti...
11
12
13
14
15
16
17
18
19
20
21
22
  
  Create a snapshot file.
  
    $ test -f snapshot-file
    [1]
    $ antigen-snapshot snapshot-file
    $ test -f snapshot-file
  
  See the contents of the snapshot file.
  
    $ cat snapshot-file
    version='1'; created_on='*'; checksum='*'; (glob)
2c2f91c92   Shrikant Sharat   Added `antigen-re...
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
    .{40} .*/test-plugin (re)
    .{40} .*/test-plugin2 (re)
  
  Reset the antigen's bundle record and run cleanup.
  
    $ unset _ANTIGEN_BUNDLE_RECORD
    $ antigen-cleanup --force | grep '^Deleting' | wc -l
    2
  
  Restore from the snapshot.
  
    $ ls dot-antigen/repos | wc -l
    0
    $ antigen-restore snapshot-file
    Restoring from snapshot-file... done.
    Please open a new shell to get the restored changes.
    $ ls dot-antigen/repos | wc -l
    2