summaryrefslogtreecommitdiff
path: root/tests/autotest-macos.sh
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-20 17:51:32 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-20 17:51:32 +0000
commitd3195470bae88cabac134e2840fcfb7d8d790cd5 (patch)
tree3677a11012f5ec5e5d2debff90aaa5417704c224 /tests/autotest-macos.sh
parentff27a85a2b7663bc50c7e9f28d1d97c63d4a757f (diff)
tests: Final MacOS fixes
git-svn-id: http://pugixml.googlecode.com/svn/trunk@435 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/autotest-macos.sh')
-rw-r--r--tests/autotest-macos.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/autotest-macos.sh b/tests/autotest-macos.sh
new file mode 100644
index 0000000..fc21fc8
--- /dev/null
+++ b/tests/autotest-macos.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+# put this to /Library/StartupItems/pugixml-autotest/pugixml-autotest, then create
+# file StartupParameters.plist in the same folder with the following contents:
+# <plist><dict><key>Provides</key><array><string>pugixml-autotest</string></array></dict></plist>
+# don't forget to chmod +x pugixml-autotest and to replace /Users/USERNAME with actual path
+
+if [ "$1" = "start" ]
+then
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
+ cd /Users/USERNAME/pugixml
+ perl tests/autotest-remote-host.pl "shutdown -h now" &
+fi