adapted contacts to full set of local tests
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@293 15ad00c4-1369-45f4-8270-35d70d36bdcd
This commit is contained in:
parent
170d6bc6c9
commit
5e5342a228
|
@ -49,6 +49,18 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
static bool compare(ClientTest &client, const char *fileA, const char *fileB)
|
||||
{
|
||||
stringstream cmd;
|
||||
|
||||
string diff = getCurrentTest() + ".diff";
|
||||
simplifyFilename(diff);
|
||||
cmd << "perl synccompare " << fileA << " " << fileB << ">" << diff;
|
||||
cmd << " || (echo; echo '*** " << diff << " non-empty ***'; cat " << diff << "; exit 1 )";
|
||||
|
||||
string cmdstr = cmd.str();
|
||||
return system(cmdstr.c_str()) == 0;
|
||||
}
|
||||
|
||||
class TestEvolution : public ClientTest {
|
||||
public:
|
||||
|
@ -138,6 +150,10 @@ public:
|
|||
config.templateItem = config.insertItem;
|
||||
config.uniqueProperties = "FN:N:X-EVOLUTION-FILE-AS";
|
||||
config.sizeProperty = "NOTE";
|
||||
config.import = ClientTest::import;
|
||||
config.dump = ClientTest::dump;
|
||||
config.compare = compare;
|
||||
config.testcases = "addressbook.tests";
|
||||
break;
|
||||
case TEST_CALENDAR_SOURCE:
|
||||
config.sourceName = "Calendar";
|
||||
|
|
Loading…
Reference in New Issue