Commit graph

400 commits

Author SHA1 Message Date
d1e385f3f4 rename class Thread into Concurrency
it's not a thread abstraction, but a locking helper
2008-12-22 05:02:51 +01:00
ee4c910ed4 qualify with volatile (fix) 2008-12-22 05:02:51 +01:00
d5710ffc54 WIP: draft a test to check monitor object locking 2008-12-22 05:02:50 +01:00
Christian Thaeter
505869767e Fix config path for tests 2008-12-21 21:15:11 +01:00
e32194b810 Autotools fixes (make the tests compile) 2008-12-18 10:48:50 +01:00
5f94b3ba68 Autotools adjustments 2008-12-18 10:26:38 +01:00
0314885834 Yeah! all defined tests pass! (SCons build) 2008-12-18 09:59:31 +01:00
262c51075b Tests: remove manual init of config-system 2008-12-18 09:58:42 +01:00
6d66476383 move config, interfaces and pluginsystem to liblumieracommon 2008-12-18 08:54:33 +01:00
7bde9aa538 start refactoring: liblumieracommon.so (application core services) 2008-12-18 08:12:40 +01:00
357c7f0d9f further Makefile.am tweaks to make the tests compile again 2008-12-18 07:44:06 +01:00
598994c0cb further Makefile.am tweaks to make it compile again
explanation: via the unresolved problems with the hig-level model,
probably a dependency to AssetManager and from there to the core systems
"bubbled" into the liblumiera.so, forcing us to link these things for now
2008-12-18 06:47:54 +01:00
fcfc80182a Autotools fixes 2008-12-18 05:11:47 +01:00
9a63ccc588 finish common->lib transition for the tests 2008-12-18 04:47:41 +01:00
Christian Thaeter
f061da8873 WIP: Fix include paths in tests
Still don't link, this only fixes the paths
2008-12-17 17:58:31 +01:00
Christian Thaeter
9a1a1890e2 post rebase fixes
tests are still broken and will be fixed for the shared lib transistion
2008-12-16 19:54:48 +01:00
12fc97b8e2 Build most of Lumiera as shared library (SCons build) 2008-12-15 13:36:42 +01:00
57c3559f74 WIP trying to get the guistarter shared module loaded 2008-12-15 13:36:42 +01:00
feebc502e5 implementation of GuiStarterPlugin 2008-12-15 13:36:41 +01:00
e8639b8319 WIP work out further how to handle start/stop of layer separation interfaces 2008-12-15 13:36:41 +01:00
8c501a3d7c first rough draft implementation of calling through a layer separation interface 2008-12-15 13:36:41 +01:00
df85f2a5d9 pull up the config system in pre-init phase 2008-12-15 13:33:06 +01:00
3693a5fa3d draft outline for main() 2008-12-15 13:33:05 +01:00
6ca2c23bda fix a warning and some typos 2008-12-15 13:33:05 +01:00
98b3fcbad8 missing implementation 2008-12-15 13:33:05 +01:00
b14d711146 refactor Appconfig, split off lifecycle interface 2008-12-15 13:33:05 +01:00
3f6f1218fc some typos 2008-12-15 13:33:04 +01:00
c567c57a58 reorganise NoBug global definitions and startup 2008-12-15 13:33:04 +01:00
2b5affa8b3 Appconfig doesn't provide Config functionality any longer.
This role of the Appconfig class is superseeded by the Config subsystem...
2008-12-15 13:33:04 +01:00
628be502e5 reordered some files to use the new include and lumiera directories 2008-12-15 13:33:04 +01:00
Christian Thaeter
221a2a76c3 let the plugin test test the new config interface 2008-12-15 13:33:04 +01:00
Christian Thaeter
d91c4ee326 build a 'liblumieracore' instead many small libs
This makes some cross dependency things easier, later on the parts which
get included there might be configured and selected with conditionals.
2008-12-15 13:33:04 +01:00
Christian Thaeter
85bde6ddb1 Extend the tests for plugins to show how to handle interface opening
from plugins themself.
2008-12-15 13:33:03 +01:00
Christian Thaeter
37f56a670e Now converting the tests ..and some missing things
* fixed include paths
 * lots of build system fixes
 * initialization, shutdown, state and nobug flags are factored out into
   a liblumierainit.a to simplify test builds
2008-12-15 13:33:03 +01:00
Christian Thaeter
369c644ab4 Basic resourcecollector implementation
Lets one register callback functions which to incrementally cleanup unused
resources.
2008-12-15 01:17:23 +01:00
Christian Thaeter
67386a20eb few tests for mmaping 2008-12-15 01:17:23 +01:00
Christian Thaeter
17c07bad42 FIX: filehandles test, remove chunksize parameter, this is set explicit now 2008-12-15 01:17:23 +01:00
Christian Thaeter
ec5800c61e fix filedescriptor tests to use a list for tracking references
see previous commit
2008-12-15 01:17:22 +01:00
Christian Thaeter
16fabb29bd initialize the config system for the file tests 2008-12-15 01:17:21 +01:00
Christian Thaeter
e938b36071 WIP: mmap management first go
Quite some code which was hold back in favor of the config and plugin stuff
implements:

 * mmapcache: mru cache for unused memory mappings
 * mmap: single mmaped areas
 * mmapings: manages mmaps established for one filedescriptor
