LUMIERA.clone/tests/core/steam/engine/job-planning-test.cpp
Ichthyostega a551314e80 Job-Planning: start rework of the planning data aggregation
The initial implementation effort for Player and Job-Planning
has been reviewed and largely reworked, and some parts are now
obsoleted by the reworked alternative and can be disabled.

The basic idea will be retained though: JobPlanning is a
data aggregator and performs the final step of creating a Job
2023-06-15 03:51:07 +02:00

140 lines
3.6 KiB
C++

/*
JobPlanning(Test) - data evaluation for frame job creation
Copyright (C) Lumiera.org
2023, Hermann Vosseler <Ichthyostega@web.de>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *****************************************************/
/** @file job-planning-test.cpp
** unit test \ref JobPlanning_test
**
** @warning as of 4/2023 a complete rework of the Dispatcher is underway ///////////////////////////////////////////TICKET #1275
*/
#include "lib/test/run.hpp"
#include "lib/error.hpp"
//#include "steam/engine/procnode.hpp"
//#include "steam/play/dummy-play-connection.hpp"
//#include "steam/mobject/model-port.hpp"
//#include "steam/engine/dispatcher.hpp"
#include "steam/play/timings.hpp"
#include "lib/time/timevalue.hpp"
//#include "lib/time/timequant.hpp"
//#include "lib/format-cout.hpp"
//#include "lib/depend.hpp"
//#include "lib/itertools.hpp"
//#include "lib/util-coll.hpp"
//#include "lib/util.hpp"
//#include <functional>
//#include <vector>
using test::Test;
//using util::isnil;
//using util::last;
//using std::vector;
//using std::function;
//using std::rand;
namespace steam {
namespace engine{
namespace test {
// using lib::time::FrameRate;
// using lib::time::Duration;
// using lib::time::Offset;
// using lib::time::TimeVar;
// using lib::time::Time;
// using mobject::ModelPort;
// using play::Timings;
namespace { // used internally
// ModelPort
// getTestPort()
// {
// return mockDispatcher().provideMockModelPort();
// }
} // (End) internal defs
#if false /////////////////////////////////////////////////////////////////////////////////////////////////////////////UNIMPLEMENTED :: TICKET #1301
#endif /////////////////////////////////////////////////////////////////////////////////////////////////////////////UNIMPLEMENTED :: TICKET #1301
/***************************************************************//**
* @test document and verify the data aggregation and the calculations
* necessary to prepare render jobs for scheduling.
* @todo WIP-WIP 6/2023
*/
class JobPlanning_test : public Test
{
virtual void
run (Arg)
{
simpleUsage();
calculateDeadline();
setupDependentJob();
}
/** @test demonstrate a simple usage scenario
*/
void
simpleUsage()
{
}
/** @test verify the timing calculations to establish
* the scheduling deadline of a simple render job
*/
void
calculateDeadline()
{
}
/** @test verify the setup of a prerequisite job in relation
* to the master job depending on this prerequisite
*/
void
setupDependentJob()
{
}
};
/** Register this test class... */
LAUNCHER (JobPlanning_test, "unit engine");
}}} // namespace steam::engine::test