main.cpp : Changes to support calling wt_bank::test from test_stub()

This commit is contained in:
kevin 2024-07-08 18:36:37 -04:00
parent 080c90725f
commit ae8f5e1b80

View File

@ -10,8 +10,6 @@
#include "cwIoFlowCtl.h" #include "cwIoFlowCtl.h"
#include "cwMidi.h"
#include "cwMidiFile.h"
#include "cwTest.h" #include "cwTest.h"
@ -373,21 +371,15 @@ errLabel:
} }
#include "cwMidi.h"
#include "cwMidiFile.h"
#include "cwDspTypes.h"
#include "cwWaveTableBank.h"
void _test_stub( app_t& app ) void _test_stub( app_t& app )
{ {
rc_t rc = kOkRC;
midi::file::handle_t mfH;
cwLogInfo("Test stub");
if(( rc = midi::file::open_csv(mfH,"/home/kevin/temp/temp_midi.csv")) != kOkRC )
{
goto errLabel;
}
errLabel:
close(mfH);
wt_bank::test("/home/kevin/temp/wt/bank");
} }
@ -414,6 +406,11 @@ int main( int argc, char* argv[] )
_print_command_line_help(); _print_command_line_help();
goto errLabel; goto errLabel;
case kTestStubSelId:
_test_stub(app);
goto errLabel;
break;
default: default:
break; break;
} }
@ -439,11 +436,6 @@ int main( int argc, char* argv[] )
goto errLabel; goto errLabel;
break; break;
case kTestStubSelId:
_test_stub(app);
goto errLabel;
break;
} }
if( app.cmd_line_pgm_label != nullptr ) if( app.cmd_line_pgm_label != nullptr )