Convert test suites over to new test infrastructure

This commit is contained in:
Daniel P. Berrange
2008-05-29 15:31:49 +00:00
parent b0bcffda3b
commit 4b23495509
10 changed files with 97 additions and 57 deletions

View File

@@ -77,8 +77,8 @@ static int testCompareHelper(const void *data) {
}
int
main(int argc, char **argv)
static int
mymain(int argc, char **argv)
{
int ret = 0;
char cwd[PATH_MAX];
@@ -91,7 +91,7 @@ main(int argc, char **argv)
if (argc > 1) {
fprintf(stderr, "Usage: %s\n", progname);
exit(EXIT_FAILURE);
return(EXIT_FAILURE);
}
#define DO_TEST(in, out, name, version) \
@@ -145,9 +145,11 @@ main(int argc, char **argv)
DO_TEST("fv-sound", "fv-sound", "fvtest", 1);
exit(ret==0 ? EXIT_SUCCESS : EXIT_FAILURE);
return(ret==0 ? EXIT_SUCCESS : EXIT_FAILURE);
}
VIRT_TEST_MAIN(mymain)
#else /* WITH_XEN */
int main (void) { exit (77); /* means 'test skipped' for automake */ }