Changeset b24cbaf
- Timestamp:
- Sep 12, 2024, 4:14:29 PM (4 weeks ago)
- Branches:
- master
- Children:
- 23fb819
- Parents:
- 406c806
- Location:
- tests
- Files:
-
- 4 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
r406c806 rb24cbaf 81 81 avltree/avl-private.h \ 82 82 avltree/avl.h \ 83 configs/.in/parseconfig-all.txt \84 configs/.in/parseconfig-errors.txt \85 configs/.in/parseconfig-missing.txt \86 83 exceptions/except-io.hfa \ 87 84 exceptions/with-threads.hfa \ 88 io/.in/io.data \89 io/.in/many_read.data \90 85 meta/fork+exec.hfa \ 91 86 concurrency/clib_tls.c \ … … 100 95 echo "Gathering test files" 101 96 for file in `${TEST_PY} --list-dist`; do \ 102 if test -f ${srcdir}/$${file}; then \97 if ls ${srcdir}/$${file} > /dev/null 2>&1; then \ 103 98 ${MKDIR_P} $$(dirname ${distdir}/$${file}); \ 104 cp -df ${srcdir}/$${file} $ {distdir}/$${file}; \99 cp -df ${srcdir}/$${file} $$(dirname ${distdir}/$${file}); \ 105 100 fi; \ 106 101 done -
tests/configs/parseconfig.cfa
r406c806 rb24cbaf 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/pybin/test_run.py
r406c806 rb24cbaf 29 29 return os.path.normpath( os.path.join(settings.BUILDDIR, self.path, ".out" , "%s.log" % self.name) ) 30 30 31 # one file that goes to the test's stdin 31 32 def input(self): 32 33 return os.path.normpath( os.path.join(settings.SRCDIR , self.path, ".in" , "%s.txt" % self.name) ) 34 35 # several files available for this test to open 36 def inputs_all(self): 37 return os.path.normpath( os.path.join(settings.SRCDIR , self.path, ".in" , "%s.*" % self.name) ) 33 38 34 39 def target_output(self): -
tests/test.py
r406c806 rb24cbaf 352 352 for t in tests: 353 353 print(os.path.relpath(t.expect(), settings.SRCDIR), end=' ') 354 print(os.path.relpath(t.input () , settings.SRCDIR), end=' ')354 print(os.path.relpath(t.inputs_all() , settings.SRCDIR), end=' ') 355 355 code, out, err = make_recon(t.target()) 356 356 … … 360 360 361 361 print(' '.join(re.findall(r'([^\s]+\.cfa)', out)), end=' ') 362 363 print('')364 362 365 363 # done
Note: See TracChangeset
for help on using the changeset viewer.