tests: Final MacOS fixes
git-svn-id: http://pugixml.googlecode.com/svn/trunk@435 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
ff27a85a2b
commit
d3195470ba
@ -27,7 +27,7 @@ if ( $(toolset:I=^mingw) || $(toolset:I=^gcc) )
|
|||||||
CCFLAGS += -fno-exceptions ;
|
CCFLAGS += -fno-exceptions ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $(toolset:I=^mingw) )
|
if ( $(OS) != MACOSX )
|
||||||
{
|
{
|
||||||
LDFLAGS += -static-libgcc -static ;
|
LDFLAGS += -static-libgcc -static ;
|
||||||
}
|
}
|
||||||
|
|||||||
12
tests/autotest-macos.sh
Normal file
12
tests/autotest-macos.sh
Normal 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
|
||||||
@ -23,6 +23,8 @@ sub prettyplatform
|
|||||||
{
|
{
|
||||||
my $platform = shift;
|
my $platform = shift;
|
||||||
|
|
||||||
|
return "macos32" if ($platform =~ /darwin/);
|
||||||
|
|
||||||
return "linux64" if ($platform =~ /64-linux/);
|
return "linux64" if ($platform =~ /64-linux/);
|
||||||
return "linux32" if ($platform =~ /86-linux/);
|
return "linux32" if ($platform =~ /86-linux/);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user