aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-10 17:13:56 +0200
committerThomas White <taw@physics.org>2020-08-10 17:13:56 +0200
commit5deab80f3d11bc3cda4e912f2b26580f3156728e (patch)
tree4760ba64e914f09312bf9f856d2fac52051937fa
parent76d06dbf880d376ccb12c3eeaa64dceeb2409781 (diff)
polarisation_check: Fit into timeout
However, this test doesn't actually test anything. A comparison against a reference image would be good.
-rw-r--r--tests/meson.build3
-rw-r--r--tests/polarisation_check.c4
-rw-r--r--tests/polarisation_check.geom8
3 files changed, 8 insertions, 7 deletions
diff --git a/tests/meson.build b/tests/meson.build
index 968bc39f..5c60d484 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -77,7 +77,8 @@ exe = executable('polarisation_check',
['polarisation_check.c'],
dependencies : [libcrystfeldep, mdep, gsldep])
geom = files('polarisation_check.geom')
-test('polarisation_check', exe, args: [geom])
+test('polarisation_check', exe, args: [geom],
+ timeout: 60)
# Event enumeration tests
diff --git a/tests/polarisation_check.c b/tests/polarisation_check.c
index 60c3770c..3f4d57e4 100644
--- a/tests/polarisation_check.c
+++ b/tests/polarisation_check.c
@@ -56,8 +56,8 @@ int main(int argc, char *argv[])
const int ntrial = 1000;
/* NB must match polarisation_check.geom */
- const int w = 512;
- const int h = 512;
+ const int w = 256;
+ const int h = 256;
rng = gsl_rng_alloc(gsl_rng_mt19937);
diff --git a/tests/polarisation_check.geom b/tests/polarisation_check.geom
index 13ae073b..db733131 100644
--- a/tests/polarisation_check.geom
+++ b/tests/polarisation_check.geom
@@ -2,11 +2,11 @@ photon_energy = 9 keV
bandwidth = 0.0001
panel0/min_fs = 0
-panel0/max_fs = 511
+panel0/max_fs = 255
panel0/min_ss = 0
-panel0/max_ss = 511
-panel0/corner_x = -256.0
-panel0/corner_y = -256.0
+panel0/max_ss = 255
+panel0/corner_x = -128.0
+panel0/corner_y = -128.0
panel0/clen = 20 mm
panel0/res = 9090.91
panel0/adu_per_photon = 1