using namespace snapper;
-#define ROOTDIR "/test"
+#define SUBVOLUME "/test"
Snapper* sh = NULL;
void
setup()
{
- system("/usr/bin/find " ROOTDIR " -mindepth 1 -maxdepth 1 -not -path " ROOTDIR "/snapshots "
+ system("/usr/bin/find " SUBVOLUME " -mindepth 1 -maxdepth 1 -not -path " SUBVOLUME "/snapshots "
"-exec rm -r {} \\;");
initDefaultLogger();
- sh = createSnapper(ROOTDIR);
+ sh = createSnapper("testsuite");
}
void
run_command(const char* command)
{
- string tmp = string("cd " ROOTDIR " ; ") + command;
+ string tmp = string("cd " SUBVOLUME " ; ") + command;
check_zero(system(tmp.c_str()));
}