From cc9dbd8a40580ae087602a5e51a9465a5e1fa82e Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Sat, 7 Mar 2026 22:31:08 +0100 Subject: [PATCH] BufferProvider: relocate TestFrame and dummy-hash computations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These are generic vehicles to verify computation structures. Since they are in no way related to our models, they belong into »Vault« layer Furthermore this reorganisation of test support components is prerequisite to also move further generic facilities down into the Vault --- .../testframe.cpp => src/test/test-frame.cpp | 10 +- .../testframe.hpp => src/test/test-frame.hpp | 16 +- .../test}/test-rand-ontology.cpp | 10 +- .../test}/test-rand-ontology.hpp | 14 +- ...{testoption.cpp => test-runner-config.cpp} | 6 +- ...{testoption.hpp => test-runner-config.hpp} | 12 +- src/vault/cache/__planned__ | 1 + src/vault/io/__planned__ | 1 + src/vault/out/__planned__ | 1 + src/vault/storage/__planned__ | 1 + src/vault/toolkit/__planned__ | 1 + tests/00support.tests | 2 +- tests/SConscript | 2 +- tests/steam/engine/buffer-metadata-test.cpp | 6 +- .../engine/buffer-provider-protocol-test.cpp | 10 +- .../diagnostic-buffer-provider-test.cpp | 9 +- tests/steam/engine/node-devel-test.cpp | 6 +- tests/steam/engine/node-link-test.cpp | 15 +- .../engine/output-proxy-provider-test.cpp | 13 +- tests/steam/engine/testframe-test.cpp | 10 +- tests/steam/play/diagnostic-output-slot.hpp | 4 +- .../steam/play/output-slot-protocol-test.cpp | 10 +- tests/{testrunner.cpp => test-runner.cpp} | 9 +- tests/{lib => }/test/event-log-test.cpp | 0 tests/{lib => }/test/temp-dir-test.cpp | 0 tests/{lib => }/test/test-helper-test.cpp | 0 .../test/test-helper-variadic-test.cpp | 0 .../test-runner-config-test.cpp} | 12 +- tests/{lib => }/test/test-tracking-test.cpp | 0 tests/vault/cache/__planned__ | 1 + tests/vault/io/__planned__ | 1 + tests/vault/out/__planned__ | 1 + tests/vault/storage/__planned__ | 1 + tests/vault/toolkit/__planned__ | 1 + wiki/thinkPad.ichthyo.mm | 245 +++++++++++++++--- 35 files changed, 299 insertions(+), 132 deletions(-) rename tests/steam/engine/testframe.cpp => src/test/test-frame.cpp (98%) rename tests/steam/engine/testframe.hpp => src/test/test-frame.hpp (95%) rename {tests/steam/engine => src/test}/test-rand-ontology.cpp (97%) rename {tests/steam/engine => src/test}/test-rand-ontology.hpp (97%) rename src/test/{testoption.cpp => test-runner-config.cpp} (96%) rename src/test/{testoption.hpp => test-runner-config.hpp} (86%) create mode 100644 src/vault/cache/__planned__ create mode 100644 src/vault/io/__planned__ create mode 100644 src/vault/out/__planned__ create mode 100644 src/vault/storage/__planned__ create mode 100644 src/vault/toolkit/__planned__ rename tests/{testrunner.cpp => test-runner.cpp} (87%) rename tests/{lib => }/test/event-log-test.cpp (100%) rename tests/{lib => }/test/temp-dir-test.cpp (100%) rename tests/{lib => }/test/test-helper-test.cpp (100%) rename tests/{lib => }/test/test-helper-variadic-test.cpp (100%) rename tests/{lib/test/test-option-test.cpp => test/test-runner-config-test.cpp} (91%) rename tests/{lib => }/test/test-tracking-test.cpp (100%) create mode 100644 tests/vault/cache/__planned__ create mode 100644 tests/vault/io/__planned__ create mode 100644 tests/vault/out/__planned__ create mode 100644 tests/vault/storage/__planned__ create mode 100644 tests/vault/toolkit/__planned__ diff --git a/tests/steam/engine/testframe.cpp b/src/test/test-frame.cpp similarity index 98% rename from tests/steam/engine/testframe.cpp rename to src/test/test-frame.cpp index 09c8adee3..eea8d1e8b 100644 --- a/tests/steam/engine/testframe.cpp +++ b/src/test/test-frame.cpp @@ -11,7 +11,7 @@ * *****************************************************************/ -/** @file testframe.cpp +/** @file test-frame.cpp ** Implementation of fake data frames to support unit testing. ** The data generation is based on a _discriminator seed value,_ ** which is computed as a linear combination of a statically fixed anchor-seed @@ -36,7 +36,7 @@ #include "lib/random-reseed.hpp" #include "lib/hash-standard.hpp" #include "lib/hash-combine.hpp" -#include "steam/engine/testframe.hpp" +#include "test/test-frame.hpp" #include "lib/nocopy.hpp" #include "lib/util.hpp" @@ -46,9 +46,7 @@ -namespace steam { -namespace engine{ -namespace test { +namespace test { namespace err = lumiera::error; using std::deque; @@ -440,4 +438,4 @@ namespace test { } -}}} // namespace steam::engine::test +}// namespace test diff --git a/tests/steam/engine/testframe.hpp b/src/test/test-frame.hpp similarity index 95% rename from tests/steam/engine/testframe.hpp rename to src/test/test-frame.hpp index 86a510242..7604826f1 100644 --- a/tests/steam/engine/testframe.hpp +++ b/src/test/test-frame.hpp @@ -1,5 +1,5 @@ /* - TESTFRAME.hpp - test data frame (stub) for checking Render engine functionality + TEST-FRAME.hpp - test data frame (stub) for checking Render engine functionality Copyright (C) 2011, 2024 Hermann Vosseler @@ -11,7 +11,7 @@ */ -/** @file testframe.hpp +/** @file test-frame.hpp ** Unit test helper to generate fake test data frames. ** Each TestFrame holds a 1k buffer of byte data, which can be ** verified, accessed and manipulated to emulate media computations. @@ -30,8 +30,8 @@ */ -#ifndef STEAM_ENGINE_TESTFRAME_H -#define STEAM_ENGINE_TESTFRAME_H +#ifndef TEST_TEST_FRAME_H +#define TEST_TEST_FRAME_H #include "lib/integral.hpp" @@ -40,9 +40,7 @@ #include -namespace steam { -namespace engine { -namespace test { +namespace test { using lib::HashVal; @@ -160,5 +158,5 @@ namespace test { TestFrame& testData (uint seqNr =0, uint chanNr =0); -}}} // namespace steam::engine::test -#endif +}// namespace test +#endif /*TEST_TEST_FRAME_H*/ diff --git a/tests/steam/engine/test-rand-ontology.cpp b/src/test/test-rand-ontology.cpp similarity index 97% rename from tests/steam/engine/test-rand-ontology.cpp rename to src/test/test-rand-ontology.cpp index e8a4ac0cf..7c05dfe97 100644 --- a/tests/steam/engine/test-rand-ontology.cpp +++ b/src/test/test-rand-ontology.cpp @@ -23,7 +23,7 @@ */ -#include "steam/engine/test-rand-ontology.hpp" +#include "test/test-rand-ontology.hpp" #include "lib/hash-combine.hpp" #include "lib/iter-zip.hpp" @@ -33,10 +33,8 @@ using std::lround; using lib::zip; -namespace steam { -namespace engine{ -namespace test { -namespace ont { +namespace test { +namespace ont { // namespace err = lumiera::error; namespace { // hidden local support facilities.... @@ -170,4 +168,4 @@ namespace ont { -}}} // namespace steam::engine::test +}// namespace test diff --git a/tests/steam/engine/test-rand-ontology.hpp b/src/test/test-rand-ontology.hpp similarity index 97% rename from tests/steam/engine/test-rand-ontology.hpp rename to src/test/test-rand-ontology.hpp index 7b649c82f..b24262c52 100644 --- a/tests/steam/engine/test-rand-ontology.hpp +++ b/src/test/test-rand-ontology.hpp @@ -16,8 +16,8 @@ */ -#ifndef STEAM_ENGINE_TEST_RAND_ONTOLOGY_H -#define STEAM_ENGINE_TEST_RAND_ONTOLOGY_H +#ifndef TEST_TEST_RAND_ONTOLOGY_H +#define TEST_TEST_RAND_ONTOLOGY_H #include "lib/error.hpp" @@ -26,7 +26,7 @@ #include "lib/nocopy.hpp" #include "lib/format-obj.hpp" #include "lib/format-string.hpp" -#include "steam/engine/testframe.hpp" +#include "test/test-frame.hpp" #include #include @@ -35,9 +35,7 @@ #include -namespace steam { -namespace engine{ -namespace test { +namespace test { using std::tuple; using std::string; @@ -301,5 +299,5 @@ namespace test { -}}} // namespace steam::engine::test -#endif +} // namespace test +#endif /*TEST_TEST_RAND_ONTOLOGY_H*/ diff --git a/src/test/testoption.cpp b/src/test/test-runner-config.cpp similarity index 96% rename from src/test/testoption.cpp rename to src/test/test-runner-config.cpp index 0b69af2b6..6abd90fa4 100644 --- a/src/test/testoption.cpp +++ b/src/test/test-runner-config.cpp @@ -1,5 +1,5 @@ /* - TestOption - handle cmdline for invoking Testsuite + TestRunnerConfig - handle cmdline for invoking Testsuite Copyright (C) 2008, Hermann Vosseler @@ -12,13 +12,13 @@ * *****************************************************************/ -/** @file testoption.cpp +/** @file test-runner-config.cpp ** Implementation of commandline parsing for the unittest test-suite. */ #include "lib/error.hpp" -#include "test/testoption.hpp" +#include "test/test-runner-config.hpp" #include "test/suite.hpp" diff --git a/src/test/testoption.hpp b/src/test/test-runner-config.hpp similarity index 86% rename from src/test/testoption.hpp rename to src/test/test-runner-config.hpp index 54ed9272f..69d73958b 100644 --- a/src/test/testoption.hpp +++ b/src/test/test-runner-config.hpp @@ -1,5 +1,5 @@ /* - TESTOPTION.hpp - handle cmdline for invoking Testsuite + TEST-RUNNER-CONFIG.hpp - handle cmdline for invoking Testsuite Copyright (C) 2008, Hermann Vosseler @@ -12,13 +12,13 @@ */ -/** @file testoption.hpp - ** Commandline options for our unittest test-suite executable. +/** @file test-runner-config.hpp + ** Commandline options for controlling the test-suite. */ -#ifndef TESTSUPPORT_TESTOPTION_H -#define TESTSUPPORT_TESTOPTION_H +#ifndef TESTSUPPORT_TEST_RUNNER_CONFIG_H +#define TESTSUPPORT_TEST_RUNNER_CONFIG_H #include "lib/cmdline.hpp" #include "lib/nocopy.hpp" @@ -74,4 +74,4 @@ namespace test { } // namespace test -#endif /*TESTSUPPORT_TESTOPTION_H*/ +#endif /*TESTSUPPORT_TEST_RUNNER_CONFIG_H*/ diff --git a/src/vault/cache/__planned__ b/src/vault/cache/__planned__ new file mode 100644 index 000000000..3a97244b2 --- /dev/null +++ b/src/vault/cache/__planned__ @@ -0,0 +1 @@ +planned topic in the vault diff --git a/src/vault/io/__planned__ b/src/vault/io/__planned__ new file mode 100644 index 000000000..3a97244b2 --- /dev/null +++ b/src/vault/io/__planned__ @@ -0,0 +1 @@ +planned topic in the vault diff --git a/src/vault/out/__planned__ b/src/vault/out/__planned__ new file mode 100644 index 000000000..3a97244b2 --- /dev/null +++ b/src/vault/out/__planned__ @@ -0,0 +1 @@ +planned topic in the vault diff --git a/src/vault/storage/__planned__ b/src/vault/storage/__planned__ new file mode 100644 index 000000000..3a97244b2 --- /dev/null +++ b/src/vault/storage/__planned__ @@ -0,0 +1 @@ +planned topic in the vault diff --git a/src/vault/toolkit/__planned__ b/src/vault/toolkit/__planned__ new file mode 100644 index 000000000..3a97244b2 --- /dev/null +++ b/src/vault/toolkit/__planned__ @@ -0,0 +1 @@ +planned topic in the vault diff --git a/tests/00support.tests b/tests/00support.tests index 4dcc187b2..fe7a1a8ef 100644 --- a/tests/00support.tests +++ b/tests/00support.tests @@ -64,7 +64,7 @@ return: 0 END -TEST "Testsuite option handling" TestOption_test < Testgroup=ALL out-lit: --> Test-ID =--missing-- diff --git a/tests/SConscript b/tests/SConscript index 27ff59bc7..61737e88d 100644 --- a/tests/SConscript +++ b/tests/SConscript @@ -82,7 +82,7 @@ testSrcDirs = globRootdirs('*') testcases = [testCases(env, dir) for dir in testSrcDirs if not dir in specialDirs] testLibs = list(sharedTestLibs.values()) -testrunner = envSuite.Program("test-suite", ["testrunner.cpp"]+testLibs+test_support+core_lib) +testrunner = envSuite.Program("test-suite", ["test-runner.cpp"]+testLibs+test_support+core_lib) testsuite = ( testcases diff --git a/tests/steam/engine/buffer-metadata-test.cpp b/tests/steam/engine/buffer-metadata-test.cpp index 52323aa54..b1213e71e 100644 --- a/tests/steam/engine/buffer-metadata-test.cpp +++ b/tests/steam/engine/buffer-metadata-test.cpp @@ -18,20 +18,22 @@ #include "lib/error.hpp" #include "test/run.hpp" +#include "test/test-frame.hpp" #include "test/test-helper.hpp" #include "steam/engine/buffer-metadata.hpp" -#include "steam/engine/testframe.hpp" #include "lib/util.hpp" #include + using std::strncpy; using std::unique_ptr; +using test::TestFrame; +using test::testData; using util::isSameObject; using util::isnil; using lib::randStr; - namespace steam { namespace engine{ namespace test { diff --git a/tests/steam/engine/buffer-provider-protocol-test.cpp b/tests/steam/engine/buffer-provider-protocol-test.cpp index d791651c9..e15076798 100644 --- a/tests/steam/engine/buffer-provider-protocol-test.cpp +++ b/tests/steam/engine/buffer-provider-protocol-test.cpp @@ -18,27 +18,29 @@ #include "lib/error.hpp" #include "test/run.hpp" +#include "test/test-frame.hpp" #include "test/test-helper.hpp" #include "test/tracking-dummy.hpp" +#include "test/test-rand-ontology.hpp" #include "steam/engine/diagnostic-buffer-provider.hpp" -#include "steam/engine/test-rand-ontology.hpp" -#include "steam/engine/testframe.hpp" #include "lib/iter-zip.hpp" #include + using util::isSameObject; +using test::TestFrame; +using test::testData; using lib::HashVal; using lib::zip; - namespace steam { namespace engine{ namespace test { + namespace ont = ::test::ont; using LERR_(LIFECYCLE); - namespace { // Test fixture const uint TEST_ELMS = 50; diff --git a/tests/steam/engine/diagnostic-buffer-provider-test.cpp b/tests/steam/engine/diagnostic-buffer-provider-test.cpp index 16abc0a9a..3f58cd635 100644 --- a/tests/steam/engine/diagnostic-buffer-provider-test.cpp +++ b/tests/steam/engine/diagnostic-buffer-provider-test.cpp @@ -18,22 +18,23 @@ #include "lib/error.hpp" #include "test/run.hpp" +#include "test/test-frame.hpp" #include "steam/engine/diagnostic-buffer-provider.hpp" -#include "steam/engine/testframe.hpp" #include "lib/util.hpp" #include #include #include +using util::isSameAdr; +using util::isSameObject; +using test::TestFrame; +using test::testData; namespace steam { namespace engine{ namespace test { - using util::isSameAdr; - using util::isSameObject; - namespace { // Test fixture const uint NUM_ELMS = 50; diff --git a/tests/steam/engine/node-devel-test.cpp b/tests/steam/engine/node-devel-test.cpp index f69676bcc..11dc50549 100644 --- a/tests/steam/engine/node-devel-test.cpp +++ b/tests/steam/engine/node-devel-test.cpp @@ -19,9 +19,9 @@ #include "test/run.hpp" #include "lib/hash-combine.hpp" #include "test/test-helper.hpp" +#include "test/test-rand-ontology.hpp" #include "steam/engine/engine-ctx.hpp" #include "steam/engine/node-builder.hpp" -#include "steam/engine/test-rand-ontology.hpp" #include "lib/iter-zip.hpp" #include "lib/random.hpp" @@ -34,7 +34,9 @@ using std::array; using std::vector; using std::make_tuple; using test::showType; - +using test::TestFrame; +using test::testRand; +namespace ont = test::ont; namespace steam { namespace engine{ diff --git a/tests/steam/engine/node-link-test.cpp b/tests/steam/engine/node-link-test.cpp index 292a36936..7cc90a17e 100644 --- a/tests/steam/engine/node-link-test.cpp +++ b/tests/steam/engine/node-link-test.cpp @@ -17,10 +17,10 @@ #include "test/run.hpp" +#include "test/test-rand-ontology.hpp" #include "steam/engine/engine-ctx.hpp" #include "steam/engine/proc-node.hpp" #include "steam/engine/node-builder.hpp" -#include "steam/engine/test-rand-ontology.hpp" #include "steam/engine/diagnostic-buffer-provider.hpp" #include "steam/asset/meta/time-grid.hpp" #include "lib/time/timequant.hpp" @@ -30,19 +30,20 @@ #include using std::array; +using lib::time::Time; +using lib::time::QuTime; +using lib::time::FrameNr; +using lib::time::FrameCnt; using util::isnil; using util::isSameObject; - +using test::TestFrame; +using test::testRand; +namespace ont = test::ont; namespace steam { namespace engine{ namespace test { - using lib::time::Time; - using lib::time::QuTime; - using lib::time::FrameNr; - using lib::time::FrameCnt; - namespace { ont::Flavr SRC_A = 10; ///< »chain-A« arbitrary source frame marker ont::Flavr SRC_B = 20; ///< similar for »chain-B« diff --git a/tests/steam/engine/output-proxy-provider-test.cpp b/tests/steam/engine/output-proxy-provider-test.cpp index 3f41fc07f..413cb5195 100644 --- a/tests/steam/engine/output-proxy-provider-test.cpp +++ b/tests/steam/engine/output-proxy-provider-test.cpp @@ -18,19 +18,22 @@ #include "test/run.hpp" -//#include "steam/play/diagnostic-output-slot.hpp" +#include "test/test-frame.hpp" +#include "test/test-rand-ontology.hpp" #include "steam/engine/buffer-proxy-adaptor.hpp" -#include "steam/engine/test-rand-ontology.hpp" #include "lib/meta/prop-builder.hpp" #include "test/diagnostic-output.hpp" ////////////////////TODO +using test::TestFrame; +using test::ont::manipulateFrame; + +using lib::meta::PropBuilder; + namespace steam { namespace engine{ namespace test { - using lib::meta::PropBuilder; - /***************************************************************//** @@ -67,7 +70,7 @@ namespace test { CHECK (handle.isValid()); auto& data = handle.accessAs(); uint64_t param = defaultGen.u64(); - ont::manipulateFrame (&data, &data, param); + manipulateFrame (&data, &data, param); HashVal check = data.getChecksum(); // »client« is done... diff --git a/tests/steam/engine/testframe-test.cpp b/tests/steam/engine/testframe-test.cpp index 207c2ba45..0e21c2149 100644 --- a/tests/steam/engine/testframe-test.cpp +++ b/tests/steam/engine/testframe-test.cpp @@ -11,14 +11,14 @@ * *****************************************************************/ -/** @file testframe-test.cpp +/** @file test-frame-test.cpp ** unit test \ref TestFrame_test */ #include "test/run.hpp" #include "test/test-helper.hpp" -#include "steam/engine/testframe.hpp" +#include "test/test-frame.hpp" #include "lib/util.hpp" #include @@ -28,9 +28,7 @@ using test::Test; using util::isSameObject; using std::unique_ptr; - -namespace steam { -namespace engine{ +namespace test { namespace test { namespace { // used internally @@ -267,4 +265,4 @@ namespace test { -}}} // namespace steam::engine::test +}} // namespace test::test diff --git a/tests/steam/play/diagnostic-output-slot.hpp b/tests/steam/play/diagnostic-output-slot.hpp index d398ba2af..3ff9c5494 100644 --- a/tests/steam/play/diagnostic-output-slot.hpp +++ b/tests/steam/play/diagnostic-output-slot.hpp @@ -36,7 +36,7 @@ #include "lib/symbol.hpp" #include "lib/util.hpp" #include "vessel/advice.hpp" -#include "steam/engine/testframe.hpp" +#include "test/test-frame.hpp" //#include "lib/sync.hpp" //#include @@ -53,11 +53,11 @@ namespace play { using lib::HashVal; using util::unConst; using util::contains; + using test::TestFrame; using lib::time::FrameRate; using steam::asset::meta::PGrid; using steam::asset::meta::TimeGrid; using steam::engine::BuffDescr; - using steam::engine::test::TestFrame; using steam::engine::NaiveBufferSetup; //using std::vector; diff --git a/tests/steam/play/output-slot-protocol-test.cpp b/tests/steam/play/output-slot-protocol-test.cpp index 34d885993..676fa8ed4 100644 --- a/tests/steam/play/output-slot-protocol-test.cpp +++ b/tests/steam/play/output-slot-protocol-test.cpp @@ -20,19 +20,17 @@ #include "steam/play/diagnostic-output-slot.hpp" #include "steam/engine/buffhandle.hpp" -#include "steam/engine/testframe.hpp" +#include "test/test-frame.hpp" +using test::TestFrame; +using test::testData; +using steam::engine::BuffHandle; namespace steam { namespace play { namespace test { - using steam::engine::BuffHandle; - using steam::engine::test::testData; - using steam::engine::test::TestFrame; - - /***************************************************************//** diff --git a/tests/testrunner.cpp b/tests/test-runner.cpp similarity index 87% rename from tests/testrunner.cpp rename to tests/test-runner.cpp index bae8e41a7..7812b1a37 100644 --- a/tests/testrunner.cpp +++ b/tests/test-runner.cpp @@ -1,5 +1,5 @@ /* - Testrunner - execute a suite of test objects, possibly filtered by category + TestRunner - execute a suite of test objects, possibly filtered by category Copyright (C) 2007,2008, Hermann Vosseler @@ -11,7 +11,7 @@ * *****************************************************************/ -/** @file testrunner.cpp +/** @file test-runner.cpp ** Lumiera unit test suite ** A simple test runner application. ** The build system will link the individual shared libraries with the test code @@ -19,7 +19,7 @@ */ #include "include/lifecycle.hpp" -#include "test/testoption.hpp" +#include "test/test-runner-config.hpp" #include "test/suite.hpp" using vessel::LifecycleHook; @@ -27,8 +27,7 @@ using vessel::ON_GLOBAL_INIT; using vessel::ON_GLOBAL_SHUTDOWN; -/** run all tests or any single test specified in the first - * command line argument. +/** Run all tests or any single test specified in the first command line argument. * @return exit code signalling if any exception was caught * at the level of individual test cases * @throws any further exceptions raised outside of test cases diff --git a/tests/lib/test/event-log-test.cpp b/tests/test/event-log-test.cpp similarity index 100% rename from tests/lib/test/event-log-test.cpp rename to tests/test/event-log-test.cpp diff --git a/tests/lib/test/temp-dir-test.cpp b/tests/test/temp-dir-test.cpp similarity index 100% rename from tests/lib/test/temp-dir-test.cpp rename to tests/test/temp-dir-test.cpp diff --git a/tests/lib/test/test-helper-test.cpp b/tests/test/test-helper-test.cpp similarity index 100% rename from tests/lib/test/test-helper-test.cpp rename to tests/test/test-helper-test.cpp diff --git a/tests/lib/test/test-helper-variadic-test.cpp b/tests/test/test-helper-variadic-test.cpp similarity index 100% rename from tests/lib/test/test-helper-variadic-test.cpp rename to tests/test/test-helper-variadic-test.cpp diff --git a/tests/lib/test/test-option-test.cpp b/tests/test/test-runner-config-test.cpp similarity index 91% rename from tests/lib/test/test-option-test.cpp rename to tests/test/test-runner-config-test.cpp index f8e63d6cb..479f26bbe 100644 --- a/tests/lib/test/test-option-test.cpp +++ b/tests/test/test-runner-config-test.cpp @@ -1,5 +1,5 @@ /* - TestOption(Test) - parsing of cmd line options for running Testcases + TestRunnerConfig(Test) - parsing of cmd line options for running Testcases Copyright (C) 2008, Hermann Vosseler @@ -11,14 +11,14 @@ * *****************************************************************/ -/** @file test-option-test.cpp - ** unit test \ref TestOption_test +/** @file test-runner-config-test.cpp + ** unit test \ref TestRunnerConfig_test */ #include "test/run.hpp" #include "test/test-helper.hpp" -#include "test/testoption.hpp" +#include "test/test-runner-config.hpp" #include "lib/format-cout.hpp" #include "lib/util.hpp" @@ -36,7 +36,7 @@ namespace test { * @see test::Suite * @see util::Cmdline */ - class TestOption_test : public Test + class TestRunnerConfig_test : public Test { void run (Arg) @@ -93,7 +93,7 @@ namespace test { } }; - LAUNCHER (TestOption_test, "function common"); + LAUNCHER (TestRunnerConfig_test, "function common"); } // namespace test diff --git a/tests/lib/test/test-tracking-test.cpp b/tests/test/test-tracking-test.cpp similarity index 100% rename from tests/lib/test/test-tracking-test.cpp rename to tests/test/test-tracking-test.cpp diff --git a/tests/vault/cache/__planned__ b/tests/vault/cache/__planned__ new file mode 100644 index 000000000..3a97244b2 --- /dev/null +++ b/tests/vault/cache/__planned__ @@ -0,0 +1 @@ +planned topic in the vault diff --git a/tests/vault/io/__planned__ b/tests/vault/io/__planned__ new file mode 100644 index 000000000..3a97244b2 --- /dev/null +++ b/tests/vault/io/__planned__ @@ -0,0 +1 @@ +planned topic in the vault diff --git a/tests/vault/out/__planned__ b/tests/vault/out/__planned__ new file mode 100644 index 000000000..3a97244b2 --- /dev/null +++ b/tests/vault/out/__planned__ @@ -0,0 +1 @@ +planned topic in the vault diff --git a/tests/vault/storage/__planned__ b/tests/vault/storage/__planned__ new file mode 100644 index 000000000..3a97244b2 --- /dev/null +++ b/tests/vault/storage/__planned__ @@ -0,0 +1 @@ +planned topic in the vault diff --git a/tests/vault/toolkit/__planned__ b/tests/vault/toolkit/__planned__ new file mode 100644 index 000000000..3a97244b2 --- /dev/null +++ b/tests/vault/toolkit/__planned__ @@ -0,0 +1 @@ +planned topic in the vault diff --git a/wiki/thinkPad.ichthyo.mm b/wiki/thinkPad.ichthyo.mm index 3927a97d9..54e9581a7 100644 --- a/wiki/thinkPad.ichthyo.mm +++ b/wiki/thinkPad.ichthyo.mm @@ -72169,8 +72169,12 @@ - + + + + + @@ -114191,6 +114195,162 @@ StM_bind(Builder<R1> b1, Extension<R1,R2> extension) + + + + +
    +
  • + die ont::manipulate()-Funktion ist seit letztem Jahr unverändert +
  • +
  • + im NodeDevel_test wurde der direkte Aufruf des DiagnosticBufferProvider durch EngineCtx::access().mem  ersetzt.... +
  • +
