diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:50:17 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:50:17 +0000 |
commit | 86ed03f8adee56c050c73018537371c230a664a6 (patch) | |
tree | eae3d04cdf1c49848e5a671327ab38297f4acb0d /tests/test.py | |
parent | Initial commit. (diff) | |
download | fence-agents-86ed03f8adee56c050c73018537371c230a664a6.tar.xz fence-agents-86ed03f8adee56c050c73018537371c230a664a6.zip |
Adding upstream version 4.12.1.upstream/4.12.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | tests/test.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/test.py b/tests/test.py new file mode 100755 index 0000000..8e82ed9 --- /dev/null +++ b/tests/test.py @@ -0,0 +1,21 @@ +#!/usr/bin/python + +from fence_testing import test_action + +def main(): + ## @todo: utility1 - run single 'agent' 'action' 'method' + ## @todo: utility2 - run complex tests (using utility1?) -> file with test suites + + AGENTDEF = "devices.d/true.cfg" + DUMMYDEF = "devices.d/dummy.cfg" + + ACT_STATUS = "actions.d/status.cfg" + ACT_ONOFF = "actions.d/power-on-off.cfg" + +# test_action(AGENTDEF, ACTIONDEF, "stdin") +# test_action(AGENTDEF, ACTIONDEF, "getopt") + test_action(DUMMYDEF, ACT_STATUS, "getopt") + test_action(DUMMYDEF, ACT_ONOFF, "getopt") + +if __name__ == "__main__": + main()
\ No newline at end of file |