From a09ca54315e654151c29dfd64a916edfeb159c59 Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 24 May 2024 16:42:24 -0400 Subject: [PATCH] cwFlowTest.cpp : Added 'compare' as a command line arg. and removed it as a system param. --- cwFlowTest.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cwFlowTest.cpp b/cwFlowTest.cpp index 3678a19..6e8c74c 100644 --- a/cwFlowTest.cpp +++ b/cwFlowTest.cpp @@ -215,7 +215,7 @@ cw::rc_t cw::flow::test( const object_t* cfg, int argc, const char* argv[] ) const char* proj_dir = nullptr; const char* test_ref_dir = nullptr; bool cmp_enable_fl = false; - const char* test_name = nullptr; + const char* test_name = nullptr; bool test_all_fl = false; if( argc < 2 || textLength(argv[1]) == 0 ) @@ -235,9 +235,13 @@ cw::rc_t cw::flow::test( const object_t* cfg, int argc, const char* argv[] ) goto errLabel; } + // was 'compare' requested + if( argc > 2 && textLength(argv[2])!=0 and textIsEqual(argv[2],"compare") ) + cmp_enable_fl = true; + + // get the subnet cfg filename if((rc = cfg->getv_opt("subnet_cfg_fname",subnet_cfg_fname, - "cmp_enable_fl", cmp_enable_fl, "test_ref_dir",test_ref_dir)) != kOkRC ) { rc = cwLogError(rc,"The name of the subnet file could not be parsed.");