Changeset 1387:37d1b20cd9ef in lemon-0.x for src/test
- Timestamp:
- 04/25/05 10:19:38 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1840
- Location:
- src/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/test/Makefile.am
r1349 r1387 36 36 if HAVE_GLPK 37 37 check_PROGRAMS += lp_test 38 endif 38 else !HAVE_GLPK 39 if HAVE_CPLEX 40 check_PROGRAMS += lp_test 41 endif HAVE_CPLEX 42 endif !HAVE_GLPK 39 43 40 44 TESTS = $(check_PROGRAMS) … … 63 67 64 68 lp_test_SOURCES = lp_test.cc 65 lp_test_CXXFLAGS = $(GLPK_CFLAGS) 66 lp_test_LDFLAGS = $(GLPK_LIBS) 69 lp_test_CXXFLAGS = $(GLPK_CFLAGS) $(CPLEX_CFLAGS) -
src/test/lp_test.cc
r1313 r1387 1 #include<lemon/lp_skeleton.h> 2 #include<lemon/lp_glpk.h> 1 #ifdef HAVE_CONFIG_H 2 #include <config.h> 3 #endif 4 5 #ifdef HAVE_GLPK 6 #include <lemon/lp_glpk.h> 7 #elif HAVE_CPLEX 8 #include <lemon/lp_cplex.h> 9 #endif 3 10 4 11 using namespace lemon; 12 13 #ifdef HAVE_GLPK 14 typedef LpGlpk LpDefault; 15 #elif HAVE_CPLEX 16 typedef LpCplex LpDefault; 17 #endif 5 18 6 19 void lpTest(LpSolverBase & lp) … … 130 143 int main() 131 144 { 132 LpSkeleton lp_skel; 133 LpGlpk lp_glpk; 145 LpDefault lp; 134 146 135 lpTest(lp_skel); 136 lpTest(lp_glpk); 147 lpTest(lp); 137 148 138 149 return 0;
Note: See TracChangeset
for help on using the changeset viewer.