Difference between revisions of "Test Cleanup"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Pre-Installed OOo)
(Smoke Test)
Line 34: Line 34:
 
* '''TODO:''' Dynamically create <code>smoketestdoc.sxw</code>?
 
* '''TODO:''' Dynamically create <code>smoketestdoc.sxw</code>?
 
* '''TODO:''' [http://hg.services.openoffice.org/cws/sb118/rev/160b248247a0 &ldquo;changed <code>tools/debug</code> to never fall back from writing to shell to writing to file, and read <code>DBGSV_INIT</code> from <code>rtl::Bootstrap</code>; the latter causes problems if <code>tools/debug</code> is called from static code executing before <code>SAL_MAIN</code> has called <code>osl_setCommandArgs</code> &rarr; removed statics from code and added assertions to <code>osl/process</code>; various improvements to <code>smoketests.cxx</code> (incl. passing an appropriate <code>dbgsv.ini</code> for non-pro builds)&rdquo;]: Instead of <code>-env:DBGSV_INIT=</code> in <code>smoketest.cxx</code> (and supporting <code>DBGSV_INIT</code> as bootstrap variable), globally in the build environment let <code>DBGSV_INIT</code> environment variable point to a <code>dbgsv.ini</code> with <code>error=coredump</code>, to catch all assertions thrown during build time (incl. ones from tests like smoke test).
 
* '''TODO:''' [http://hg.services.openoffice.org/cws/sb118/rev/160b248247a0 &ldquo;changed <code>tools/debug</code> to never fall back from writing to shell to writing to file, and read <code>DBGSV_INIT</code> from <code>rtl::Bootstrap</code>; the latter causes problems if <code>tools/debug</code> is called from static code executing before <code>SAL_MAIN</code> has called <code>osl_setCommandArgs</code> &rarr; removed statics from code and added assertions to <code>osl/process</code>; various improvements to <code>smoketests.cxx</code> (incl. passing an appropriate <code>dbgsv.ini</code> for non-pro builds)&rdquo;]: Instead of <code>-env:DBGSV_INIT=</code> in <code>smoketest.cxx</code> (and supporting <code>DBGSV_INIT</code> as bootstrap variable), globally in the build environment let <code>DBGSV_INIT</code> environment variable point to a <code>dbgsv.ini</code> with <code>error=coredump</code>, to catch all assertions thrown during build time (incl. ones from tests like smoke test).
* '''TODO:''' <code>-headless</code>? (appears to still display windows on Windows and Mac OS&nbsp;X, however)
+
* '''TODO:''' <code>-headless</code>? (appears to still display windows on Windows and Mac OS&nbsp;X, however, see {{issue|109052}})
  
 
== Pre-Installed OOo ==
 
== Pre-Installed OOo ==

Revision as of 08:15, 9 February 2010

Test Cleanup Project

See the mission statement mail.

Working on CWS sb118  .

CppUnit 1.12.1

  • Replace existing cppunit and testshl2 combo with latest CppUnit 1.12.1.
  • TODO: Upstream PATCH_FILES (windows.patch?!?).
  • TODO: RPATH in generated libraries and executables.
  • TODO: Improve CPPUNIT_PLUGIN_EXPORT and get rid of version maps (GCC exception problems?).
  • TODO: OOo configure --with-system-cppunit (only if also --with-system-stl!); minimal required version?
  • TODO: cppunit/makefile.mk MY_LIBS = -lm Solaris hack.
  • TODO: In general OOo build environment, no longer set CFLAGS etc. as environment variables; have package-specific OOO_package_CFLAGS etc. and combine those into CFLAGS etc. where necessary (see OOO_STLPORT_CXXFLAGS etc. in cppunit/makefile.mk).
  • TODO: Why use cppunittester instead of DllPlugInTester? (Remove building/delivering DllPlugInTester.)
  • TODO: Make CppUnit::assertion_traits<rtl::OUString> from smoketestoo_native/smoketest.cxx generally available.

testshl2

Unit Tests

  • OOO_SUBSEQUENT_TESTS (build.lst lists local dependencies of those directories, so that modifying a module and then calling “OOO_SUBSEQUENT_TESTS=x build” rebuilds the module and executes the tests).
  • TODO: If Build Environment 2.0 would build directly to solver (instead of local output tree/deliver), that would simplify tests that currently need to take care to test local libraries instead of solver ones (see, for example, OOO_TEST_PREFIX in the services.rdb of stoc/test/uriproc/makefile.mk).
  • TODO: Constructs like “-env:UNO_=$(my_file)” would fail for problematic characters (spaces!) in paths.

Smoke Test

Pre-Installed OOo

Personal tools