tests: Final MacOS fixes

git-svn-id: http://pugixml.googlecode.com/svn/trunk@435 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
arseny.kapoulkine 2010-05-20 17:51:32 +00:00
parent ff27a85a2b
commit d3195470ba
3 changed files with 15 additions and 1 deletions

View file

@ -27,7 +27,7 @@ if ( $(toolset:I=^mingw) || $(toolset:I=^gcc) )
CCFLAGS += -fno-exceptions ;
}
if ( $(toolset:I=^mingw) )
if ( $(OS) != MACOSX )
{
LDFLAGS += -static-libgcc -static ;
}

12
tests/autotest-macos.sh Normal file
View file

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

View file

@ -23,6 +23,8 @@ sub prettyplatform
{
my $platform = shift;
return "macos32" if ($platform =~ /darwin/);
return "linux64" if ($platform =~ /64-linux/);
return "linux32" if ($platform =~ /86-linux/);