+ +
+
+ + + + +

+ Damit bin ich nun schon bei einigen Tests mit TestFrame »auf die Schnauze gefallen«... +

+

+ Wenn rein-zufällig im Speicher von einem vorherigen Test ein valider TestFrame liegt, dann ist der eingebaute Konsistenzcheck ausgehebelt, und man merkt nicht, daß der Test falsch geschrieben ist +

+ +
+ + +
+
+ + + + +

+ ...gemäß der allgemeinen Logik des Render-Node-processing; das Weaving-Pattern stellt die Buffer bereit, so wie per Buffer-Descriptor angefordert — die proc-Funktion ist dann allein dafür zuständig, was im Zielpuffer passiert; ob die Funktion in-Place-fähig ist, hängt an ihrer internen Implementierung +

+ +
+ +
+ + + + + +

+ hier liegt wohl ein konzeptioneller Mismatch vor +

+ +
+ + + + + + + +

+ processing_manipulateFrame() +

+

+ Der Test spielt beide Fälle eigens druch... +

+
    +
  • + im ersten Lauf wird explizit vorher ein Output-Buffer neu erzeugt +
  • +
  • + Im zweiten Fall arbeitet die Funktionauf einem einzigen Buffer +
  • +
+ +
+
+ + + + + + +

+ Node-Spec: +

