Commit b4be4fb9 authored by Christoph Grueninger's avatar Christoph Grueninger
Browse files

Add warning and output for every skipped test.

(reviewed by timok)


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@15127 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent d39008b6
......@@ -225,12 +225,10 @@ int main(int argc, char** argv)
return 3;
}
#else
#warning You need to have ALUGrid or UG installed to run this test
int main()
{
std::cerr << "You need to have ALUGrid or UG installed to run this test\n";
#warning You need to have dune-ALUGrid or UG installed to run this test
std::cerr << "You need to have dune-ALUGrid or UG installed to run this test\n";
return 77;
}
#endif // HAVE_ALUGRID || HAVE_DUNE_ALUGRID || HAVE_UG
......@@ -177,14 +177,12 @@ int main(int argc, char** argv)
#else
#warning You need to have ALUGrid installed to run this test
#include <iostream>
int main()
{
std::cerr << "You need to have ALUGrid installed to run this test\n";
#warning You need to have dune-ALUGrid installed to run this test
std::cerr << "You need to have dune-ALUGrid installed to run this test\n";
return 77;
}
#endif
......@@ -58,13 +58,12 @@ int main(int argc, char** argv)
}
#else
#warning You need to have ALUGrid installed to run this test
#include <iostream>
int main()
{
std::cerr << "You need to have ALUGrid installed to run this test\n";
#warning You need to have dune-ALUGrid installed to run this test
std::cerr << "You need to have dune-ALUGrid installed to run this test\n";
return 77;
}
#endif // HAVE_ALUGRID
......@@ -151,14 +151,12 @@ int main(int argc, char** argv)
#else
#warning You need to have ALUGrid installed to run this test
#include <iostream>
int main()
{
std::cerr << "You need to have ALUGrid installed to run this test\n";
#warning You need to have dune-ALUGrid installed to run this test
std::cerr << "You need to have dune-ALUGrid installed to run this test\n";
return 77;
}
#endif
......@@ -60,7 +60,7 @@ int main(int argc, char** argv)
return Dumux::start<TypeTag>(argc, argv, usage);
#else
#warning ALUGrid needed for this test.
std::cout << "ALUGrid needed for this test. Aborting." << std::endl;
std::cerr << "ALUGrid needed for this test. Aborting." << std::endl;
return 77;
#endif
}
......@@ -63,13 +63,12 @@ int main(int argc, char** argv)
#else
#warning You need to have ALUGrid installed to run this test
#include <iostream>
int main()
{
std::cerr << "You need to have ALUGrid installed to run this test\n";
#warning You need to have dune-ALUGrid installed to run this test
std::cerr << "You need to have dune-ALUGrid installed to run this test\n";
return 77;
}
#endif // HAVE_ALUGRID || HAVE_DUNE_ALUGRID
......@@ -55,8 +55,8 @@ int main(int argc, char** argv)
typedef TTAG(NavierStokesTestProblem) ProblemTypeTag;
return Dumux::start<ProblemTypeTag>(argc, argv, usage);
#else
#warning "You need to have SuperLU and ALUGrid or UG to run this test."
std::cout << "You need to have SuperLU and ALUGrid or UG to run this test." << std::endl;
#warning "You need to have SuperLU and dune-ALUGrid or UG to run this test."
std::cerr << "You need to have SuperLU and dune-ALUGrid or UG to run this test." << std::endl;
return 77;
#endif
}
......@@ -104,12 +104,11 @@ int main(int argc, char** argv) {
#else // HAVE_DUNE_PDELAB
#warning You need to have dune-pdelab (>= 2.0) installed to run this test.
#include <iostream>
int main()
{
#warning You need to have dune-pdelab (>= 2.0) installed to run this test.
std::cerr << "You need to have dune-pdelab (>= 2.0) installed to run this test.\n";
return 77;
}
......
......@@ -63,7 +63,8 @@ int main(int argc, char** argv)
typedef TTAG(OnePOneDThreeDTestBoxProblem) ProblemTypeTag;
return Dumux::start<ProblemTypeTag>(argc, argv, usage);
#else
std::cout << "Test skipped, it needs Alberta!" << std::endl;
#warning External grid Alberta needed to run this example.
std::cerr << "Test skipped, it needs Alberta!" << std::endl;
return 77;
#endif
}
......@@ -63,7 +63,8 @@ int main(int argc, char** argv)
typedef TTAG(OnePTwoDThreeDTestBoxProblem) ProblemTypeTag;
return Dumux::start<ProblemTypeTag>(argc, argv, usage);
#else
std::cout << "Test skipped, it needs Alberta!" << std::endl;
#warning External grid Alberta needed to run this example.
std::cerr << "Test skipped, it needs Alberta!" << std::endl;
return 77;
#endif
}
......@@ -63,7 +63,8 @@ int main(int argc, char** argv)
typedef TTAG(OnePOneDThreeDTestCCProblem) ProblemTypeTag;
return Dumux::start<ProblemTypeTag>(argc, argv, usage);
#else
std::cout << "Test skipped, it needs Alberta!" << std::endl;
#warning External grid Alberta needed to run this example.
std::cerr << "Test skipped, it needs Alberta!" << std::endl;
return 77;
#endif
}
......@@ -63,7 +63,8 @@ int main(int argc, char** argv)
typedef TTAG(OnePTwoDThreeDTestCCProblem) ProblemTypeTag;
return Dumux::start<ProblemTypeTag>(argc, argv, usage);
#else
std::cout << "Test skipped, it needs Alberta!" << std::endl;
#warning External grid Alberta needed to run this example.
std::cerr << "Test skipped, it needs Alberta!" << std::endl;
return 77;
#endif
}
......@@ -65,6 +65,8 @@ int main(int argc, char** argv)
typedef TTAG(LensBoxAdaptiveProblem) TypeTag;
return Dumux::start<TypeTag>(argc, argv, usage);
#else
#warning You need dune-ALUGrid to run this test.
std::cerr << "You need dune-ALUGrid to run this test." << std::endl;
return 77;
#endif
}
......@@ -66,6 +66,8 @@ int main(int argc, char** argv)
typedef TTAG(LensCCAdaptiveProblem) TypeTag;
return Dumux::start<TypeTag>(argc, argv, usage);
#else
#warning You need dune-ALUGrid to run this test.
std::cerr << "You need dune-ALUGrid to run this test." << std::endl;
return 77;
#endif
......
......@@ -62,11 +62,10 @@ int main(int argc, char** argv)
}
#else // HAVE_UG
int main(int argc, char** argv)
{
std::cout << "External grid UG needed to run this example." << std::endl;
#warning External grid UG needed to run this example.
std::cerr << "External grid UG needed to run this example." << std::endl;
return 77;
}
#endif // HAVE_UG
\ No newline at end of file
......@@ -67,10 +67,12 @@ void usage(const char *progName, const std::string &errorMsg)
int main(int argc, char** argv)
{
#if !DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS
std::cout << "Test skipped, it needs experimental grid extensions, see optim.opts or debug.opts." << std::endl;
#warning Test needs experimental grid extensions.
std::cerr << "Test skipped, it needs experimental grid extensions, see optim.opts or debug.opts." << std::endl;
return 77;
#elif !(HAVE_ALUGRID || HAVE_DUNE_ALUGRID)
std::cout << "Test skipped, it needs ALUGrid, see optim.opts or debug.opts." << std::endl;
#warning You need to have dune-ALUGrid installed to run this test.
std::cerr << "You need to have dune-ALUGrid installed to run this test." << std::endl;
return 77;
#else
typedef TTAG(HeterogeneousBoxProblem) ProblemTypeTag;
......
......@@ -68,10 +68,12 @@ void usage(const char *progName, const std::string &errorMsg)
int main(int argc, char** argv)
{
#if !DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS
std::cout << "Test skipped, it needs experimental grid extensions, see optim.opts or debug.opts." << std::endl;
#warning Test needs experimental grid extensions.
std::cerr << "Test skipped, it needs experimental grid extensions, see optim.opts or debug.opts." << std::endl;
return 77;
#elif !(HAVE_ALUGRID || HAVE_DUNE_ALUGRID)
std::cout << "Test skipped, it needs ALUGrid, see optim.opts or debug.opts." << std::endl;
#warning You need to have dune-ALUGrid installed to run this test.
std::cerr << "You need to have dune-ALUGrid installed to run this test." << std::endl;
return 77;
#else
typedef TTAG(HeterogeneousNIBoxProblem) ProblemTypeTag;
......
......@@ -67,10 +67,12 @@ void usage(const char *progName, const std::string &errorMsg)
int main(int argc, char** argv)
{
#if !DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS
std::cout << "Test skipped, it needs experimental grid extensions, see optim.opts or debug.opts." << std::endl;
#warning Test needs experimental grid extensions.
std::cerr << "Test skipped, it needs experimental grid extensions, see optim.opts or debug.opts." << std::endl;
return 77;
#elif !(HAVE_ALUGRID || HAVE_DUNE_ALUGRID)
std::cout << "Test skipped, it needs ALUGrid, see optim.opts or debug.opts." << std::endl;
#warning You need to have dune-ALUGrid installed to run this test.
std::cerr << "You need to have dune-ALUGrid installed to run this test." << std::endl;
return 77;
#else
typedef TTAG(HeterogeneousCCProblem) ProblemTypeTag;
......
......@@ -68,10 +68,12 @@ void usage(const char *progName, const std::string &errorMsg)
int main(int argc, char** argv)
{
#if !DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS
std::cout << "Test skipped, it needs experimental grid extensions, see optim.opts or debug.opts." << std::endl;
#warning Test needs experimental grid extensions.
std::cerr << "Test skipped, it needs experimental grid extensions, see optim.opts or debug.opts." << std::endl;
return 77;
#elif !(HAVE_ALUGRID || HAVE_DUNE_ALUGRID)
std::cout << "Test skipped, it needs ALUGrid, see optim.opts or debug.opts." << std::endl;
#warning You need to have dune-ALUGrid installed to run this test.
std::cerr << "You need to have dune-ALUGrid installed to run this test." << std::endl;
return 77;
#else
typedef TTAG(HeterogeneousNICCProblem) ProblemTypeTag;
......
......@@ -257,7 +257,8 @@ int start(int argc, char **argv)
int main(int argc, char** argv)
{
#if !HAVE_UG && !(HAVE_ALUGRID || HAVE_DUNE_ALUGRID)
std::cout<<"Evaporation Atmosphere not built, needs either UG or ALU for the log mesh." << std::endl;
#warning Evaporation Atmosphere not built, needs either UG or dune-ALUGrid for the log mesh.
std::cerr << "Evaporation Atmosphere not built, needs either UG or dune-ALUGrid for the log mesh." << std::endl;
return 77;
#else
typedef TTAG(EvaporationAtmosphereProblem) ProblemTypeTag;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment