source: stable/2.1/Cbc/test/Makefile.am @ 1032

Last change on this file since 1032 was 832, checked in by lou, 12 years ago

So cbc-generic can find the input file.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1# Copyright (C) 2006 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5## $Id: Makefile.am 832 2007-10-27 18:47:56Z forrest $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
12#                         unitTest for Cbc                             #
13########################################################################
14
15CBC_TEST_TGTS =
16
17if COIN_HAS_CLP
18  CBC_TEST_TGTS += test_cbc
19endif
20if CBC_BUILD_CBC_GENERIC
21  CBC_TEST_TGTS += test_cbc_generic
22endif
23
24# We are using the solver executables to do the unit test
25
26test: $(CBC_TEST_TGTS)
27
28test_cbc: ../src/cbc$(EXEEXT)
29        if test x"$(DIRMIPLIB)" != x; then \
30                MIPLIBARG="-dirMiplib $(DIRMIPLIB) -miplib"; \
31        fi; \
32        if test x"$(DIRSAMPLE)" != x; then \
33                SAMPLEARG="-dirSample $(DIRSAMPLE)"; \
34        fi; \
35        ../src/cbc$(EXEEXT) $$SAMPLEARG -unitTest $$MIPLIBARG
36
37test_cbc_generic: ../src/cbc-generic$(EXEEXT)
38        echo "A minimal test is all that cbc-generic can manage just yet."
39        ../src/cbc-generic$(EXEEXT) \
40            -directory ../../Data/Sample -import p0033.mps -branch
41
42.PHONY: test
43
44########################################################################
45#                          Cleaning stuff                              #
46########################################################################
47
48# Here we list everything that is not generated by the compiler, e.g.,
49# output files of a program
50
51DISTCLEANFILES = yy.mps xx.mps
Note: See TracBrowser for help on using the repository browser.