+

+ "Test:manipulate◁—Test:generate-◎" +

+

+ Das bedeutet... +

+
    +
  • + der pull()-Aufruf aus dem Test operiert direkt auf der Filter-Node +
  • +
  • + der optionale Output-Buffer wird hier gegeben, und wandert in die shed()-Operation +
  • +
  • + damit wird dort lediglich das von außen gegebene BuffHandle durchgereicht +
  • +
  • + außerdem ruft shed() ⟶ Feed::connect() ⟹ das greift via BuffHandle und konfiguriertem Typ auf den Buffer zu +
  • +
  • + und invoke() greift lediglich auf den schon bestehenden (bzw. in dem Fall noch nicht bestehenden) Buffer-Inhalt zu +
  • +
+ +
+
+ + + + + + + + + + + + +

+ es prüft auf einem uninitialised-Block: TestFrame::isValid() +

+ +
+
+ + + + + + +

+ ...was die Situation etwas verwirrend macht: wir haben nämlich gar keine Echte Sachdomäne, und damit auch keine Domänen-Ontologie; vielmehr »sauge ich mir« die Bedingtheiten aus den Fingern, gemäß einer ungefähren Vorstellung, wie so eine Media-Lib vorgeht (ich hab nämlich nie intensiver mit so einer Lib gearbeitet). Hinzu kommt, ich hab nur wenige Bausteine, nämlich den TestFrame, und ein paar Berechnungsfunktionen. So ziemlich alles, was eine echte Domänen-Ontologie ausmacht, fehlt mir hier, daher muß ich mit »gedachten Bedeutungen« operieren +

