Difference between revisions of "Test Cleanup"
From Apache OpenOffice Wiki
(Created page with '= Test Cleanup Project = See the [http://www.openoffice.org/servlets/ReadMsg?list=dev&msgNo=26189 mission statement mail]. == CppUnit 1.12.1 == * Replace existing <code>cppuni…') |
|||
Line 12: | Line 12: | ||
* '''TODO:''' <code>cppunit/makefile.mk</code> <code>MY_LIBS = -lm</code> Solaris hack. | * '''TODO:''' <code>cppunit/makefile.mk</code> <code>MY_LIBS = -lm</code> Solaris hack. | ||
* '''TODO:''' In general OOo build environment, no longer set <code>CFLAGS</code> etc. as environment variables; have package-specific <code>OOO_<var>package</var>_CFLAGS</code> etc. and combine those into <code>CFLAGS</code> etc. where necessary (see <code>OOO_STLPORT_CXXFLAGS</code> etc. in <code>cppunit/makefile.mk</code>). | * '''TODO:''' In general OOo build environment, no longer set <code>CFLAGS</code> etc. as environment variables; have package-specific <code>OOO_<var>package</var>_CFLAGS</code> etc. and combine those into <code>CFLAGS</code> etc. where necessary (see <code>OOO_STLPORT_CXXFLAGS</code> etc. in <code>cppunit/makefile.mk</code>). | ||
+ | * '''TODO:''' Why use <code>cppunittester</code> instead of <code>DllPlugInTester</code>? (Remove building/delivering <code>DllPlugInTester</code>.) | ||
== <code>testshl2</code> == | == <code>testshl2</code> == | ||
* <code>solenv/inc_cppunit.mk</code>/<code>cppunit.mk</code>: [http://hg.services.openoffice.org/cws/sb118/rev/cf13421c3774 “adapted <code>cppunit.mk</code> to <code>cppunittester</code> and no longer require ‘<code>dmake test</code>’ to run tests”]. | * <code>solenv/inc_cppunit.mk</code>/<code>cppunit.mk</code>: [http://hg.services.openoffice.org/cws/sb118/rev/cf13421c3774 “adapted <code>cppunit.mk</code> to <code>cppunittester</code> and no longer require ‘<code>dmake test</code>’ to run tests”]. | ||
+ | * '''TODO:''' <code>DEV300_m68</code> introduced <code>TESTSHL2LIB</code> (which I removed again) and uses it in many <code>qa</code> makefiles (that I need to touch someday, anyway). | ||
− | == | + | == Unit Tests == |
+ | |||
+ | * <code>OOO_SUBSEQUENT_TESTS</code> (<code>build.lst</code> lists local dependencies of those directories, so that modifying a module and then calling “<code>OOO_SUBSEQUENT_TESTS=x build</code>” 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, <code>OOO_TEST_PREFIX</code> in the <code>services.rdb</code> of <code>stoc/test/uriproc/makefile.mk</code>). | ||
+ | * '''TODO:''' Constructs like “<code>-env:UNO_<var>…</var>=$(my_file)<var>…</var></code>” would fail for problematic characters (spaces!) in paths. | ||
+ | |||
+ | == Smoke Test == | ||
* Redesign <code>smoketestoo_native</code> to use CppUnit and pre-installed OOo. | * Redesign <code>smoketestoo_native</code> to use CppUnit and pre-installed OOo. | ||
− | * '''TODO:''' For <code>smoketestoo_native/makefile.mk</code> “<code>-env:arg-env=$(OOO_LIBRARY_PATH_VAR)"$${{$(OOO_LIBRARY_PATH_VAR)+=$$$(OOO_LIBRARY_PATH_VAR)}}"</code>& | + | * '''TODO:''' For <code>smoketestoo_native/makefile.mk</code> “<code><nowiki>-env:arg-env=$(OOO_LIBRARY_PATH_VAR)"$${{$(OOO_LIBRARY_PATH_VAR)+=$$$(OOO_LIBRARY_PATH_VAR)}}"</nowiki></code>” mechanism: <code>osl_executeProcess</code> <code>ustrEnvironments</code> members without “<code>=</code>”: all platforms; documentation; documentation of <code>osl_executeProcess_WithRedicrectedIO</code>. |
− | * Dynamically create <code>smoketestdoc.sxw</code>? | + | * '''TODO:''' Dynamically create <code>smoketestdoc.sxw</code>? |
== Pre-Installed OOo == | == Pre-Installed OOo == | ||
− | * '''TODO:''' For Sun Hamburg Release Engineering, take MWS archive | + | * '''TODO:''' For Sun Hamburg Release Engineering, take MWS archive installation sets from “S:” instead of solver. |
− | * '''TODO:''' PKGFORMAT installed instead of archive? | + | * '''TODO:''' <code>PKGFORMAT=installed</code> instead of <code>archive</code>? |
[[Category:Development]] | [[Category:Development]] |
Revision as of 12:38, 15 January 2010
Test Cleanup Project
See the mission statement mail.
CppUnit 1.12.1
- Replace existing
cppunit
andtestshl2
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-specificOOO_package_CFLAGS
etc. and combine those intoCFLAGS
etc. where necessary (seeOOO_STLPORT_CXXFLAGS
etc. incppunit/makefile.mk
). - TODO: Why use
cppunittester
instead ofDllPlugInTester
? (Remove building/deliveringDllPlugInTester
.)
testshl2
solenv/inc_cppunit.mk
/cppunit.mk
: “adaptedcppunit.mk
tocppunittester
and no longer require ‘dmake test
’ to run tests”.- TODO:
DEV300_m68
introducedTESTSHL2LIB
(which I removed again) and uses it in manyqa
makefiles (that I need to touch someday, anyway).
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 theservices.rdb
ofstoc/test/uriproc/makefile.mk
). - TODO: Constructs like “
-env:UNO_…=$(my_file)…
” would fail for problematic characters (spaces!) in paths.
Smoke Test
- Redesign
smoketestoo_native
to use CppUnit and pre-installed OOo. - TODO: For
smoketestoo_native/makefile.mk
“-env:arg-env=$(OOO_LIBRARY_PATH_VAR)"$${{$(OOO_LIBRARY_PATH_VAR)+=$$$(OOO_LIBRARY_PATH_VAR)}}"
” mechanism:osl_executeProcess
ustrEnvironments
members without “=
”: all platforms; documentation; documentation ofosl_executeProcess_WithRedicrectedIO
. - TODO: Dynamically create
smoketestdoc.sxw
?
Pre-Installed OOo
- TODO: For Sun Hamburg Release Engineering, take MWS archive installation sets from “S:” instead of solver.
- TODO:
PKGFORMAT=installed
instead ofarchive
?