IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 10, 2013, 5:53:31 PM (13 years ago)
Author:
eugene
Message:

add test-case options -dup-images (allow duplicate image IDs) and -image-id-override (force a specific image ID)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/args.c

    r34405 r35579  
    308308  if ((N = get_argument (argc, argv, "-no-stars"))) {
    309309    NO_STARS = TRUE;
     310    remove_argument (N, &argc, argv);
     311  }
     312  /* skip the stars */
     313  NO_DUPLICATE_IMAGES = TRUE;
     314  if ((N = get_argument (argc, argv, "-dup-images"))) {
     315    NO_DUPLICATE_IMAGES = FALSE;
     316    remove_argument (N, &argc, argv);
     317  }
     318  /* skip the stars */
     319  IMAGE_ID_OVERRIDE = 0;
     320  if ((N = get_argument (argc, argv, "-image-id-override"))) {
     321    remove_argument (N, &argc, argv);
     322    IMAGE_ID_OVERRIDE = atoi(argv[N]);
    310323    remove_argument (N, &argc, argv);
    311324  }
     
    438451  fprintf (stderr, "  -use-name                   : use the given name instead of the filename as the filename\n");
    439452  fprintf (stderr, "  -no-stars                   : skip the stars\n");
     453  fprintf (stderr, "  -dup-images                 : skip the test for duplicate image IDs (test only!)\n");
    440454  fprintf (stderr, "  -force                      : force read of database with inconsistent info\n");
    441455  fprintf (stderr, "  -threads (N)                : use N threads for resort option\n");
Note: See TracChangeset for help on using the changeset viewer.