M Starch a08dd11292
lestarch: reworking posix tasks (#992)
* lestarch: reworking posix tasks

* lestarch: correcting macOS issues; using deprecate instead of logger warnings

* lestarch: cleaning up task rework

* lestarch: fixing .start in UTs, docs, templates

* lestarch: cleaning-up non-default driver start calls

* lestarch: fixing stubbed implementation signature

* lestarch: moving reconnect up in order of args to socket read task
2021-09-16 15:33:47 -07:00

38 lines
944 B
C++

#include <Autocoders/Python/test/command_string/TestCommandImpl.hpp>
#include <Autocoders/Python/test/command_string/TestCommandSourceImpl.hpp>
#include <Fw/Obj/SimpleObjRegistry.hpp>
int main(int argc, char* argv[]) {
#if FW_PORT_TRACING
Fw::PortBase::setTrace(true);
#endif
#if FW_OBJECT_REGISTRATION == 1
Fw::SimpleObjRegistry objReg;
#endif
TestCommand1Impl testImpl("TestCmdImpl");
testImpl.init(10);
testImpl.start();
TestCommandSourceImpl cmdSrc("TestCmdSource");
cmdSrc.init();
testImpl.set_CmdStatus_OutputPort(0,cmdSrc.get_cmdStatusPort_InputPort(0));
testImpl.set_CmdReg_OutputPort(0,cmdSrc.get_cmdRegPort_InputPort(0));
cmdSrc.set_cmdSendPort_OutputPort(0,testImpl.get_CmdDisp_InputPort(0));
testImpl.regCommands();
#if FW_OBJECT_REGISTRATION == 1
objReg.dump();
#endif
Fw::CmdStringArg str("A command string");
cmdSrc.test_TEST_CMD_1(10,str,7);
Os::Task::delay(1000);
testImpl.exit();
}