summaryrefslogtreecommitdiffstats
path: root/tests/test-multi-apc2.py
blob: 7ab9754ddc5e3117a241c272dc94f3b69becbe6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/python

from fence_testing import test_action

def main():
	DEVICE = "devices.d/multi-apc-v2.cfg"

	ACT_STATUS = "actions.d/status.cfg"
	ACT_ONOFF = "actions.d/power-on-off.cfg"
	ACT_LIST = "actions.d/list.cfg"

	test_action(DEVICE, ACT_STATUS, "getopt")
	test_action(DEVICE, ACT_ONOFF, "stdin")
	test_action(DEVICE, ACT_LIST, "getopt")

if __name__ == "__main__":
	main()