From 0410a38e985e0862a9fd9abec017abffc4c5fc43 Mon Sep 17 00:00:00 2001 From: "Julian M. Kunkel" Date: Tue, 13 Apr 2021 11:01:30 +0200 Subject: [PATCH] IOR: add several sanity checks for stonewalling #345 --- src/ior.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ior.c b/src/ior.c index 011e7e3..cf96cd8 100755 --- a/src/ior.c +++ b/src/ior.c @@ -1442,6 +1442,14 @@ static void ValidateTests(IOR_param_t * test, MPI_Comm com) IOR_param_t defaults; init_IOR_Param_t(&defaults, com); + if (test->stoneWallingStatusFile && test->keepFile == 0) + ERR("a StoneWallingStatusFile is only sensible when splitting write/read into multiple executions of ior, please use -k"); + if (test->stoneWallingStatusFile && test->stoneWallingWearOut == 0 && test->writeFile) + ERR("the StoneWallingStatusFile is only sensible for a write test when using stoneWallingWearOut"); + if (test->deadlineForStonewalling == 0 && test->stoneWallingWearOut > 0) + ERR("the stoneWallingWearOut is only sensible when setting a stonewall deadline with -D"); + if (test->stoneWallingStatusFile && test->testscripts) + WARN("the StoneWallingStatusFile only preserves the last experiment, make sure that each run uses a separate status file!"); if (test->repetitions <= 0) WARN_RESET("too few test repetitions", test, &defaults, repetitions);