Commit Graph

32 Commits

Author SHA1 Message Date
06d18374de use SimpleReferenceObject in extensions/update module
to replace hand-rolled version

Change-Id: I4cd74b3e95a61c32d3aa52646d654ce306791fae
2014-07-10 11:04:12 +02:00
83d00917f2 extensions: MSVC tinderbox wants its InternetGetConnectedStateEx
Change-Id: Ie5486e910ba562954ef38c83b2fa673511a9e931
2014-06-30 16:14:33 +02:00
fd6d9b9dc3 Allow CppunitTest_extensions_test_update direct access to UpdateCheck class
Change-Id: Ifa1dafe838e0e9c5bfa4525eaa744d4851551fc8
2014-06-30 14:16:50 +02:00
369d95931f DeInitVCL at end of tests
This required some changes to the framework:

* Init-/DeInitVCL is no longer done per individual test in BootstrapFixture, but
  once per CppunitTest invocation in a new vclbootstrapprotector (similarly to
  the exisiting unobootstrapprotector).  CppunitTests that need VCL now need to
  declare gb_CppunitTest_use_vcl.

* For things to work properly, the UNO component context needs to be disposed
  from within DeInitVCL (cf. Desktop's Application::DeInit called from
  DeInitVCL).  The easiest solution was to introduce an
  Application::setDeInitHook (where the hook is called from DeInitVCL)
  specifically for vclbootstrapprotector to call.

* PythonTests don't (yet) call DeInitVCL; they still hook into
  BootstrapFixture's original test_init functionality (to call InitVCL), and do
  not make use of the vclbootstrapprotector.

Change-Id: I4f3a3c75db30b58c1cd49d81c51db14902ed68b2
2014-06-04 08:55:12 +02:00
541761d7b8 prefer makefile-gmake-mode
Change-Id: I9cc9bfbddd3a90e00eee3e674994e5d6207f9034
2014-04-28 23:35:42 +09:00
72e5d0c8fb Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-30 13:34:06 +01:00
8cad36dfcd fix omissions in a53586f4efe26b8875107d04001f4ecec760c343
Change-Id: I65e3fc3e34416b74365490a1cd7cba178ef7eb55
2013-01-27 01:17:38 +01:00
5032dc0fc3 gbuild: invert handling of standard system libraries:
Always link in gb_STDLIBS, except when the library explicitly opts out
with gb_LinkTarget_disable_standard_system_libs.

Change-Id: I489a99114fbfa46d0421a27cf6c7b899dc268a4a
2012-09-28 16:49:08 +02:00
dc397aae70 gbuild: gb_Library_PLAINLIBS_NONE cleanup for WNT:
add a new gb_LinkTarget_use_system_win32_libs to abstract different
linker options on MSVC and GCC.

Change-Id: Ic9bf2545f59bf7871e6fc06b290c486ddfbec03d
2012-09-28 16:49:08 +02:00
b85c349783 gbuild: replace direct gb_STDLIBS use with ...
... new gb_LinkTarget_add_standard_system_libs

Change-Id: Ib2bc843098db3d8c6822b45a3d21724e67f57d69
2012-09-28 16:49:06 +02:00
2e677c3981 gbuild: split uwinapi out of gb_STDLIBS
Change-Id: I53316e0b9369d806197bccb42cf22d3497af43e7
2012-09-28 16:49:05 +02:00
5fcacd8408 rename gb_CppunitTest_uses_ure 2012-04-08 15:17:45 +02:00
fbbb833dda compile- and run-time use of UNO must be split
There are unit tests that do not use URE, e.g., in cppuhelper.

This reverts commit 33e9f3d3d6b29545ef9df3f5334c015e15caa5c8.

Conflicts:

	sot/CppunitTest_sot_test_sot.mk
	svl/CppunitTest_svl_urihelper.mk
2012-04-08 15:12:18 +02:00
e3cf2b45f7 simplify use of configuration from unit tests 2012-04-08 14:53:09 +02:00
e5f16b8d3e always use --protector for UNO tests 2012-04-08 14:53:08 +02:00
33e9f3d3d6 drop uses_ure 2012-04-08 14:53:08 +02:00
fe209e78db let use_api handle the use of type rdbs at runtime
Or is there any use case where we would need to use UNO API headers, but
not require the appropriate type database at runtime?
2012-04-08 14:53:07 +02:00
c923f7d2c2 gbuild: "use" vs. "add":
Naming convention for gbuild methods:
- "add" is used for stuff that is logically a part of the target
  (i.e. not registered at the Module, but defined in the target's makefile)
- "use" is used for stuff that is logically a different target
  (i.e. it is registered at the Module, has it's own makefile, may be
  in a different module than the target)
2012-04-08 01:05:52 +02:00
802518c59a always pass --headless to cppunits
They should not need any actual UI anyway, and most of them already
pass the option manually.
http://lists.freedesktop.org/archives/libreoffice/2012-March/029109.html
2012-04-02 12:26:20 +02:00
4b30ec9def fdo#39491 -I$(OUTDIR)/inc is set in SOLARINC 2012-02-10 21:41:45 +01:00
58b8a4d25d these are not old component files anymore 2012-01-15 16:11:33 +01:00
6716631b35 extensions: d'oh, i've pasted C++ emacs modelines in makefiles 2011-12-19 22:09:48 +01:00
e1d34f15cc extensions: what is all this realpath stuff doing? 2011-12-19 15:26:33 +01:00
9d79b12871 extensions: merge in Peter Foley's work in update
Main improvement is that the unit test is now linked against updchk
library.
2011-12-17 18:12:13 +01:00
ba1f609d0d extensions: convert update stuff to gbuild
The updchk is renamed to updatecheckui so it does not collide with
updchk.uno.
2011-12-14 19:57:14 +01:00
3684fcdc0f configmgr.component is no longer an old one. 2011-12-14 10:42:51 +01:00
50471a85d4 add curl to RepositoryExternal.mk 2011-12-09 15:18:01 +01:00
b87fa222f1 online update: Unit testing framework + rewrite of load().
- introduce first two basic tests (to be improved)
- rewrite of UpdateInformationProvider::load() to use comphelper
- smaller splitting of functions to be able to unit test
2011-11-30 00:24:51 +01:00
4432a44e75 online update: Make the test for update to actually start (still fails). 2011-11-30 00:24:51 +01:00
3f2ff54778 remove pch from the include list 2011-11-27 15:24:45 -06:00
44d5b6c595 Make the update unit test compile.
It is not useful yet, so disabled.
2011-10-22 01:14:11 +02:00
17523de685 Skeleton of the unit test for updates. 2011-10-17 11:40:14 +02:00