IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8841 for trunk/psLib/test


Ignore:
Timestamp:
Sep 19, 2006, 2:18:12 PM (20 years ago)
Author:
Paul Price
Message:

Adding --enable-tests to configure script, to allow choice as to when the tests are built. Removed xml from build.

Location:
trunk/psLib/test
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astro/Makefile.am

    r8718 r8841  
    1313        test.ser7.dat
    1414
    15 check_PROGRAMS =
     15TEST_PROGS =
     16
     17if BUILD_TESTS
     18bin_PROGRAMS = $(TEST_PROGS)
     19else
     20check_PROGRAMS = $(TEST_PROGS)
     21endif
     22TESTS = $(TEST_PROGS)
    1623
    1724CLEANFILES = $(check_DATA) temp/* core core.* *~ *.bb *.bbg *.da gmon.out
  • trunk/psLib/test/db/Makefile.am

    r8718 r8841  
    55        $(PSLIB_LIBS)
    66
    7 check_PROGRAMS =
     7TEST_PROGS =
     8
     9if BUILD_TESTS
     10bin_PROGRAMS = $(TEST_PROGS)
     11else
     12check_PROGRAMS = $(TEST_PROGS)
     13endif
     14TESTS = $(TEST_PROGS)
    815
    916CLEANFILES = $(check_DATA) temp/* core core.* *~ *.bb *.bbg *.da gmon.out
  • trunk/psLib/test/fft/Makefile.am

    r8718 r8841  
    55        $(PSLIB_LIBS)
    66
    7 check_PROGRAMS =
     7TEST_PROGS =
     8
     9if BUILD_TESTS
     10bin_PROGRAMS = $(TEST_PROGS)
     11else
     12check_PROGRAMS = $(TEST_PROGS)
     13endif
     14TESTS = $(TEST_PROGS)
    815
    916CLEANFILES = $(check_DATA) temp/* core core.* *~ *.bb *.bbg *.da gmon.out
  • trunk/psLib/test/fits/Makefile.am

    r8718 r8841  
    55        $(PSLIB_LIBS)
    66
    7 check_PROGRAMS =
     7TEST_PROGS =
     8
     9if BUILD_TESTS
     10bin_PROGRAMS = $(TEST_PROGS)
     11else
     12check_PROGRAMS = $(TEST_PROGS)
     13endif
     14TESTS = $(TEST_PROGS)
    815
    916CLEANFILES = $(check_DATA) temp/* multi.fits table.fits tmpImages/* core core.* *~ \
  • trunk/psLib/test/imageops/Makefile.am

    r8718 r8841  
    55        $(PSLIB_LIBS)
    66
    7 check_PROGRAMS =
     7TEST_PROGS =
     8
     9if BUILD_TESTS
     10bin_PROGRAMS = $(TEST_PROGS)
     11else
     12check_PROGRAMS = $(TEST_PROGS)
     13endif
     14TESTS = $(TEST_PROGS)
    815
    916CLEANFILES = $(check_DATA) temp/* fOut.fits sOut.fits fBiOut.fits sBiOut.fits \
  • trunk/psLib/test/jpeg/Makefile.am

    r8718 r8841  
    55        $(PSLIB_LIBS)
    66
    7 check_PROGRAMS =
     7TEST_PROGS =
     8
     9if BUILD_TESTS
     10bin_PROGRAMS = $(TEST_PROGS)
     11else
     12check_PROGRAMS = $(TEST_PROGS)
     13endif
     14TESTS = $(TEST_PROGS)
    815
    916CLEANFILES = $(check_DATA) core core.* *~ *.bb *.bbg *.da gmon.out
  • trunk/psLib/test/math/Makefile.am

    r8718 r8841  
    55        $(PSLIB_LIBS)
    66
    7 check_PROGRAMS =
     7TEST_PROGS =
     8
     9if BUILD_TESTS
     10bin_PROGRAMS = $(TEST_PROGS)
     11else
     12check_PROGRAMS = $(TEST_PROGS)
     13endif
     14TESTS = $(TEST_PROGS)
    815
    916CLEANFILES = $(check_DATA) temp/* seed_msglog1.txt core core.* *~ *.bb *.bbg *.da gmon.out
  • trunk/psLib/test/mathtypes/Makefile.am

    r8731 r8841  
    1010        $(PSLIB_LIBS)
    1111
    12 check_PROGRAMS = \
     12TEST_PROGS = \
    1313        tap_psVector
     14
     15if BUILD_TESTS
     16bin_PROGRAMS = $(TEST_PROGS)
     17else
     18check_PROGRAMS = $(TEST_PROGS)
     19endif
     20TESTS = $(TEST_PROGS)
    1421
    1522CLEANFILES = $(check_DATA) temp/* core core.* *~ *.bb *.bbg *.da gmon.out
  • trunk/psLib/test/mathtypes/tap_psVector.c

    r8791 r8841  
    11#include <stdio.h>
     2#include <string.h>
    23#include <pslib.h>
    34
  • trunk/psLib/test/pstap/src/Makefile.am

    r8731 r8841  
    55        $(PSLIB_LIBS)
    66
     7TEST_LTLIBS = libpstap.la
     8libpstap_la_SOURCES = pstap.c
    79noinst_HEADERS = pstap.h
    8 check_LTLIBRARIES = libpstap.la
    910
    10 libpstap_la_SOURCES = pstap.c
     11if BUILD_TESTS
     12lib_LTLIBRARIES = $(TEST_LTLIBS)
     13else
     14check_LTLIBRARIES = $(TEST_LTLIBS)
     15endif
     16
  • trunk/psLib/test/sys/Makefile.am

    r8731 r8841  
    1010        $(PSLIB_LIBS)
    1111
     12TEST_PROGS = \
     13        tap_psStringSubstitute
    1214
    13 check_PROGRAMS = \
    14         tap_psStringSubstitute
     15if BUILD_TESTS
     16bin_PROGRAMS = $(TEST_PROGS)
     17else
     18check_PROGRAMS = $(TEST_PROGS)
     19endif
     20TESTS = $(TEST_PROGS)
    1521
    1622CLEANFILES = $(check_DATA) temp/* log.txt log2.txt test.fits tst_psTrace02_OUT \
  • trunk/psLib/test/sys/tap_psStringSubstitute.c

    r8791 r8841  
    11#include <stdio.h>
     2#include <string.h>
    23#include <pslib.h>
    34
  • trunk/psLib/test/tap/configure.in

    r7862 r8841  
    1717                ;;
    1818esac
     19
     20dnl build tests at the same time as the source code
     21AC_ARG_ENABLE(tests,
     22  [AS_HELP_STRING(--enable-tests,build tests at same time as source)],
     23  [AC_MSG_RESULT(test building enabled)
     24   tests=true],
     25   [tests=false])
     26AM_CONDITIONAL(BUILD_TESTS, test x$tests = xtrue)
    1927
    2028# Checks for header files
  • trunk/psLib/test/tap/src/Makefile.am

    r8731 r8841  
    1 check_LTLIBRARIES = libtap.la
     1TEST_LTLIBS = libtap.la
    22libtap_la_SOURCES = tap.c tap.h
     3include_HEADERS = tap.h
     4
     5if BUILD_TESTS
     6lib_LTLIBRARIES = $(TEST_LTLIBS)
     7else
     8check_LTLIBRARIES = $(TEST_LTLIBS)
     9endif
    310
    411man_MANS = tap.3
    512EXTRA_DIST = $(man_MANS)
    613
    7 include_HEADERS = tap.h
  • trunk/psLib/test/types/Makefile.am

    r8814 r8841  
    1111AM_CFLAGS = -DXML_CONFIG_FILE="\"$(top_srcdir)/etc/pslib/psTime.xml\""
    1212
    13 check_PROGRAMS = \
     13TEST_PROGS = \
    1414        tap_psMetadataIterator \
    1515        tap_psListIterator \
     
    2525        tap_psArray_all \
    2626        tap_psArguments_all
     27
     28if BUILD_TESTS
     29bin_PROGRAMS = $(TEST_PROGS)
     30else
     31check_PROGRAMS = $(TEST_PROGS)
     32endif
     33TESTS = $(TEST_PROGS)
    2734
    2835check_DATA = \
  • trunk/psLib/test/types/tap_psListIterator.c

    r8786 r8841  
    11#include <stdio.h>
     2#include <string.h>
    23#include <pslib.h>
    34
  • trunk/psLib/test/types/tap_psMetadataConfigRead.c

    r8775 r8841  
    11#include <stdio.h>
     2#include <string.h>
    23#include <pslib.h>
    34
  • trunk/psLib/test/types/tap_psMetadataItemParse.c

    r8731 r8841  
    11#include <pslib.h>
     2#include <string.h>
    23
    34#include "tap.h"
  • trunk/psLib/test/types/tap_psMetadataIterator.c

    r8731 r8841  
    11#include <stdio.h>
     2#include <string.h>
    23#include <pslib.h>
    34
  • trunk/psLib/test/types/tap_psMetadata_copying.c

    r8731 r8841  
    1212
    1313#include <pslib.h>
     14#include <string.h>
    1415
    1516#include "tap.h"
  • trunk/psLib/test/types/tap_psMetadata_creating.c

    r8786 r8841  
    1414
    1515#include <pslib.h>
     16#include <string.h>
    1617
    1718#include "tap.h"
  • trunk/psLib/test/types/tap_psMetadata_manip.c

    r8731 r8841  
    1212
    1313#include <pslib.h>
     14#include <string.h>
    1415
    1516#include "tap.h"
  • trunk/psLib/test/types/tap_psMetadata_polynomials.c

    r8786 r8841  
    1212
    1313#include <pslib.h>
     14#include <string.h>
    1415
    1516#include "tap.h"
  • trunk/psLib/test/types/tap_psMetadata_printing.c

    r8731 r8841  
    1111 */
    1212
     13#include <stdio.h>
     14#include <string.h>
    1315#include <fcntl.h>
    1416#include <pslib.h>
  • trunk/psLib/test/xml/Makefile.am

    r8718 r8841  
    55        $(PSLIB_LIBS)
    66
    7 check_PROGRAMS =
     7TEST_PROGS =
     8
     9if BUILD_TESTS
     10bin_PROGRAMS = $(TEST_PROGS)
     11else
     12check_PROGRAMS = $(TEST_PROGS)
     13endif
     14TESTS = $(TEST_PROGS)
    815
    916EXTRA_DIST = psTime.xml psTime2.xml psTime3.xml psTime4.xml
Note: See TracChangeset for help on using the changeset viewer.