From 8b50d8c567ee107509f1c2187aefd391058aca35 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Thu, 13 May 2010 16:56:56 +0000 Subject: tests: Added Linux startup script git-svn-id: http://pugixml.googlecode.com/svn/trunk@424 99668b35-9821-0410-8761-19e4c4f06640 --- tests/autotest-linux.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/autotest-linux.sh (limited to 'tests') 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 -- cgit v1.2.3