summaryrefslogtreecommitdiff
path: root/test/e2e/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'test/e2e/hooks')
-rw-r--r--test/e2e/hooks/checkhook.json5
-rwxr-xr-xtest/e2e/hooks/checkhook.sh4
2 files changed, 9 insertions, 0 deletions
diff --git a/test/e2e/hooks/checkhook.json b/test/e2e/hooks/checkhook.json
new file mode 100644
index 000000000..5a9bc86d1
--- /dev/null
+++ b/test/e2e/hooks/checkhook.json
@@ -0,0 +1,5 @@
+{
+ "cmd" : [".*"],
+ "hook" : "/tmp/checkhook.sh",
+ "stage" : [ "prestart" ]
+}
diff --git a/test/e2e/hooks/checkhook.sh b/test/e2e/hooks/checkhook.sh
new file mode 100755
index 000000000..8b755cb40
--- /dev/null
+++ b/test/e2e/hooks/checkhook.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+echo $@ >> /run/hookscheck
+read line
+echo $line >> /run/hookscheck