summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-13 16:56:56 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-13 16:56:56 +0000
commit8b50d8c567ee107509f1c2187aefd391058aca35 (patch)
tree15c0647136500d2ee2422257569d723acab508f4
parentd520ce55d9376855c82cecc596a00a86eafea062 (diff)
tests: Added Linux startup script
git-svn-id: http://pugixml.googlecode.com/svn/trunk@424 99668b35-9821-0410-8761-19e4c4f06640
-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