+ +
+ +
+ + + + + + + + + + + + + + @@ -114919,7 +115079,7 @@ StM_bind(Builder<R1> b1, Extension<R1,R2> extension)
- + @@ -115147,7 +115307,7 @@ StM_bind(Builder<R1> b1, Extension<R1,R2> extension) - + @@ -115166,9 +115326,9 @@ StM_bind(Builder<R1> b1, Extension<R1,R2> extension) - - - + + + @@ -115176,7 +115336,7 @@ StM_bind(Builder<R1> b1, Extension<R1,R2> extension) - + @@ -115193,9 +115353,10 @@ StM_bind(Builder<R1> b1, Extension<R1,R2> extension) - + + - + @@ -115250,7 +115411,8 @@ StM_bind(Builder<R1> b1, Extension<R1,R2> extension) - + + @@ -115279,10 +115441,11 @@ StM_bind(Builder<R1> b1, Extension<R1,R2> extension) - + - + + @@ -115293,42 +115456,34 @@ StM_bind(Builder<R1> b1, Extension<R1,R2> extension) - + - - - +

...wo es gewollt war, daß jedermann jederzeit irgendwelche »Interfaces« sich ausdenken kann, auf die dann jederzeit jedermann mit irgendwelchen Plug-ins zugreifen kann

