Changeset 44a76c in git for kernel


Ignore:
Timestamp:
Nov 23, 2011, 1:28:57 AM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
097c71a9e55bb76830c9f5b243182439619170a6
Parents:
a6e550e2a4d0c172e369eedbf17d1cce1e49ef2a
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-11-23 01:28:57+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-11-23 01:56:36+01:00
Message:
static and dynamic tests for libkernel/

ADD: more test variants: static & dynamic in addition to debug & release (kernel)

CHG: minor cleanup (TODO: separate!!!)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile.am

    ra6e550e r44a76c  
    4444    eigenval.cc units.cc \
    4545    fast_mult.cc digitech.cc \
    46     tgb.cc tgbgauss.cc ringgb.cc f5data.cc f5lists.cc f5gb.cc \
    47     f5c.cc ratgring.cc shiftgb.cc gfan.cc \
     46    tgb.cc tgbgauss.cc ringgb.cc f5data.cc f5lists.cc f5gb.cc f5c.cc \
     47    ratgring.cc shiftgb.cc gfan.cc \
    4848    linearAlgebra.cc nc.cc preimage.cc \
    4949    fegetopt.c mod2.h
     
    6969        preimage.h longrat.h timer.h kInline.h modulop.h fast_mult.h \
    7070        digitech.h tgb.h ringgb.h tgbgauss.h tgb_internal.h \
    71         linearAlgebra.h page.h
     71        linearAlgebra.h page.h \
     72        f5c.h f5data.h f5gb.h f5lists.h
    7273
    7374libkernel_includedir  =${includedir}/singular/kernel/
     
    8687TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${abs_top_builddir}'
    8788
    88 TESTS = testg testr
     89TESTS = test-s-g test-s-r test-d-g test-d-r
    8990check_PROGRAMS = $(TESTS)
    9091
    91 testr_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
    92 testg_CFLAGS = ${PIPE}
     92test_s_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
     93test_s_g_CFLAGS = ${PIPE}
    9394
    94 testr_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS)
    95 testg_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS)
     95test_s_r_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS)
     96test_s_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS)
    9697
    97 testsources = test.cc f5c.h f5data.h f5gb.h f5lists.h
    98 testr_SOURCES = $(testsources)
    99 testg_SOURCES = $(testsources)
     98testsources = test.cc
     99test_s_r_SOURCES = $(testsources)
     100test_s_g_SOURCES = $(testsources)
    100101
    101 testr_LDADD = -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD}
    102 testg_LDADD = -lkernel_g -lpolys_g -lcoeffs_g -lresources_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS}  ${USEPPROCSDYNAMICLD}
     102test_s_r_LDADD = -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD}
     103test_s_g_LDADD = -lkernel_g -lpolys_g -lcoeffs_g -lresources_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS}  ${USEPPROCSDYNAMICLD}
    103104
    104 testr_CPPFLAGS = -DNDEBUG -DOM_NDEBUG
    105 #testg_CPPFLAGS =
     105test_s_r_CPPFLAGS = -DNDEBUG -DOM_NDEBUG
     106#test_s_g_CPPFLAGS =
     107
     108test_s_r_LDFLAGS = -static
     109test_s_g_LDFLAGS = -static
     110
     111
     112test_d_r_CFLAGS = -O3 -fomit-frame-pointer ${PIPE}
     113test_d_g_CFLAGS = ${PIPE}
     114
     115test_d_r_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti -Wextra -Wall -Wno-long-long ${PIPE} $(CXXTEMPLFLAGS)
     116test_d_g_CXXFLAGS = -g -Wextra -Wall -Wno-long-long -pedantic ${PIPE} $(CXXTEMPLFLAGS)
     117
     118test_d_r_SOURCES = $(testsources)
     119test_d_g_SOURCES = $(testsources)
     120
     121test_d_r_LDADD = -lkernel -lpolys -lcoeffs -lresources -lreporter -lmisc $(FACTORY_LIBS) -lomalloc $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD}
     122test_d_g_LDADD = -lkernel_g -lpolys_g -lcoeffs_g -lresources_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS}  ${USEPPROCSDYNAMICLD}
     123
     124test_d_r_CPPFLAGS = -DNDEBUG -DOM_NDEBUG
     125#test_d_g_CPPFLAGS =
     126
    106127
    107128CLEANFILES = $(TESTS)
Note: See TracChangeset for help on using the changeset viewer.