summaryrefslogtreecommitdiff
path: root/tests/autotest-freebsd.sh
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-17 07:23:37 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-17 07:23:37 +0000
commit2412872c09d83916faea53f66088b98027898e6d (patch)
tree652600a153bd3521c8bede2a0486dadc3271348b /tests/autotest-freebsd.sh
parent31c4cb2d8bcefcdcbbb1befcba7fdc6c92f5070a (diff)
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
Diffstat (limited to 'tests/autotest-freebsd.sh')
-rw-r--r--tests/autotest-freebsd.sh10
1 files changed, 10 insertions, 0 deletions
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