main.cpp : Added test for cwSpScQueueTmpl.

This commit is contained in:
kevin.larke 2020-04-19 13:02:25 -04:00
parent a7b511b1cf
commit faec132618

View File

@ -10,6 +10,7 @@
#include "cwObject.h" #include "cwObject.h"
#include "cwThread.h" #include "cwThread.h"
#include "cwSpScBuf.h" #include "cwSpScBuf.h"
#include "cwSpScQueueTmpl.h"
#include "cwThreadMach.h" #include "cwThreadMach.h"
#include "cwWebSock.h" #include "cwWebSock.h"
#include "cwWebSockSvr.h" #include "cwWebSockSvr.h"
@ -188,6 +189,7 @@ void objectTest( cw::object_t* cfg, int argc, const char* argv[] )
void timeTest( cw::object_t* cfg, int argc, const char* argv[] ) { cw::time::test(); } void timeTest( cw::object_t* cfg, int argc, const char* argv[] ) { cw::time::test(); }
void threadTest( cw::object_t* cfg, int argc, const char* argv[] ) { cw::threadTest(); } void threadTest( cw::object_t* cfg, int argc, const char* argv[] ) { cw::threadTest(); }
void spscBuf( cw::object_t* cfg, int argc, const char* argv[] ) { cw::spsc_buf::test(); } void spscBuf( cw::object_t* cfg, int argc, const char* argv[] ) { cw::spsc_buf::test(); }
void spscQueueTmpl( cw::object_t* cfg, int argc, const char* argv[] ) { cw::testSpScQueueTmpl(); }
void websockSrvTest( cw::object_t* cfg, int argc, const char* argv[] ) { cw::websockSrvTest(); } void websockSrvTest( cw::object_t* cfg, int argc, const char* argv[] ) { cw::websockSrvTest(); }
void serialPortSrvTest( cw::object_t* cfg, int argc, const char* argv[] ) { cw::serialPortSrvTest(); } void serialPortSrvTest( cw::object_t* cfg, int argc, const char* argv[] ) { cw::serialPortSrvTest(); }
void midiDeviceTest( cw::object_t* cfg, int argc, const char* argv[] ) { cw::midi::device::test();} void midiDeviceTest( cw::object_t* cfg, int argc, const char* argv[] ) { cw::midi::device::test();}
@ -417,6 +419,7 @@ int main( int argc, const char* argv[] )
{ "time", timeTest }, { "time", timeTest },
{ "thread", threadTest }, { "thread", threadTest },
{ "spscBuf", spscBuf }, { "spscBuf", spscBuf },
{ "spscQueueTmpl", spscQueueTmpl },
{ "websockSrv", websockSrvTest }, { "websockSrv", websockSrvTest },
{ "serialSrv", serialPortSrvTest }, { "serialSrv", serialPortSrvTest },
{ "midiDevice", midiDeviceTest }, { "midiDevice", midiDeviceTest },