Commit graph

3128 commits

Author SHA1 Message Date
14d1c5a34b basic AssetManager works now (creating, registering, querying),
including memory management. Ordering is still WIP.
2007-09-18 05:16:56 +02:00
3927f7d5d8 WIP: ordering of Assets, dump AssetManager, bugfix (partially...) 2007-09-17 05:47:22 +02:00
3a416f9e41 WIP test coverage, debugging...
still have to fix a segfault :-)
2007-09-16 17:17:54 +02:00
c746629312 util for sanitizing a string, making it usable as identifier 2007-09-14 19:18:11 +02:00
Christian Thaeter
aa60abd55e Merge branch 'master' into library 2007-09-14 03:45:19 +02:00
9f087bdc93 scons: temporarily skipped locking-test, as it doesn't compile (yet) 2007-09-12 07:27:13 +02:00
2a8503fe5a merge builder-branch, basic AssetManager implementation
Merge branch 'builder'
2007-09-12 07:16:26 +02:00
0950616b21 sync with new backend code
Merge commit 'pipapo/library'
2007-09-12 07:15:20 +02:00
814f6fc734 CreateAsset_test now passes the compiler, after quite some tinkering.... 2007-09-12 06:53:12 +02:00
26374ce409 WIP: fleshed out a good deal of the AssetManager foundation.
compiles ok, singleton test pass (most of asset creation just commented out...)
2007-09-10 06:45:36 +02:00
79c88c2c87 outlined Asset and AssetManager interfaces...
urrgh. this was rather tough to get right. Main problem is avoiding switch-on-type.
2007-09-07 23:24:13 +02:00
45ed4b4264 extracted Singleton pattern into a separate Template.
I prefer this approach, so I can ignore threadsafety for the moment and add it later just by switching policy
2007-09-06 22:13:26 +02:00
Christian Thaeter
65ce98c87d enough lists tests for basic functionality, more are added as needed 2007-09-05 22:59:01 +02:00
Christian Thaeter
2aaad10bbd fixed typos and added some basic tests for the llist.h 2007-09-05 07:07:52 +02:00
737da9c868 continued wishful thinking in Test form 2007-09-04 05:09:08 +02:00
Christian Thaeter
3dcd7c625a Merge branch 'library' 2007-09-03 18:31:07 +02:00
Christian Thaeter
f1aba12af8 renamed *lock to *acquirer 2007-09-03 06:40:44 +02:00
1cadae2d75 TDBS (test driven brain storming) :-) 2007-09-03 02:33:47 +02:00
f86493e466 SCons: run tests in bindir 2007-09-02 23:57:40 +02:00
d7d3cfe876 Sync with cehteh's code
Merge commit 'd50ab9fe2125f985eb4ae9a610f4944cddc425bd'
2007-09-02 23:19:56 +02:00
Christian Thaeter
0a31c7d2db mutex implementation 2007-09-02 17:52:30 +02:00
Christian Thaeter
0d1097315c renamed locking.* to condition.* 2007-09-02 13:56:33 +02:00
Christian Thaeter
ffdc06d98f removed tests/.gitignore please run tests in $builddir (the patterns ignored sourcefiles) 2007-09-02 13:53:33 +02:00
Christian Thaeter
754b9cc24e C wraper for condition variables 2007-09-02 00:52:40 +02:00
c0dcccebd9 Factory impl now complete (hopfully).
Added Tests/Examples for the more advanced use cases
* using custom allocation (e.g. C-style malloc)
* using placement new
* creating Objects via private ctor
* example for the 'PImpl' pattern
2007-08-31 20:32:26 +02:00
b1ea774ef1 removed all custom allocator / deleter stuff (it's the wrong aproach) 2007-08-31 16:53:23 +02:00
b11ac46b76 added possibility to pass a custom deleter function down to shared_ptr.
Note: actually all of this seems against the spirit of C++ (and OO in general). This is a do-it-yourself aproach
which adds far to much complexity (accidental, not fundamental complexity). So I checked it in for the record,
but will abandon this aproach and rely on overloading of operator new / delete if necessary (and when we really need it)
2007-08-31 16:25:04 +02:00
2b0ea4650b reworked factory to get better separation of concerns. But custom allocation can't be done as I intended 2007-08-31 14:57:49 +02:00
Christian Thaeter
5832cfeae2 Merge branch 'master' of git://git.pipapo.org/cinelerra3/ichthyo 2007-08-30 01:42:06 +02:00
Christian Thaeter
d7eae39ec3 fixed test selection,
specifications are given as comma separated list of words which are part of the name of a test suite
2007-08-30 01:40:07 +02:00
Christian Thaeter
98d3716fcb Merge branch 'library' 2007-08-30 00:33:38 +02:00
Christian Thaeter
d1198e7015 Merge branch 'testsuite'
Conflicts:

	wiki/index.html
2007-08-30 00:33:25 +02:00
Christian Thaeter
b5ddc39a6c add tests specifications
test.sh running only the tests which match specifications given as arguments or in the env var TESTSUITES
2007-08-30 00:27:17 +02:00
Christian Thaeter
e438ad6e8f add documentation and error handling to framerate functions 2007-08-29 17:41:10 +02:00
307945b629 wrote test: object smart pointer creation factory 2007-08-29 05:03:21 +02:00
Christian Thaeter
e41059497f refined and corrected framerate caclulation 2007-08-28 19:28:41 +02:00
d54b600382 implemented C++ error handling system 2007-08-26 19:14:39 +02:00
Christian Thaeter
c2898d26f2 put framerate caclulation in a single file 2007-08-25 03:46:07 +02:00
fee63d8f06 added C++ plugin to SCons build; added test for common/appconfig.hpp 2007-08-25 02:07:04 +02:00
8c7a2055e8 integrate Doxygen into SCons build. some doc fixes 2007-08-24 16:41:16 +02:00
Christian Thaeter
9472c115e7 tests for time handling 2007-08-24 06:02:51 +02:00
6d9ce217bd played a bit with doxygen and tried some small tweeks... 2007-08-24 02:58:13 +02:00
dba25a7f7b Merge doxyfile, C++plugin etc from Cehteh
Merge commit 'pipapo/master'
2007-08-24 00:39:35 +02:00
e3d1c35ca3 documentation of my internal testcase runner 2007-08-23 19:13:28 +02:00
5575a7679d wrapper for cmdline parsing, finished testsuite-runner, solved shutdown-memoryleak 2007-08-23 17:52:33 +02:00
Christian Thaeter
1b85206c85 time.h for initial! review 2007-08-23 06:57:08 +02:00
Christian Thaeter
ac5c09f278 TDD? TDB! Test-Driven-Brainstorming 2007-08-21 17:33:19 +02:00
Christian Thaeter
f428295a33 plugin in C++ 2007-08-20 03:22:56 +02:00
91d04f7019 Merge from Cehteh
Merge commit 'pipapo'
2007-08-19 21:59:18 +02:00
cb13b09360 WIP: started augmenting my test-runner class to be configurable via cmdline
Added dependency to boost::program_options. Still trying to get into pace with the testing thing ;-)
2007-08-19 21:57:19 +02:00
Christian Thaeter
27c3451aa1 plugin test update, prepared for C++ 2007-08-19 05:53:43 +02:00
0f3bf1aa31 Merge commit 'pipapo' 2007-08-18 15:45:13 +02:00
Christian Thaeter
0bb8620a67 test renumbered 2007-08-18 15:07:13 +02:00
aaf2ee4928 now the testsuite runs with SCons as well.. 2007-08-18 06:13:39 +02:00
Christian Thaeter
0283653026 Merge branch 'master' of git://git.pipapo.org/cinelerra3/ichthyo
Conflicts:

	tests/plugin/Makefile.am
	tests/plugin/plugin_main.c
