From 2412872c09d83916faea53f66088b98027898e6d Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Mon, 17 May 2010 07:23:37 +0000 Subject: tests: Fixed Linux startup scripts (line endings), added FreeBSD startup script git-svn-id: http://pugixml.googlecode.com/svn/trunk@426 99668b35-9821-0410-8761-19e4c4f06640 --- tests/autotest-freebsd.sh | 10 ++++++++++ tests/autotest-linux.sh | 22 +++++++++++----------- 2 files changed, 21 insertions(+), 11 deletions(-) create mode 100644 tests/autotest-freebsd.sh (limited to 'tests') diff --git a/tests/autotest-freebsd.sh b/tests/autotest-freebsd.sh new file mode 100644 index 0000000..ccb5c6c --- /dev/null +++ b/tests/autotest-freebsd.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# put this to /etc/rc.d/pugixml-autotest +# don't forget to chmod +x pugixml-autotest and to replace /home/USERNAME with actual path + +if [ "$1" = "start" -o "$1" = "faststart" ] +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 diff --git a/tests/autotest-linux.sh b/tests/autotest-linux.sh index 49088d6..843fa47 100644 --- a/tests/autotest-linux.sh +++ b/tests/autotest-linux.sh @@ -1,11 +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 +#!/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