From 0b3db29bd5f44daa0abb64ba4a7bb5e5cad2a6ac Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Tue, 7 Jan 2020 16:30:23 +1100 Subject: [PATCH] ctdb-tests: Add some tool unit tests to ensure that timeouts work Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs Autobuild-User(master): Amitay Isaacs Autobuild-Date(master): Mon Feb 10 05:34:08 UTC 2020 on sn-devel-184 --- ctdb/tests/UNIT/tool/ctdb.getpid.010.sh | 25 +++++++++++++++++++++++++ ctdb/tests/UNIT/tool/ctdb.lvs.010.sh | 25 +++++++++++++++++++++++++ ctdb/tests/UNIT/tool/ctdb.natgw.010.sh | 25 +++++++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100755 ctdb/tests/UNIT/tool/ctdb.getpid.010.sh create mode 100755 ctdb/tests/UNIT/tool/ctdb.lvs.010.sh create mode 100755 ctdb/tests/UNIT/tool/ctdb.natgw.010.sh diff --git a/ctdb/tests/UNIT/tool/ctdb.getpid.010.sh b/ctdb/tests/UNIT/tool/ctdb.getpid.010.sh new file mode 100755 index 00000000000..6e220a2f8d7 --- /dev/null +++ b/ctdb/tests/UNIT/tool/ctdb.getpid.010.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +. "${TEST_SCRIPTS_DIR}/unit.sh" + +define_test "3 nodes, all ok, GET_PID control times out" + +setup_lvs <