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 765 2007-08-20 04:03:23Z ladanyi $ |
---|
6 | |
---|
7 | # Author: Andreas Waechter IBM 2006-04-13 |
---|
8 | |
---|
9 | AUTOMAKE_OPTIONS = foreign |
---|
10 | |
---|
11 | ######################################################################## |
---|
12 | # unitTest for Cbc # |
---|
13 | ######################################################################## |
---|
14 | |
---|
15 | CBC_TEST_TGTS = |
---|
16 | |
---|
17 | if COIN_HAS_CLP |
---|
18 | CBC_TEST_TGTS += test_cbc |
---|
19 | endif |
---|
20 | if CBC_BUILD_CBC_GENERIC |
---|
21 | CBC_TEST_TGTS += test_cbc_generic |
---|
22 | endif |
---|
23 | |
---|
24 | # We are using the solver executables to do the unit test |
---|
25 | |
---|
26 | test: $(CBC_TEST_TGTS) |
---|
27 | |
---|
28 | test_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 | |
---|
37 | test_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 -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 | |
---|
51 | DISTCLEANFILES = yy.mps xx.mps |
---|