summaryrefslogtreecommitdiffstats
path: root/tests/actions.d
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/actions.d/list.cfg2
-rw-r--r--tests/actions.d/power-on-off.cfg2
-rw-r--r--tests/actions.d/sleep.cfg2
-rw-r--r--tests/actions.d/status.cfg2
4 files changed, 8 insertions, 0 deletions
diff --git a/tests/actions.d/list.cfg b/tests/actions.d/list.cfg
new file mode 100644
index 0000000..b7ed552
--- /dev/null
+++ b/tests/actions.d/list.cfg
@@ -0,0 +1,2 @@
+name = "List plugs and check port 6"
+actions = [ { "command" : "list", "return_code" : "^0$" } ]
diff --git a/tests/actions.d/power-on-off.cfg b/tests/actions.d/power-on-off.cfg
new file mode 100644
index 0000000..d9df57a
--- /dev/null
+++ b/tests/actions.d/power-on-off.cfg
@@ -0,0 +1,2 @@
+name = "Power ON & OFF"
+actions = [ { "command" : "on", "return_code" : "^0$" }, { "command" : "status", "return_code" : "^0$" }, { "command" : "off", "return_code" : "^0$" }, { "command" : "status", "return_code" : "^2$" } ]
diff --git a/tests/actions.d/sleep.cfg b/tests/actions.d/sleep.cfg
new file mode 100644
index 0000000..c0fad72
--- /dev/null
+++ b/tests/actions.d/sleep.cfg
@@ -0,0 +1,2 @@
+name = "Pure Sleep"
+actions = [ { "command" : "sleep(1)", "return_code" : "^0$" }, { "command" : "sleep(3)", "return_code" : "^0$" }, { "command" : "sleep(5)", "return_code" : "^0$" } ]
diff --git a/tests/actions.d/status.cfg b/tests/actions.d/status.cfg
new file mode 100644
index 0000000..760f94b
--- /dev/null
+++ b/tests/actions.d/status.cfg
@@ -0,0 +1,2 @@
+name = "Simple Status"
+actions = [ { "command" : "status", "return_code" : "^[02]$" }, { "command" : "sleep(1)", "return_code" : "^0$" } ]