6 #include <snapper/Snapper.h>
8 using namespace snapper;
15 Snapper* sh = new Snapper("testsuite");
17 Snapshots snapshots = sh->getSnapshots();
19 vector<Snapshots::iterator> tmp;
20 for (Snapshots::iterator it = snapshots.begin(); it != snapshots.end(); ++it)
24 for (vector<Snapshots::iterator>::iterator it = tmp.begin(); it != tmp.end(); ++it)
25 sh->deleteSnapshot(*it);
36 Snapper* sh = new Snapper("testsuite");
38 time_t t = time(NULL) - 100 * 24*60*60;
39 while (t < time(NULL))
41 Snapshots::iterator snap = sh->createSingleSnapshot("testsuite");
43 snap->setCleanup("timeline");