source: plugins/base1/se.lu.thep.wenni/trunk/test/Makefile.am @ 849

Last change on this file since 849 was 849, checked in by Peter Johansson, 14 years ago

defining state variable in config.h and when not in base1 mode slice out tests in wenni_test that are base1 specific.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 849 2008-12-01 21:01:33Z peter $
4
5# Copyright (C) 2005, 2006 Jari Häkkinen
6# Copyright (C) 2007 2008 Peter Johansson
7#
8# This file is part of WeNNI,
9# http://baseplugins.thep.lu.se/wiki/se.lu.thep.WeNNI
10#
11# WeNNI is free software; you can redistribute it and/or modify it
12# under the terms of the GNU General Public License as published by the
13# Free Software Foundation; either version 3 of the License, or (at
14# your option) any later version.
15#
16# WeNNI is distributed in the hope that it will be useful, but WITHOUT
17# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19# for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with WeNNI. If not, see <http://www.gnu.org/licenses/>.
23
24check_PROGRAMS = wenni_test
25
26TESTS = $(check_PROGRAMS)
27
28if BASE1
29CREATE_INDATA = run_base1_plugin
30endif
31
32SUPPORT_LINKS = BaseFileConverter NNIFileConverter nni
33WENNI_PL_LINK = wenni.pl
34LINKS = $(SUPPORT_LINKS) $(WENNI_PL_LINK)
35
36AM_CPPFLAGS = -I@top_srcdir@/lib
37LDADD = -L@top_builddir@/$(CPP_TOOLS_LIBPATH) -lc++_tools
38
39wenni_test_DEPENDENCIES = $(SUPPORT_LINKS) $(WENNI_PL_LINK) $(CREATE_INDATA)
40wenni_test_SOURCES = wenni_test.cc
41
42BaseFileConverter:; ln -fs $(top_builddir)/base/base1/$@/$@
43nni:; ln -fs $(top_builddir)/bin/$@/$@
44NNIFileConverter:; ln -fs $(top_builddir)/bin/$@/$@
45$(WENNI_PL_LINK):; ln -fs $(top_srcdir)/base/base1/base_plugin_script/$@
46
47run_base1_plugin:
48  @($(MKDIR_P) raw_results && cd raw_results && ../wenni.pl --datatype raw \
49--nodelete < ../$(top_srcdir)/data/basefile_in.data > basefile_out.data);
50  @($(MKDIR_P) default_results && cd default_results && ../wenni.pl \
51--nodelete < ../$(top_srcdir)/data/basefile_in.data > basefile_out.data);
52
53clean-local:; rm -rf $(LINKS) default_results raw_results \
54  knni_imputed.data wenni_imputed.data
55
56
57
Note: See TracBrowser for help on using the repository browser.