summarylogtreecommitdiffstats
path: root/test_hook
diff options
context:
space:
mode:
authormwberry2016-11-12 15:21:42 -0800
committermwberry2016-11-12 18:33:30 -0800
commitd3fce84a07960300a827874aa82a214f88c9f49f (patch)
tree64763364135afdd90760c84bba631dcc2253b9a4 /test_hook
parentd334424416582ded5ede4d8f2dffc8c175aaafd9 (diff)
downloadaur-d3fce84a07960300a827874aa82a214f88c9f49f.tar.gz
init hook
Diffstat (limited to 'test_hook')
-rwxr-xr-xtest_hook11
1 files changed, 11 insertions, 0 deletions
diff --git a/test_hook b/test_hook
new file mode 100755
index 000000000000..b49c6e5722df
--- /dev/null
+++ b/test_hook
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# Simply a test harness to execute the init hook
+# while developing
+
+
+/usr/lib/initcpio/busybox ash <<TEST_HARNESS
+ source ./hook
+
+ run_hook "$1"
+TEST_HARNESS