summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/autotest-linux.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/autotest-linux.sh b/tests/autotest-linux.sh
new file mode 100644
index 0000000..49088d6
--- /dev/null
+++ b/tests/autotest-linux.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+# put this to /etc/init.d/pugixml-autotest.sh, then launch
+# sudo update-rc.d pugixml-autotest.sh defaults 80
+# don't forget to chmod +x pugixml-autotest.sh and to replace /home/USERNAME with actual path
+
+if [ "$1" = "start" ]
+then
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
+ cd /home/USERNAME/pugixml
+ perl tests/autotest-remote-host.pl "shutdown -P now" &
+fi