From 7680ae24a77a48ae8ebe025a9f6fc3564aa744a7 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 27 Jul 2020 15:37:23 +0200 Subject: Remove config.h from tests This is a relic from autotools, where config.h might add function definitions. The tests shouldn't be behaving differently based on the configuration (though perhaps tests might be enabled or disabled by the build system). Also: which config.h should it be? The top-level one, or libcrystfel's? --- tests/ambi_check.c | 5 ----- tests/cell_check.c | 5 ----- tests/cellcompare_check.c | 5 ----- tests/centering_check.c | 5 ----- tests/ev_enum1.c | 5 ----- tests/ev_enum2.c | 5 ----- tests/ev_enum3.c | 5 ----- tests/evparse1.c | 5 ----- tests/evparse2.c | 5 ----- tests/evparse3.c | 5 ----- tests/evparse4.c | 5 ----- tests/evparse5.c | 5 ----- tests/evparse6.c | 5 ----- tests/evparse7.c | 5 ----- tests/gpu_sim_check.c | 5 ----- tests/histogram.c | 4 ---- tests/histogram.h | 4 ---- tests/integration_check.c | 5 ----- tests/list_check.c | 5 ----- tests/polarisation_check.c | 5 ----- tests/prediction_gradient_check.c | 5 ----- tests/prof2d_check.c | 5 ----- tests/rational_check.c | 5 ----- tests/ring_check.c | 5 ----- tests/scaling_check.c | 5 ----- tests/spectrum_check.c | 5 ----- tests/symmetry_check.c | 5 ----- tests/transformation_check.c | 5 ----- tests/wavelength_geom.c | 5 ----- 29 files changed, 143 deletions(-) (limited to 'tests') diff --git a/tests/ambi_check.c b/tests/ambi_check.c index 03224ce6..5f13053a 100644 --- a/tests/ambi_check.c +++ b/tests/ambi_check.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include #include diff --git a/tests/cell_check.c b/tests/cell_check.c index 23f7245f..ec83680a 100644 --- a/tests/cell_check.c +++ b/tests/cell_check.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include #include diff --git a/tests/cellcompare_check.c b/tests/cellcompare_check.c index 695d6258..dea3eead 100644 --- a/tests/cellcompare_check.c +++ b/tests/cellcompare_check.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include #include diff --git a/tests/centering_check.c b/tests/centering_check.c index f418da50..4f6a9841 100644 --- a/tests/centering_check.c +++ b/tests/centering_check.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include #include diff --git a/tests/ev_enum1.c b/tests/ev_enum1.c index 67cccb5b..ce9a9d61 100644 --- a/tests/ev_enum1.c +++ b/tests/ev_enum1.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include #include diff --git a/tests/ev_enum2.c b/tests/ev_enum2.c index 3105f71f..1c1dd55a 100644 --- a/tests/ev_enum2.c +++ b/tests/ev_enum2.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include #include diff --git a/tests/ev_enum3.c b/tests/ev_enum3.c index 8af378e7..c6407ec7 100644 --- a/tests/ev_enum3.c +++ b/tests/ev_enum3.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include #include diff --git a/tests/evparse1.c b/tests/evparse1.c index 7b8799d6..2768b3cf 100644 --- a/tests/evparse1.c +++ b/tests/evparse1.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include #include diff --git a/tests/evparse2.c b/tests/evparse2.c index 6b81ae70..034b1672 100644 --- a/tests/evparse2.c +++ b/tests/evparse2.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include #include diff --git a/tests/evparse3.c b/tests/evparse3.c index a7d41629..5db1de8c 100644 --- a/tests/evparse3.c +++ b/tests/evparse3.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include diff --git a/tests/evparse4.c b/tests/evparse4.c index 7a975c96..13f096cf 100644 --- a/tests/evparse4.c +++ b/tests/evparse4.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include diff --git a/tests/evparse5.c b/tests/evparse5.c index 06daba13..7f81f47e 100644 --- a/tests/evparse5.c +++ b/tests/evparse5.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include diff --git a/tests/evparse6.c b/tests/evparse6.c index 63152dda..631db686 100644 --- a/tests/evparse6.c +++ b/tests/evparse6.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include diff --git a/tests/evparse7.c b/tests/evparse7.c index fca5055d..26f2dc41 100644 --- a/tests/evparse7.c +++ b/tests/evparse7.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include #include diff --git a/tests/gpu_sim_check.c b/tests/gpu_sim_check.c index 4424b68e..d8f85290 100644 --- a/tests/gpu_sim_check.c +++ b/tests/gpu_sim_check.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include diff --git a/tests/histogram.c b/tests/histogram.c index 3cccfaea..dfd59fee 100644 --- a/tests/histogram.c +++ b/tests/histogram.c @@ -26,10 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - #include #include #include diff --git a/tests/histogram.h b/tests/histogram.h index f0091bd7..7b295caa 100644 --- a/tests/histogram.h +++ b/tests/histogram.h @@ -29,10 +29,6 @@ #ifndef HISTOGRAM_H #define HISTOGRAM_H -#ifdef HAVE_CONFIG_H -#include -#endif - #ifdef __cplusplus extern "C" { #endif diff --git a/tests/integration_check.c b/tests/integration_check.c index b7deb5ca..8dcf5039 100644 --- a/tests/integration_check.c +++ b/tests/integration_check.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include diff --git a/tests/list_check.c b/tests/list_check.c index 4a98e20d..4eac2650 100644 --- a/tests/list_check.c +++ b/tests/list_check.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include diff --git a/tests/polarisation_check.c b/tests/polarisation_check.c index dcad4304..1ebc41b7 100644 --- a/tests/polarisation_check.c +++ b/tests/polarisation_check.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include diff --git a/tests/prediction_gradient_check.c b/tests/prediction_gradient_check.c index 38601719..6d8e596a 100644 --- a/tests/prediction_gradient_check.c +++ b/tests/prediction_gradient_check.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include #include diff --git a/tests/prof2d_check.c b/tests/prof2d_check.c index a32adaa0..f291c915 100644 --- a/tests/prof2d_check.c +++ b/tests/prof2d_check.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include diff --git a/tests/rational_check.c b/tests/rational_check.c index fc48b709..6ad4df8f 100644 --- a/tests/rational_check.c +++ b/tests/rational_check.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include #include diff --git a/tests/ring_check.c b/tests/ring_check.c index 89978ad8..dac0d90f 100644 --- a/tests/ring_check.c +++ b/tests/ring_check.c @@ -27,11 +27,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include diff --git a/tests/scaling_check.c b/tests/scaling_check.c index 5a60bf46..05887dde 100644 --- a/tests/scaling_check.c +++ b/tests/scaling_check.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include diff --git a/tests/spectrum_check.c b/tests/spectrum_check.c index b20aa06e..920a680a 100644 --- a/tests/spectrum_check.c +++ b/tests/spectrum_check.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include #include diff --git a/tests/symmetry_check.c b/tests/symmetry_check.c index 5309206c..be9312e1 100644 --- a/tests/symmetry_check.c +++ b/tests/symmetry_check.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include #include diff --git a/tests/transformation_check.c b/tests/transformation_check.c index bb835f4d..95b3a7b2 100644 --- a/tests/transformation_check.c +++ b/tests/transformation_check.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include #include diff --git a/tests/wavelength_geom.c b/tests/wavelength_geom.c index 3a371ad1..8bf86a74 100644 --- a/tests/wavelength_geom.c +++ b/tests/wavelength_geom.c @@ -26,11 +26,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include -#endif - - #include #include #include -- cgit v1.2.3