Adds a build file for cppunit (http://cppunit.sf.net) v
1.9.14 to use as a sanity test. As initially committed, it
apparently works for gcc (Linux and Mac but not
Cygwin) and msvc and stalls for Borland.
Append to existing LD_LIBRARY_PATH instead of replacing it
when running shared cppunittestmain since some Solaris
machines (particularly the SF compile farm) need it to find
libstdc++.
Index: cppunit.ant
=====================
RCS file: /cvsroot/ant-contrib/cpptasks/samples/cppunit.ant,v
retrieving revision 1.3
diff -u -r1.3 cppunit.ant
--- cppunit.ant 23 Apr 2004 21:15:45 -0000 1.3
+++ cppunit.ant 26 Apr 2004 02:58:47 -0000
@@ -44,8 +44,10 @@
<echo message="test-all will pass for gcc and icc
on Linux"/>
<echo message="test-all-but-qt will pass for gcc on
Mac OS/X"/>
<echo message="test-all-but-qt will pass for msvc
on Windows"/>
- <echo message="test-all-but-qt will stall for bcc on
Windows"/>
- <echo message="test-all-but-qt will fail for Cygwin
gcc"/>
+ <echo message="all-but-qt will pass for bcc but
test that divide by zero will fail"/>
+ <echo message="test-all-but-qt will pass for gcc
and CC on Solaris,"/>
+ <echo message="but may be necessary to
add /usr/ccs/bin so "ar" may be found and"/>
+ <echo message="add the location of libstdc++ to
LD_LIBRARY_PATH"/>
</target>
<!--
@@ -127,6 +129,9 @@
</and>
</or>
</condition>
+ <property environment="env"/>
+ <!-- in case not set in environment, use an
insignificant value -->
+ <property name="env.LD_LIBRARY_PATH" value="."/>
</target>
Build file for cppunit
Logged In: YES
user_id=27193
Append to existing LD_LIBRARY_PATH instead of replacing it
when running shared cppunittestmain since some Solaris
machines (particularly the SF compile farm) need it to find
libstdc++.
Index: cppunit.ant
=====================
RCS file: /cvsroot/ant-contrib/cpptasks/samples/cppunit.ant,v
retrieving revision 1.3
diff -u -r1.3 cppunit.ant
--- cppunit.ant 23 Apr 2004 21:15:45 -0000 1.3
+++ cppunit.ant 26 Apr 2004 02:58:47 -0000
@@ -44,8 +44,10 @@
<echo message="test-all will pass for gcc and icc
on Linux"/>
<echo message="test-all-but-qt will pass for gcc on
Mac OS/X"/>
<echo message="test-all-but-qt will pass for msvc
on Windows"/>
- <echo message="test-all-but-qt will stall for bcc on
Windows"/>
- <echo message="test-all-but-qt will fail for Cygwin
gcc"/>
+ <echo message="all-but-qt will pass for bcc but
test that divide by zero will fail"/>
+ <echo message="test-all-but-qt will pass for gcc
and CC on Solaris,"/>
+ <echo message="but may be necessary to
add /usr/ccs/bin so "ar" may be found and"/>
+ <echo message="add the location of libstdc++ to
LD_LIBRARY_PATH"/>
</target>
<!--
@@ -127,6 +129,9 @@
</and>
</or>
</condition>
+ <property environment="env"/>
+ <!-- in case not set in environment, use an
insignificant value -->
+ <property name="env.LD_LIBRARY_PATH" value="."/>
</target>
<target name="clean">
@@ -240,7 +245,7 @@
<exec dir="${build.dir}"
executable="${build.dir}/lib/cppunittestmain"
failonerror="true">
- <env key="LD_LIBRARY_PATH"
value="${build.dir}/lib"/>
+ <env key="LD_LIBRARY_PATH"
value="${build.dir}/lib:${env.LD_LIBRARY_PATH}"/>
</exec>
</target>