Ejemplo n.º 1
0
/**
 * Main function
 */
int main(int argc, char **argv)
{
    int err = FALSE;

    /* Create config */
    config_init(&cfg);
    config_check(&cfg);

    err |= test_static();
    err |= test_stress();
    err |= test_stress_omp();
    err |= test_load_save();

    config_destroy(&cfg);
    return err;
}
Ejemplo n.º 2
0
int main(int argc, char *argv[])
{
   int verbose = 0;

   struct option opts[] = {
      { "verbose", no_argument, &verbose, 1},
      { "help", no_argument, NULL, '?' },
      {0, 0, 0, 0}
   };

   while (1) {
      int optidx = 0;
      int c;

      c = getopt_long(argc, argv, "f:v", opts, &optidx);

      if (c == -1)
         break;

      switch (c) {
         case 0:
            /* Got one of the flags */
            break;
         case 'v':
            verbose = 1;
            break;
         case '?':
            usage(argv[0]);
            return 2;
         default:
            fprintf(stderr, "guestmetrics: unknown option: %c\n", c);
            exit(1);
      }
   }
#ifdef USE_DL_OPEN
   test_dlopen();
#else
   test_static();
#endif
   return 0;
}
Ejemplo n.º 3
0
int main() {
    test_static();
    test_static();
}