0
0
mirror of https://github.com/zeux/pugixml.git synced 2024-12-27 13:33:17 +08:00

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
This commit is contained in:
arseny.kapoulkine 2010-05-17 07:23:37 +00:00
parent 31c4cb2d8b
commit 2412872c09
2 changed files with 21 additions and 11 deletions

10
tests/autotest-freebsd.sh Normal file
View File

@ -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

View File

@ -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