From 97ca6fbfe843bc995c6ea64c738f14071861ebd0 Mon Sep 17 00:00:00 2001 From: "Roy H. Stogner" Date: Fri, 14 Oct 2016 13:38:31 -0500 Subject: [PATCH] Skip AD tests without HAVE_METAPHYSICL --- tests/ad_cns.cpp | 13 +++++++++++++ tests/ad_cns_crossterm.cpp | 13 +++++++++++++ tests/ad_euler.cpp | 15 ++++++++++++++- tests/ad_ins.cpp | 13 +++++++++++++ 4 files changed, 53 insertions(+), 1 deletion(-) diff --git a/tests/ad_cns.cpp b/tests/ad_cns.cpp index 723ba67..38b925a 100644 --- a/tests/ad_cns.cpp +++ b/tests/ad_cns.cpp @@ -31,6 +31,10 @@ //-------------------------------------------------------------------------- #include +#include + +#ifdef HAVE_METAPHYSICL + #include #include "ad_masa.h" @@ -294,3 +298,12 @@ double evaluate_q (const NumberVector& xyz, const int ret) exit(1); } } + +#else // HAVE_METAPHYSICL + +int main(void) +{ + return 77; // Autotools code for "skip test" +} + +#endif // HAVE_METAPHYSICL diff --git a/tests/ad_cns_crossterm.cpp b/tests/ad_cns_crossterm.cpp index 84538a4..bb0c6a5 100644 --- a/tests/ad_cns_crossterm.cpp +++ b/tests/ad_cns_crossterm.cpp @@ -30,6 +30,10 @@ //-------------------------------------------------------------------------- #include +#include + +#ifdef HAVE_METAPHYSICL + #include #include "ad_masa.h" @@ -293,3 +297,12 @@ double evaluate_q (const NumberVector& xyz, const int ret) exit(1); } } + +#else // HAVE_METAPHYSICL + +int main(void) +{ + return 77; // Autotools code for "skip test" +} + +#endif // HAVE_METAPHYSICL diff --git a/tests/ad_euler.cpp b/tests/ad_euler.cpp index 35c8c9b..5ef3c98 100644 --- a/tests/ad_euler.cpp +++ b/tests/ad_euler.cpp @@ -31,8 +31,12 @@ //-------------------------------------------------------------------------- -#include #include +#include + +#ifdef HAVE_METAPHYSICL + +#include #include "ad_masa.h" typedef double RawScalar; @@ -232,3 +236,12 @@ double evaluate_q (const NumberVector& xyz, const int ret) } return 0; } + +#else // HAVE_METAPHYSICL + +int main(void) +{ + return 77; // Autotools code for "skip test" +} + +#endif // HAVE_METAPHYSICL diff --git a/tests/ad_ins.cpp b/tests/ad_ins.cpp index 97e3f64..b62ceac 100644 --- a/tests/ad_ins.cpp +++ b/tests/ad_ins.cpp @@ -31,6 +31,10 @@ //-------------------------------------------------------------------------- #include +#include + +#ifdef HAVE_METAPHYSICL + #include #include "ad_masa.h" @@ -219,3 +223,12 @@ double evaluate_q (const NumberVector& xyz) return raw_value(Q_rho_u[0]); } + +#else // HAVE_METAPHYSICL + +int main(void) +{ + return 77; // Autotools code for "skip test" +} + +#endif // HAVE_METAPHYSICL