Changeset 5ef4008 for tests/configs
- Timestamp:
- Sep 13, 2024, 2:43:22 PM (19 months ago)
- Branches:
- master, stuck-waitfor-destruct
- Children:
- 8c79dc3c
- Parents:
- c494b84 (diff), 9739c56f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- tests/configs
- Files:
-
- 4 edited
- 3 moved
-
.in/parseconfig.all.txt (moved) (moved from tests/configs/.in/parseconfig-all.txt )
-
.in/parseconfig.errors.txt (moved) (moved from tests/configs/.in/parseconfig-errors.txt )
-
.in/parseconfig.missing.txt (moved) (moved from tests/configs/.in/parseconfig-missing.txt )
-
parsebools.cfa (modified) (1 diff)
-
parseconfig.cfa (modified) (7 diffs)
-
parsenums.cfa (modified) (1 diff)
-
usage.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/configs/parsebools.cfa
rc494b84 r5ef4008 50 50 } 51 51 52 int true_main( const char * path, c har * env[] ) {52 int true_main( const char * path, const char * env[] ) { 53 53 printf( "no arg:\n" ); 54 54 if ( pid_t child = strict_fork(); child == 0 ) { -
tests/configs/parseconfig.cfa
rc494b84 r5ef4008 50 50 sout | "Different types of destination addresses"; 51 51 52 parse_config( xstr(IN_DIR) "parseconfig -all.txt", entries, NUM_ENTRIES, parse_tabular_config_format );52 parse_config( xstr(IN_DIR) "parseconfig.all.txt", entries, NUM_ENTRIES, parse_tabular_config_format ); 53 53 54 54 sout | "Stop cost: " | config_params.stop_cost; … … 77 77 sout | "Missing_Config_Entries thrown when config file is missing entries we want"; 78 78 try { 79 parse_config( xstr(IN_DIR) "parseconfig -missing.txt", entries, NUM_ENTRIES, parse_tabular_config_format );79 parse_config( xstr(IN_DIR) "parseconfig.missing.txt", entries, NUM_ENTRIES, parse_tabular_config_format ); 80 80 } catch( Missing_Config_Entries * ex ) { 81 81 msg( ex ); … … 92 92 93 93 try { 94 parse_config( xstr(IN_DIR) "parseconfig -errors.txt", entry, 1, parse_tabular_config_format );94 parse_config( xstr(IN_DIR) "parseconfig.errors.txt", entry, 1, parse_tabular_config_format ); 95 95 } catch( Parse_Failure * ex ) { 96 96 msg( ex ); … … 106 106 107 107 try { 108 parse_config( xstr(IN_DIR) "parseconfig -errors.txt", entries, NUM_ENTRIES, parse_tabular_config_format );108 parse_config( xstr(IN_DIR) "parseconfig.errors.txt", entries, NUM_ENTRIES, parse_tabular_config_format ); 109 109 } catch( Validation_Failure * ex ) { 110 110 msg( ex ); … … 115 115 sout | "No error is thrown when validation succeeds"; 116 116 config_params.stop_cost = -1; // Reset value 117 parse_config( xstr(IN_DIR) "parseconfig -all.txt", entries, NUM_ENTRIES, parse_tabular_config_format );117 parse_config( xstr(IN_DIR) "parseconfig.all.txt", entries, NUM_ENTRIES, parse_tabular_config_format ); 118 118 sout | "Stop cost: " | config_params.stop_cost; 119 119 sout | nl; … … 126 126 127 127 config_params.stop_cost = -1; // Reset value 128 parse_config( xstr(IN_DIR) "parseconfig -all.txt", entries, NUM_ENTRIES, parse_tabular_config_format );128 parse_config( xstr(IN_DIR) "parseconfig.all.txt", entries, NUM_ENTRIES, parse_tabular_config_format ); 129 129 130 130 sout | "Stop cost: " | config_params.stop_cost; … … 139 139 140 140 config_params.stop_cost = -1; // Reset value 141 parse_config( xstr(IN_DIR) "parseconfig -all.txt", entries, NUM_ENTRIES, parse_tabular_config_format );141 parse_config( xstr(IN_DIR) "parseconfig.all.txt", entries, NUM_ENTRIES, parse_tabular_config_format ); 142 142 143 143 sout | "Stop cost: " | config_params.stop_cost; -
tests/configs/parsenums.cfa
rc494b84 r5ef4008 61 61 } 62 62 63 int true_main( const char * path, c har * env[] ) {63 int true_main( const char * path, const char * env[] ) { 64 64 printf( "no arg:\n" ); 65 65 if ( pid_t child = strict_fork(); child == 0 ) { -
tests/configs/usage.cfa
rc494b84 r5ef4008 108 108 109 109 // no used 110 static int true_main( const char * path, c har * env[]) { return 0; }110 static int true_main( const char * path, const char * env[]) { return 0; }
Note:
See TracChangeset
for help on using the changeset viewer.