IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11550


Ignore:
Timestamp:
Feb 1, 2007, 12:00:37 PM (19 years ago)
Author:
jhoblitt
Message:

distcheck fixes

Location:
trunk/psModules
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/Makefile.am

    r11450 r11550  
    2828pmErrorCodes.c : pmErrorCodes.dat pmErrorCodes.c.in pmErrorCodes.h
    2929        $(ERRORCODES) --data=pmErrorCodes.dat --outdir=. pmErrorCodes.c
     30
     31EXTRA_DIST = pmErrorCodes.h.in pmErrorCodes.dat pmErrorCodes.c.in
  • trunk/psModules/test/detrend/tap_pmShutterCorrection.c

    r8926 r11550  
    1616    {
    1717        psMemId id = psMemGetId();
    18         pmShutterCorrPars *pars = pmShutterCorrParsAlloc ();
     18        pmShutterCorrection *pars = pmShutterCorrectionAlloc ();
    1919
    2020        ok(pars != NULL, "pmShutterCorrPars successfully allocated");
     
    4444        }
    4545
    46         pmShutterCorrPars *pars = pmShutterCorrectionGuess (exptime, counts);
     46        pmShutterCorrection *pars = pmShutterCorrectionGuess (exptime, counts);
    4747
    4848        ok(pars != NULL, "pmShutterCorrPars successfully allocated");
     
    8181        }
    8282
    83         pmShutterCorrPars *pars = pmShutterCorrectionGuess (exptime, counts);
    84 
    85         ok(pars != NULL, "pmShutterCorrPars successfully allocated");
    86         skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrParsAlloc() failed");
     83        pmShutterCorrection *pars = pmShutterCorrectionGuess (exptime, counts);
     84
     85        ok(pars != NULL, "pmShutterCorrection successfully allocated");
     86        skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrectionAlloc() failed");
    8787
    8888        // with fine linearly-spaced times large compared to TO and TK,
     
    118118        }
    119119
    120         pmShutterCorrPars *pars = pmShutterCorrectionGuess (exptime, counts);
    121 
    122         // with fine log-spaced times well-sampling TO and TK,
    123         // we can expect accurate guesses
    124         ok(pars != NULL, "pmShutterCorrPars successfully allocated");
    125         skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrParsAlloc() failed");
     120        pmShutterCorrection *pars = pmShutterCorrectionGuess (exptime, counts);
     121
     122        // with fine log-spaced times well-sampling TO and TK,
     123        // we can expect accurate guesses
     124        ok(pars != NULL, "pmShutterCorrectionsuccessfully allocated");
     125        skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrectionAlloc() failed");
    126126        ok(fabs(pars->scale  - AK) < 0.01, "scale guess is close enough (got %f vs %f)",  pars->scale, AK);
    127127        ok(fabs(pars->offset - TK) < 0.01, "offset guess is close enough (got %f vs %f)", pars->offset, TK);
     
    154154        }
    155155
    156         pmShutterCorrPars *pars = pmShutterCorrectionGuess (exptime, counts);
    157 
    158         ok(pars != NULL, "pmShutterCorrPars successfully allocated");
    159         skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrParsAlloc() failed");
     156        pmShutterCorrection *pars = pmShutterCorrectionGuess (exptime, counts);
     157
     158        ok(pars != NULL, "pmShutterCorrection successfully allocated");
     159        skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrectionAlloc() failed");
    160160
    161161        // with coarse linearly-spaced times large compared to TO and TK,
     
    191191        }
    192192
    193         pmShutterCorrPars *pars = pmShutterCorrectionGuess (exptime, counts);
    194 
    195         ok(pars != NULL, "pmShutterCorrPars successfully allocated");
    196         skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrParsAlloc() failed");
     193        pmShutterCorrection *pars = pmShutterCorrectionGuess (exptime, counts);
     194
     195        ok(pars != NULL, "pmShutterCorrection successfully allocated");
     196        skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrectionsAlloc() failed");
    197197
    198198        // with fine linearly-spaced times large compared to TO and TK,
     
    228228        }
    229229
    230         pmShutterCorrPars *pars = pmShutterCorrectionGuess (exptime, counts);
    231 
    232         // with fine log-spaced times well-sampling TO and TK,
    233         // we can expect accurate guesses
    234         ok(pars != NULL, "pmShutterCorrPars successfully allocated");
    235         skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrParsAlloc() failed");
     230        pmShutterCorrection *pars = pmShutterCorrectionGuess (exptime, counts);
     231
     232        // with fine log-spaced times well-sampling TO and TK,
     233        // we can expect accurate guesses
     234        ok(pars != NULL, "pmShutterCorrection successfully allocated");
     235        skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrectionAlloc() failed");
    236236        ok(fabs(pars->scale  - AK) < 0.01, "scale guess is close enough (got %f vs %f)",  pars->scale, AK);
    237237        ok(fabs(pars->offset - TK) < 0.01, "offset guess is close enough (got %f vs %f)", pars->offset, TK);
     
    266266        }
    267267
    268         pmShutterCorrPars *guess = pmShutterCorrectionGuess (exptime, counts);
     268        pmShutterCorrection *guess = pmShutterCorrectionGuess (exptime, counts);
    269269        skip_start(guess == NULL, 0, "Skipping tests because pmShutterCorrectionGuess() failed");
    270         pmShutterCorrPars *pars = pmShutterCorrectionFullFit (exptime, counts, cntErr, guess);
    271 
    272         // with fine log-spaced times well-sampling TO and TK,
    273         // we can expect accurate guesses
    274         ok(pars != NULL, "pmShutterCorrPars successfully allocated by FullFit");
    275         skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrParsAlloc() failed");
     270        pmShutterCorrection *pars = pmShutterCorrectionFullFit (exptime, counts, cntErr, guess);
     271
     272        // with fine log-spaced times well-sampling TO and TK,
     273        // we can expect accurate guesses
     274        ok(pars != NULL, "pmShutterCorrection successfully allocated by FullFit");
     275        skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrectionsAlloc() failed");
    276276        ok(fabs(pars->scale  - AK) < 0.01, "scale fit is close enough (got %f vs %f)",  pars->scale, AK);
    277277        ok(fabs(pars->offset - TK) < 0.01, "offset fit is close enough (got %f vs %f)", pars->offset, TK);
     
    310310        }
    311311
    312         pmShutterCorrPars *guess = pmShutterCorrectionGuess (exptime, counts);
     312        pmShutterCorrection*guess = pmShutterCorrectionGuess (exptime, counts);
    313313        skip_start(guess == NULL, 0, "Skipping tests because pmShutterCorrectionGuess() failed");
    314         pmShutterCorrPars *pars = pmShutterCorrectionFullFit (exptime, counts, cntErr, guess);
    315 
    316         // with fine log-spaced times well-sampling TO and TK,
    317         // we can expect accurate guesses
    318         ok(pars != NULL, "pmShutterCorrPars successfully allocated by FullFit");
    319         skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrParsAlloc() failed");
     314        pmShutterCorrection *pars = pmShutterCorrectionFullFit (exptime, counts, cntErr, guess);
     315
     316        // with fine log-spaced times well-sampling TO and TK,
     317        // we can expect accurate guesses
     318        ok(pars != NULL, "pmShutterCorrection successfully allocated by FullFit");
     319        skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrectionAlloc() failed");
    320320        ok(fabs(pars->scale  - AK) < 0.01, "scale fit is close enough (got %f vs %f)",  pars->scale, AK);
    321321        ok(fabs(pars->offset - TK) < 0.01, "offset fit is close enough (got %f vs %f)", pars->offset, TK);
     
    356356        }
    357357
    358         pmShutterCorrPars *guess = pmShutterCorrectionGuess (exptime, counts);
     358        pmShutterCorrection*guess = pmShutterCorrectionGuess (exptime, counts);
    359359        skip_start(guess == NULL, 0, "Skipping tests because pmShutterCorrectionGuess() failed");
    360         pmShutterCorrPars *full = pmShutterCorrectionFullFit (exptime, counts, cntErr, guess);
    361         pmShutterCorrPars *pars = pmShutterCorrectionLinFit (exptime, counts, cntErr, full->offref);
    362 
    363         // with fine log-spaced times well-sampling TO and TK,
    364         // we can expect accurate guesses
    365         ok(pars != NULL, "pmShutterCorrPars successfully allocated by FullFit");
    366         skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrParsAlloc() failed");
     360        pmShutterCorrection *full = pmShutterCorrectionFullFit (exptime, counts, cntErr, guess);
     361        pmShutterCorrection *pars = pmShutterCorrectionLinFit (exptime, counts, cntErr, NULL, full->offref, 1, 5, 0);
     362
     363        // with fine log-spaced times well-sampling TO and TK,
     364        // we can expect accurate guesses
     365        ok(pars != NULL, "pmShutterCorrection successfully allocated by FullFit");
     366        skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrectionAlloc() failed");
    367367        ok(fabs(pars->scale  - AK) < 0.01, "scale fit is close enough (got %f vs %f)",  pars->scale, AK);
    368368        ok(fabs(pars->offset - TK) < 0.01, "offset fit is close enough (got %f vs %f)", pars->offset, TK);
     
    402402        }
    403403
    404         pmShutterCorrPars *guess = pmShutterCorrectionGuess (exptime, counts);
     404        pmShutterCorrection *guess = pmShutterCorrectionGuess (exptime, counts);
    405405        skip_start(guess == NULL, 0, "Skipping tests because pmShutterCorrectionGuess() failed");
    406         pmShutterCorrPars *full = pmShutterCorrectionFullFit (exptime, counts, cntErr, guess);
    407         pmShutterCorrPars *pars = pmShutterCorrectionLinFit (exptime, counts, cntErr, full->offref);
    408 
    409         // with fine log-spaced times well-sampling TO and TK,
    410         // we can expect accurate guesses
    411         ok(pars != NULL, "pmShutterCorrPars successfully allocated by FullFit");
    412         skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrParsAlloc() failed");
     406        pmShutterCorrection *full = pmShutterCorrectionFullFit (exptime, counts, cntErr, guess);
     407        pmShutterCorrection *pars = pmShutterCorrectionLinFit (exptime, counts, cntErr, NULL, full->offref, 1, 5, 0);
     408
     409        // with fine log-spaced times well-sampling TO and TK,
     410        // we can expect accurate guesses
     411        ok(pars != NULL, "pmShutterCorrection successfully allocated by FullFit");
     412        skip_start(pars == NULL, 0, "Skipping tests because pmShutterCorrectionAlloc() failed");
    413413        ok(fabs(pars->scale  - AK) < 0.01, "scale fit is close enough (got %f vs %f)",  pars->scale, AK);
    414414        ok(fabs(pars->offset - TK) < 0.01, "offset fit is close enough (got %f vs %f)", pars->offset, TK);
  • trunk/psModules/test/tap/Makefile.am

    r10485 r11550  
    1 SUBDIRS  = src tests
     1SUBDIRS  = src
     2#SUBDIRS += tests
    23
    34prove:
  • trunk/psModules/test/tap/configure.in

    r8902 r11550  
    33AM_INIT_AUTOMAKE([foreign])
    44AC_CONFIG_HEADERS([src/config.h])
     5AC_GNU_SOURCE
    56AC_PROG_CC
    67AC_PROG_LIBTOOL
     
    4041AC_CONFIG_FILES([Makefile
    4142                 src/Makefile
    42                  tests/Makefile
    43                  tests/diag/Makefile
    44                  tests/fail/Makefile
    45                  tests/ok/Makefile
    46                  tests/ok/ok-hash/Makefile
    47                  tests/ok/ok-numeric/Makefile
    48                  tests/ok/ok/Makefile
    49                  tests/pass/Makefile
    50                  tests/plan/Makefile
    51                  tests/plan/no-tests/Makefile
    52                  tests/plan/no_plan/Makefile
    53                  tests/plan/not-enough-tests/Makefile
    54                  tests/plan/sane/Makefile
    55                  tests/plan/skip_all/Makefile
    56                  tests/plan/too-many-plans/Makefile
    57                  tests/plan/too-many-tests/Makefile
    58                  tests/skip/Makefile
    59                  tests/todo/Makefile
    6043                ])
    6144AC_OUTPUT
  • trunk/psModules/test/tap/src/tap.c

    r8902 r11550  
    2525 */
    2626
     27#ifdef HAVE_CONFIG_H
     28#include <config.h>
     29#endif
     30
    2731#include <ctype.h>
    2832#include <stdarg.h>
Note: See TracChangeset for help on using the changeset viewer.