2008-12-15 01:17:21 +01:00
18b750d86b SCons: set LUMIERA_PLUGIN_PATH, add option PKGLIBDIR 2008-11-07 01:54:39 +01:00
80e1e382f4 merge new plugin/interface system, testsuite changes, documentation 2008-11-07 01:26:31 +01:00
Christian Thaeter
aae3c8ed81 LUMIERA_PLUGIN is dead, long life LUMIERA_PLUGIN
removes the difference in compiled in and plugin interfaces.
 * All interfaces are now defined with LUMIERA_EXPORT(...)
 * The definition of LUMIERA_PLUGIN at compile time takes action to compile
   as plugin which gets automatically managed.
 * compiled in (core) interfaces need still be registered, this is
   simplified with the LUMIERA_INTERFACE_REGISTEREXPORTED and
   LUMIERA_INTERFACE_UNREGISTEREXPORTED macros which become no-ops for
   plugins.
2008-11-06 05:23:47 +01:00
f19cdc1ad6 automake fixes 2008-11-06 04:25:33 +01:00
Christian Thaeter
c04f1e77d6 set LUMIERA_PLUGIN_PATH to $pkglibdir as default 2008-11-06 04:13:13 +01:00
Christian Thaeter
038f127946 testsuite updates
* Makefile.am removed -lm, added $(LUMIERA_PLUGIN_LIBS)
 * simple test for the plugin loader
 * remove the old 20plugin.tests, new 31plugin.tests
2008-11-05 11:33:50 +01:00
9f8b0070a6 build option for SCons (verbose) 2008-11-03 21:24:15 +01:00
53e17e2751 merge new Plugin implementation
Merge commit 'pipapo/master'
2008-11-03 20:58:09 +01:00
Christian Thaeter
a21a6b5d3d Add dependencies to test-interfaces
looks like one needs to add all dependencies manually when using
_DEPENDENCIES at least works by that, maybe investigate this later
2008-11-03 08:00:32 +01:00
Christian Thaeter
10e22c74f7 fix test-interfaces for new plugin parameter 2008-10-31 06:44:27 +01:00
Christian Thaeter
d510ade5c3 fix wordlist tests to use explicit delimiters 2008-10-31 06:43:54 +01:00
57ccc289b0 comment, add to testsuite 2008-10-30 04:34:05 +01:00
b475fd0979 AllocationCluster passes test 2008-10-30 04:03:14 +01:00
a8ff2ec137 cover the case of noncopyable objects wrapped into ScopedHolders and placed into a dynamically growing vector 2008-10-28 05:01:20 +01:00
a912159d70 re-enabled building of the testpluginc.so 2008-10-28 01:57:28 +01:00
Christian Thaeter
0dc8a68afb Reinstantiated the first test plugin 2008-10-27 05:10:25 +01:00
Christian Thaeter
ab3d3823f6 autotools fixes for the plugin system
don't link the tests with -ldl

Renamed GTK_LUMIERA_* to LUMIERA_GUI_* and include all gui relevant config
results here.

