tests: Added Linux startup script
git-svn-id: http://pugixml.googlecode.com/svn/trunk@424 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
d520ce55d9
commit
8b50d8c567
11
tests/autotest-linux.sh
Normal file
11
tests/autotest-linux.sh
Normal file
@ -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
|
||||||
Loading…
Reference in New Issue
Block a user