source: branches/autotools-update/Clp/test/Makefile.am @ 2335

Last change on this file since 2335 was 2335, checked in by lou, 7 months ago

Fix up test/Makefile.am to clean up files generated during unit test.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1# Copyright (C) 2006 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Eclipse Public License.
4
5## $Id: Makefile.am 2335 2018-10-10 18:45:21Z lou $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11include $(top_srcdir)/BuildTools/Makemain.inc
12
13########################################################################
14#                         unitTest for OsiClp                          #
15########################################################################
16
17if COIN_HAS_OSITESTS
18
19noinst_PROGRAMS = osiUnitTest
20
21osiUnitTest_SOURCES = osiUnitTest.cpp OsiClpSolverInterfaceTest.cpp
22
23osiUnitTest_LDADD = ../src/libClp.la ../src/OsiClp/libOsiClp.la \
24        $(CLPLIB_LFLAGS) $(OSICLPLIB_LFLAGS) $(OSICLPUNITTEST_LFLAGS)
25
26AM_CPPFLAGS = \
27        -I`$(CYGPATH_W) $(srcdir)/../src` \
28        -I`$(CYGPATH_W) $(srcdir)/../src/OsiClp` \
29         $(OSICLPLIB_CFLAGS) $(OSICLPUNITTEST_CFLAGS)
30
31testdepend = osiUnitTest$(EXEEXT)
32endif
33
34########################################################################
35#                         unitTest for Clp                             #
36########################################################################
37
38unittestflags =
39osiunittestflags =
40if COIN_HAS_SAMPLE
41  unittestflags += -dirSample `$(CYGPATH_W) $(SAMPLE_DATA)`
42  osiunittestflags += -mpsDir=`$(CYGPATH_W) $(SAMPLE_DATA)`
43endif
44unittestflags += -unitTest
45if COIN_HAS_NETLIB
46  unittestflags += -dirNetlib `$(CYGPATH_W) $(NETLIB_DATA)` -netlib
47  osiunittestflags += -netlibDir=`$(CYGPATH_W) $(NETLIB_DATA)` -testOsiSolverInterface
48endif
49
50# We are using the CLP solver executable to do the unit test
51test: ../src/clp$(EXEEXT) $(testdepend)
52        ../src/clp$(EXEEXT) $(unittestflags) || exit 1
53        if test -e osiUnitTest$(EXEEXT) ; then \
54          ./osiUnitTest$(EXEEXT) $(osiunittestflags) || exit 1 ; \
55        fi
56
57.PHONY: test
58
59########################################################################
60#                          Cleaning stuff                              #
61########################################################################
62
63# Here we list everything that is not generated by the compiler, e.g.,
64# output files of a program
65
66CLEANFILES = *.mps.gz *.out.gz *.lp
67
Note: See TracBrowser for help on using the repository browser.