Skip to content

Commit

Permalink
Skip AD tests without HAVE_METAPHYSICL
Browse files Browse the repository at this point in the history
  • Loading branch information
roystgnr committed Nov 12, 2016
1 parent ce8b4e0 commit 97ca6fb
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 1 deletion.
13 changes: 13 additions & 0 deletions tests/ad_cns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
//--------------------------------------------------------------------------

#include <iostream>
#include <config.h>

#ifdef HAVE_METAPHYSICL

#include <tests.h>
#include "ad_masa.h"

Expand Down Expand Up @@ -294,3 +298,12 @@ double evaluate_q (const NumberVector<NDIM, ADScalar>& xyz, const int ret)
exit(1);
}
}

#else // HAVE_METAPHYSICL

int main(void)
{
return 77; // Autotools code for "skip test"
}

#endif // HAVE_METAPHYSICL
13 changes: 13 additions & 0 deletions tests/ad_cns_crossterm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
//--------------------------------------------------------------------------

#include <iostream>
#include <config.h>

#ifdef HAVE_METAPHYSICL

#include <tests.h>
#include "ad_masa.h"

Expand Down Expand Up @@ -293,3 +297,12 @@ double evaluate_q (const NumberVector<NDIM, ADScalar>& xyz, const int ret)
exit(1);
}
}

#else // HAVE_METAPHYSICL

int main(void)
{
return 77; // Autotools code for "skip test"
}

#endif // HAVE_METAPHYSICL
15 changes: 14 additions & 1 deletion tests/ad_euler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@
//--------------------------------------------------------------------------


#include <tests.h>
#include <iostream>
#include <config.h>

#ifdef HAVE_METAPHYSICL

#include <tests.h>
#include "ad_masa.h"

typedef double RawScalar;
Expand Down Expand Up @@ -232,3 +236,12 @@ double evaluate_q (const NumberVector<NDIM, ADScalar>& xyz, const int ret)
}
return 0;
}

#else // HAVE_METAPHYSICL

int main(void)
{
return 77; // Autotools code for "skip test"
}

#endif // HAVE_METAPHYSICL
13 changes: 13 additions & 0 deletions tests/ad_ins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
//--------------------------------------------------------------------------

#include <iostream>
#include <config.h>

#ifdef HAVE_METAPHYSICL

#include <tests.h>
#include "ad_masa.h"

Expand Down Expand Up @@ -219,3 +223,12 @@ double evaluate_q (const NumberVector<NDIM, RawScalar>& xyz)

return raw_value(Q_rho_u[0]);
}

#else // HAVE_METAPHYSICL

int main(void)
{
return 77; // Autotools code for "skip test"
}

#endif // HAVE_METAPHYSICL

0 comments on commit 97ca6fb

Please sign in to comment.