From d835b2cae8abc71958b69362162e6a70c3d7ef63 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 08:48:59 +0200 Subject: Adding upstream version 4.6.0. Signed-off-by: Daniel Baumann --- test/crm-interface | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 test/crm-interface (limited to 'test/crm-interface') diff --git a/test/crm-interface b/test/crm-interface new file mode 100644 index 0000000..b825dab --- /dev/null +++ b/test/crm-interface @@ -0,0 +1,89 @@ +# Copyright (C) 2008-2011 Dejan Muhamedagic +# See COPYING for license information. + +CIB=__crmsh_regtest + +filter_epoch() { + sed '/^/p' | filter_date | filter_epoch +} + +crm_setup() { + $CRM_NO_REG options reset + $CRM_NO_REG options check-frequency on-verify + $CRM_NO_REG options check-mode relaxed + $CRM_NO_REG cib delete $CIB >/dev/null 2>&1 +} + +crm_mksample() { + $CRM_NO_REG cib new $CIB empty >/dev/null 2>&1 + $CRM_NO_REG -c $CIB<