Set it explicit, don't add the results to CFLAGS or LIBS, the default
behaviour linked all LIBS in, even in plugins, that was not intended.
2008-10-27 05:10:01 +01:00
Christian Thaeter
33c8e79ccb ran luidgen on test-interfaces.c 2008-10-27 05:09:19 +01:00
Christian Thaeter
1886f41bf5 WIP: testsuite for interfaces 2008-10-27 05:08:53 +01:00
Christian Thaeter
41ec9edd6f fix tests to adhere with the new interface descriptor 2008-10-27 05:08:53 +01:00
340b90bee1 add the new tests to proc lib test suite 2008-10-26 22:43:54 +01:00
6a1c33e5a1 create a lib header based on this solution 2008-10-26 22:35:01 +01:00
89fca1921d WIP added simple usage test ... and made it compile,
but still a fundamental problem to resolve with the use of std::vector in this scenario
2008-10-24 06:06:24 +02:00
75cf4a97b3 ScopedHolder test passed 2008-10-23 18:33:56 +02:00
2b2654cb38 WIP test covering the ScopedHolder helpers 2008-10-23 07:15:48 +02:00
850f49904e SCons: options for controling testsuite execution 2008-10-23 04:53:50 +02:00
6e12b74d9e rename the proc-layer tests to comply with the numbering scheme 2008-10-23 04:02:12 +02:00
1e3a03b4c5 WIP dealing with object collections taking ownership 2008-10-21 09:04:59 +02:00
Christian Thaeter
a95a40613c Fix: oops some more liblumi to liblumiera renames 2008-10-21 06:48:59 +02:00
eaa89067bb WIP test covering the AllocationCluster draft 2008-10-20 06:27:14 +02:00
Christian Thaeter
f75af1dec3 liblumiprocmobjectcontroller.a is not needed anymore in tests 2008-10-18 18:03:35 +02:00
55d592f119 adapt for the plugin-test now being in tests/backend 2008-10-16 02:07:32 +02:00
d64d822690 merge from backend (plugin loader)
Merge commit 'lumi/master' into proc
2008-10-16 00:35:57 +02:00
Christian Thaeter
26c212b292 make the old plugin stuff barely compileable, disable tests, fix later 2008-10-15 22:18:17 +02:00
Christian Thaeter
f7fa5769ca Start of a 'wordlist' type for the config subsystem
wordlists are simple not quoted words delimited by semicolon, tab, space or
commas. Some special functions will allow to access each of this words by
index etc.
2008-10-15 17:19:53 +02:00
Christian Thaeter
29f5a0f2ab moved the remaining interface stuff from lib to backend 2008-10-15 16:05:17 +02:00
Christian Thaeter
ee7719eada tests and a first definition of a interface descriptor 2008-10-15 16:05:17 +02:00
Christian Thaeter
0342e19c12 move the interfaces test to backend, because its going to be stateful 2008-10-15 16:04:32 +02:00
Christian Thaeter
caa5bd10a0 interface update
* remove the data member from the interface structure
 * add a psplay node used in a upcoming interface registry
 * add a INLINE function mapper
2008-10-15 16:01:08 +02:00
Christian Thaeter
feb9ba7db9 provide some example code for the 'interface' system
* test-interfaces.c is just a mockup to show how interfaces are created
 * fix some bugs introduced with a futile refactoring try at the last commit
2008-10-15 16:01:08 +02:00
Christian Thaeter
2ae274ea51 add wordlist_add function to add a word to a wordlist 2008-10-15 16:01:08 +02:00
Christian Thaeter
2041efe5b6 more on config_wordlist
* universal replace function
 * tests
 * missing declarations
2008-10-15 16:01:07 +02:00
Christian Thaeter
7d748a39a7 add a test for value resetting (I wasn't sure it works, but it does) 2008-10-15 16:01:07 +02:00
Christian Thaeter
3f273bb0b1 move the configitem tests to the lowlevel suite 2008-10-15 16:01:07 +02:00
Christian Thaeter
f754e1521f Start of a 'wordlist' type for the config subsystem
wordlists are simple not quoted words delimited by semicolon, tab, space or
commas. Some special functions will allow to access each of this words by
index etc.
2008-10-15 16:01:06 +02:00
Christian Thaeter
ed246ab222 Adding recursive mutexes, fix chained mutex to take only one parameter
Recursive mutex can be locked multiple times by a single thread they
are initialitzed by lumiera_recmutex_init() and used by LUMIERA_RECMUTEX_*
macros.

Chained mutex use the mutexacquirer from the outer scope now. Maybe its
later needed to pass acquirers explicit, we will see.
2008-10-15 15:49:35 +02:00
Nicholas Sinnott-Armstrong
7d86367909 Added preliminary support for chained mutex calls. 2008-10-15 15:49:35 +02:00
Christian Thaeter
14a9e95492 moved plugin code from lib to backend
Plugin management will become stateful. This qualifies it to become a
backend subsystem.
2008-10-15 15:49:34 +02:00
8834e4e306 merge current gui work
Merge branch 'master' into proc
2008-10-11 03:04:48 +02:00
1bce7d4c38 define the next steps by test 2008-10-06 07:26:43 +02:00
feb64fac01 outline: use of the raw type info for fetching a ImplFacade 2008-09-26 04:57:20 +02:00
47a416bba3 *Hey* first time to use a GAVL video frame type... 2008-09-25 21:48:43 +02:00
8109badf49 outline a test covering the stream type registration lifecycle 2008-09-24 06:37:42 +02:00
83b574bdea stream type registry lifecycle 2008-09-24 05:46:26 +02:00
14023d3024 interface brainstorming 2008-09-23 05:09:56 +02:00
2885b41895 fix a link problem 2008-09-22 04:03:37 +02:00
a6a19ef609 WIP start drafting how to bootstrap a stream type... 2008-09-17 03:46:38 +02:00
becfcb3935 increase timeout (2sec) to avoid problems when running in a VM 2008-09-13 01:59:39 +02:00
Christian Thaeter
7c992c000d config setters for number and word, thats it for now 2008-09-10 15:19:50 +02:00
Christian Thaeter
e8cc26efa4 First highlevel setter, small api change
* setters return LumieraConfigitem (or NULL) instead int
 * the config_string_set works now
2008-09-10 15:19:50 +02:00