2007-08-18 05:41:10 +02:00
Christian Thaeter
9507fae565 reverted CINELERRA_DIE(msg) to CINELERRA_DIE 2007-08-18 05:12:14 +02:00
Christian Thaeter
8c1f324c55 fixed example for plugins 2007-08-18 05:05:58 +02:00
Christian Thaeter
4e8cc3d7b6 automake fixes 2007-08-18 05:04:10 +02:00
963ce7ec53 buildsystem: aligned/automated building of tests, now build the core as static lib 2007-08-18 04:28:14 +02:00
06efcf0f77 merge together work done for the Testsuite.
- to make it similar to Cehteh's tests, moved my testcode to tests/components
- made scons build the errortest and plugin-example as well
- scons check will run the suite

please note, my implementation work is quite incomplete (warnings, app shuttdown
not yet implemented); I hadn't success running the plugintest.
2007-08-17 11:06:49 +02:00
5bde4020cf merged cehteh's work for the testsuite, automake and plugins 2007-08-17 05:52:48 +02:00
db1a35ca94 augmented (static) App initialsation, reorganized NoBug includes... 2007-08-17 00:36:07 +02:00
Christian Thaeter
e07dc59e78 use new errorhandling scheme 2007-08-14 04:56:55 +02:00
Christian Thaeter
d36a38a56e errorhandling finished for now, as proposed 2007-08-14 04:40:13 +02:00
Christian Thaeter
d2c13807bb disable (non finished) plugin test, fix some bugs 2007-08-14 04:21:47 +02:00
Christian Thaeter
8405b42d64 Merge branch 'testsuite', some bug remain fixed in next commit
Conflicts:

	Makefile.am
	configure.ac
	tests/examples/Makefile.am
2007-08-13 21:40:25 +02:00
Christian Thaeter
42b3e12180 merge in progress, some files left out 2007-08-13 21:36:22 +02:00
Christian Thaeter
69c6215277 more automake merges 2007-08-13 21:30:41 +02:00
Christian Thaeter
7470a6d073 cleanup and add stderr to testlog when test failed 2007-08-13 17:45:43 +02:00
Christian Thaeter
ce3eb42131 test suite works now basically 2007-08-13 17:22:07 +02:00
45c2167700 wrote a very simple Test-Suite runner and provided a Tests source tree 2007-08-13 09:55:32 +02:00
Christian Thaeter
9404b5d1f1 cosmetics, copyright header 2007-08-12 21:51:24 +02:00
Christian Thaeter
4374fc4b1f just put tests in place, will not work yet 2007-08-12 21:28:21 +02:00
Christian Thaeter
fdb691398d compiles example, segfaults by intention (disabled error handling, no plugin yet) 2007-07-19 06:15:55 +02:00
Christian Thaeter
c55e72adf4 example interface and C plugin 2007-07-18 00:10:02 +02:00
Christian Thaeter
737c102766 extended example, prepared for C++ plugin 2007-07-17 22:24:46 +02:00
Christian Thaeter
bd218fb7ca example code showing plugin usage 2007-07-17 20:42:07 +02:00
Christian Thaeter
74b8f74f3c add dirs with DIR_INFO files describing intended content 2007-06-18 02:02:16 +02:00