- -
+
- - - +

wo es konzeptionell auch hingehören würde (wenn man erst mal zuläßt, daß es Grenzen gibt, und eine Applikation, die diese umfaßt)

- -
+
- - - +

....was ich wieder einmal als eine Bestätigung meiner Intuition verbuche... @@ -115375,15 +115530,12 @@ StM_bind(Builder<R1> b1, Extension<R1,R2> extension) Insofern können siche beide Seiten jeweils in ihrem Urteil bestätigt sehen.

- -
+
- - - +

nachdem das nun abgeräumt ist, wird die Umstellung des Test-Builds tatsächlich einfach @@ -115391,9 +115543,7 @@ StM_bind(Builder<R1> b1, Extension<R1,R2> extension) - - - +

Die Hilfsfunktion hatte ich seinerzeit ja nur eingeführt, weil ich mit einem Haufen von Unterverzeichnissen konfontiert war, die keiner übergreifenden Struktur folgen. Und dazu war die Erwartung gesetzt, daß jede Menge weitere solche ad-hoc-Strukturen dazukommen. Ich wollte aber nicht für jede neue Idee von Christian wieder ein neues separates SConscript pflegen, denn dann wäre ich effektiv auf dem gleichen Level von Explizitiheit, den ich bei Autotools abgelehnt habe. @@ -115414,19 +115564,26 @@ StM_bind(Builder<R1> b1, Extension<R1,R2> extension) - - - +

...damit ich noch eine Chance habe, später zu entziffern, was ich mir seinerzeit gedacht habe

- -
+
- + + + + +

+ Tests für die neue Test-Support-Lib ⟶ neuer Folder / neue Komponente tests/test +

+ +
+
+ @@ -115438,20 +115595,22 @@ StM_bind(Builder<R1> b1, Extension<R1,R2> extension) +
-
+ + + + - -