sapling/eden/integration/snapshot
Adam Simpkins 49a7c05d61 add code to test saved snapshots
Summary:
Update the snapshot framework code to add tests that mount saved snapshots
with the current edenfs build and verifies that they behave as expected.

This also changes the snapshot generation code a fair amount as well, in
order to be able to verify the snapshot data:
- We now more cleanly split out data that should be saved when the snapshot is
  first generated (such as the `.eden` state directory) and data that should
  be re-generated each time the snapshot is unpacked (such as the `/etc/eden`
  config directory and the system configuration for `hg`).
- The code is now capable of rewriting absolute paths in the Eden state files
  so it is usable in a new location after it has been unpacked.

This also updates the "basic" snapshot type to create a wider variety of types
of files and file changes, and to be able to verify the contents of a resumed
snapshot.

Reviewed By: strager

Differential Revision: D9955411

fbshipit-source-id: 76012c01016cf4d89dc611c5596a05f5e7f013ed
2018-10-31 12:10:27 -07:00
..
types add code to test saved snapshots 2018-10-31 12:10:27 -07:00
gen_snapshot.py update gen_snapshot to use xz compression by default 2018-10-11 19:03:35 -07:00
snapshot.py add code to test saved snapshots 2018-10-31 12:10:27 -07:00
test_snapshots.py add code to test saved snapshots 2018-10-31 12:10:27 -07:00
verify.py add code to test saved snapshots 2018-10-31 12:10:27 -07:00