summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2013-11-05 16:51:52 +0000
committerthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2013-11-05 16:51:52 +0000
commita7ca3303e0ecb5512e29a6bb3bcca448da4e24c9 (patch)
tree5bb70d1dbbfed4f44b06f6614629c14a712b0afa
parent555f69a2027ae1cb24107d86b35c3d8531e7e4c7 (diff)
downloadmpc-a7ca3303e0ecb5512e29a6bb3bcca448da4e24c9.tar.gz
[tests/] Fix data_check.tpl inclusion.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/branches/benchs_tests@1311 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r--tests/data_check.tpl4
-rw-r--r--tests/templates.h2
-rw-r--r--tests/tpow_fr_tmpl.c1
-rw-r--r--tests/tpow_ui_tmpl.c1
4 files changed, 5 insertions, 3 deletions
diff --git a/tests/data_check.tpl b/tests/data_check.tpl
index 0353bb9..6977f5a 100644
--- a/tests/data_check.tpl
+++ b/tests/data_check.tpl
@@ -12,7 +12,7 @@
reuse in functions with two output (like mpc_sin_cos) with this
system.
-Copyright (C) 2012 INRIA
+Copyright (C) 2012, 2013 INRIA
This file is part of GNU MPC.
@@ -30,8 +30,6 @@ You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see http://www.gnu.org/licenses/ .
*/
-#include "templates.h"
-
#ifndef MPC_FUNCTION_CALL
#error Define MPC_FUNCTION_CALL before including 'data_check.tpl'.
#endif
diff --git a/tests/templates.h b/tests/templates.h
index 84e74f3..ae493cf 100644
--- a/tests/templates.h
+++ b/tests/templates.h
@@ -112,6 +112,8 @@ void check_data (mpc_datafile_context_t* datafile_context,
mpc_fun_param_t* params, int index_reused_operand);
/* parameters templated functions */
+int data_check_template (const char* descr_file, const char * data_file);
+
void init_parameters (mpc_fun_param_t *params);
void clear_parameters (mpc_fun_param_t *params);
void print_parameter (mpc_fun_param_t *params, int index);
diff --git a/tests/tpow_fr_tmpl.c b/tests/tpow_fr_tmpl.c
index b71e020..6206ed5 100644
--- a/tests/tpow_fr_tmpl.c
+++ b/tests/tpow_fr_tmpl.c
@@ -18,6 +18,7 @@ You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see http://www.gnu.org/licenses/ .
*/
+#include "templates.h"
#include "mpc-tests.h"
static void
diff --git a/tests/tpow_ui_tmpl.c b/tests/tpow_ui_tmpl.c
index ed830eb..0966ccc 100644
--- a/tests/tpow_ui_tmpl.c
+++ b/tests/tpow_ui_tmpl.c
@@ -19,6 +19,7 @@ along with this program. If not, see http://www.gnu.org/licenses/ .
*/
#include <limits.h> /* for CHAR_BIT */
+#include "templates.h"
#include "mpc-tests.h"
static void