Blame view

tests/snapshots.t 784 Bytes
d36c6f93d   Shrikant Sharat   Implemented `anti...
1
  Load a couple of plugins.
98dc8bb90   Shrikant Sharat   git's output is s...
2
3
    $ antigen-bundle $PLUGIN_DIR &> /dev/null
    $ antigen-bundle $PLUGIN_DIR2 &> /dev/null
d36c6f93d   Shrikant Sharat   Implemented `anti...
4
5
6
7
8
9
10
11
12
13
14
15
  
  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...
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
    .{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