- Timestamp:
- Jun 3, 2022, 3:10:01 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- 7affcda
- Parents:
- bf0263c (diff), fc134a48 (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
- Files:
-
- 5 added
- 14 edited
-
.expect/attributes.nast.x64.txt (modified) (1 diff)
-
.expect/attributes.nast.x86.txt (modified) (1 diff)
-
.expect/attributes.oast.x64.txt (modified) (1 diff)
-
.expect/attributes.oast.x86.txt (modified) (1 diff)
-
.expect/nested_function.txt (added)
-
.expect/quasiKeyword.txt (modified) (1 diff)
-
concurrent/examples/multiSort.cfa (added)
-
enum_tests/.expect/structEnum.txt (added)
-
enum_tests/structEnum.cfa (added)
-
exceptions/defaults.cfa (modified) (2 diffs)
-
include/.expect/includes.nast.txt (modified) (1 diff)
-
include/includes.cfa (modified) (7 diffs)
-
linking/exception-nothreads.cfa (modified) (1 diff)
-
linking/exception-withthreads.cfa (modified) (1 diff)
-
nested_function.cfa (added)
-
pybin/settings.py (modified) (1 diff)
-
pybin/test_run.py (modified) (1 diff)
-
quasiKeyword.cfa (modified) (3 diffs)
-
test.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/.expect/attributes.nast.x64.txt
rbf0263c r90a8125 1339 1339 } 1340 1340 1341 { 1342 ((void)(_X4_retM12__anonymous4_2=(*_X4_dstM12__anonymous4_2)) /* ?{} */); 1343 } 1344 1345 return _X4_retM12__anonymous4_2; 1341 return (*_X4_dstM12__anonymous4_2); 1346 1342 } 1347 1343 { -
tests/.expect/attributes.nast.x86.txt
rbf0263c r90a8125 1339 1339 } 1340 1340 1341 { 1342 ((void)(_X4_retM12__anonymous4_2=(*_X4_dstM12__anonymous4_2)) /* ?{} */); 1343 } 1344 1345 return _X4_retM12__anonymous4_2; 1341 return (*_X4_dstM12__anonymous4_2); 1346 1342 } 1347 1343 { -
tests/.expect/attributes.oast.x64.txt
rbf0263c r90a8125 1339 1339 } 1340 1340 1341 { 1342 ((void)(_X4_retM12__anonymous4_2=(*_X4_dstM12__anonymous4_2)) /* ?{} */); 1343 } 1344 1345 return _X4_retM12__anonymous4_2; 1341 return (*_X4_dstM12__anonymous4_2); 1346 1342 } 1347 1343 { -
tests/.expect/attributes.oast.x86.txt
rbf0263c r90a8125 1339 1339 } 1340 1340 1341 {1342 ((void)(_X4_retM12__anonymous4_2=(*_X4_dstM12__anonymous4_2)) /* ?{} */);1343 }1344 1345 1341 return _X4_retM12__anonymous4_2; 1346 1342 } -
tests/.expect/quasiKeyword.txt
rbf0263c r90a8125 1 quasiKeyword.cfa:5 4:25: warning: Compiled1 quasiKeyword.cfa:52:25: warning: Compiled -
tests/exceptions/defaults.cfa
rbf0263c r90a8125 2 2 3 3 #include <string.h> 4 #include <exception.hfa>5 4 6 5 exception log_message { … … 8 7 }; 9 8 10 _EHM_DEFINE_COPY(log_message, ) 9 // Manually define the virtual table and helper functions. 10 void copy(log_message * this, log_message * that) { 11 *this = *that; 12 } 13 11 14 const char * msg(log_message * this) { 12 15 return this->msg; 13 16 } 14 _EHM_VIRTUAL_TABLE(log_message, , log_vt); 17 18 const struct log_message_vtable log_vt @= { 19 .__cfavir_typeid : &__cfatid_log_message, 20 .size : sizeof(struct log_message), 21 .copy : copy, 22 .^?{} : ^?{}, 23 .msg : msg, 24 }; 15 25 16 26 // Logging messages don't have to be handled. -
tests/include/.expect/includes.nast.txt
rbf0263c r90a8125 1 include/includes.cfa:1 53:25: warning: Compiled1 include/includes.cfa:173:25: warning: Compiled -
tests/include/includes.cfa
rbf0263c r90a8125 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 3 22:06:07202213 // Update Count : 77 412 // Last Modified On : Sun May 22 08:27:20 2022 13 // Update Count : 779 14 14 // 15 15 … … 32 32 #include <crypt.h> 33 33 #include <ctype.h> 34 //#include <curses.h> // may not be installed 34 #if __has_include( "curses.h" ) 35 #include <curses.h> // may not be installed 36 #endif 35 37 #include <dirent.h> 36 38 #include <dlfcn.h> … … 41 43 #include <errno.h> 42 44 #include <error.h> 43 //#include <eti.h> // may not be installed, comes with ncurses 45 #if __has_include( "eti.h" ) 46 #include <eti.h> // may not be installed, comes with ncurses 47 #endif 44 48 #include <execinfo.h> 45 #include <expat.h> 49 #if __has_include( "expat.h" ) 50 #include <expat.h> // may not be installed 46 51 #include <expat_external.h> 52 #endif 47 53 #include <fcntl.h> 48 54 #include <features.h> … … 50 56 #include <fmtmsg.h> 51 57 #include <fnmatch.h> 52 //#include <form.h> // may not be installed, comes with ncurses 58 #if __has_include( "form.h" ) 59 #include <form.h> // may not be installed, comes with ncurses 60 #endif 53 61 #include <fstab.h> 54 62 #include <fts.h> … … 73 81 //#include <link.h> // CFA bug #240 nested anonymous enum fails 74 82 #include <locale.h> 75 #include <ltdl.h> 83 #if __has_include( "ltdl.h" ) 84 #include <ltdl.h> // may not be installed 85 #endif 76 86 //#include <malloc.h> // cannot include in extern "C" because of CFA #include_next 77 87 #include <math.h> 78 88 #include <mcheck.h> 79 89 #include <memory.h> 80 //#include <menu.h> // may not be installed, comes with ncurses 90 #if __has_include( "menu.h" ) 91 #include <menu.h> // may not be installed, comes with ncurses 92 #endif 81 93 #include <mntent.h> 82 94 #include <monetary.h> 83 95 #include <mqueue.h> 84 //#include <ncurses_dll.h> // may not be installed, comes with ncurses 96 #if __has_include( "ncurses_dll.h" ) 97 #include <ncurses_dll.h> // may not be installed, comes with ncurses 98 #endif 85 99 #include <netdb.h> 86 100 #include <nl_types.h> 87 101 #include <nss.h> 88 102 #include <obstack.h> 89 //#include <panel.h> // may not be installed, comes with ncurses 103 #if __has_include( "panel.h" ) 104 #include <panel.h> // may not be installed, comes with ncurses 105 #endif 90 106 #include <paths.h> 91 107 #include <poll.h> … … 118 134 #include <syslog.h> 119 135 #include <tar.h> 120 //#include <term.h> // may not be installed, comes with ncurses 121 //#include <termcap.h> // may not be installed, comes with ncurses 136 #if __has_include( "term.h" ) 137 #include <term.h> // may not be installed, comes with ncurses 138 #include <termcap.h> // may not be installed, comes with ncurses 139 #endif 122 140 #include <termio.h> 123 141 #include <termios.h> … … 131 149 #include <ucontext.h> 132 150 #include <ulimit.h> 133 //#include <unctrl.h> // may not be installed, comes with ncurses 151 #if __has_include( "unctrl.h" ) 152 #include <unctrl.h> // may not be installed, comes with ncurses 153 #endif 134 154 #include <unistd.h> 135 155 #include <utime.h> -
tests/linking/exception-nothreads.cfa
rbf0263c r90a8125 15 15 16 16 #include <stdlib.hfa> 17 #include <exception.hfa>18 17 19 EHM_EXCEPTION(ping)();20 EHM_VIRTUAL_TABLE(ping, ping_vt);18 exception ping {}; 19 vtable(ping) ping_vt; 21 20 22 21 int main(void) { -
tests/linking/exception-withthreads.cfa
rbf0263c r90a8125 15 15 16 16 #include <stdlib.hfa> 17 #include <exception.hfa>18 17 #include "../exceptions/with-threads.hfa" 19 18 20 EHM_EXCEPTION(ping)();21 EHM_VIRTUAL_TABLE(ping, ping_vt);19 exception ping {}; 20 vtable(ping) ping_vt; 22 21 23 22 int main(void) { -
tests/pybin/settings.py
rbf0263c r90a8125 201 201 global output_width 202 202 output_width = max(map(lambda t: len(t.target()), tests)) 203 # 35 is the maximum width of the name field before we get line wrapping. 204 output_width = min(output_width, 35) -
tests/pybin/test_run.py
rbf0263c r90a8125 43 43 return os.path.normpath( os.path.join(settings.BUILDDIR, self.path, self.name) ) 44 44 45 def format_target(self, width): 46 target = self.target() 47 length = len(target) 48 if length < width: 49 return '{0:{width}}'.format(target, width=width) 50 elif length == width: 51 return target 52 else: 53 return '...' + target[3-width:] 54 45 55 @staticmethod 46 56 def valid_name(name): -
tests/quasiKeyword.cfa
rbf0263c r90a8125 4 4 // quasiKeyword.cfa -- test that quasi-keywords can be used for variable and functions names, as well as keywords in 5 5 // control structures. 6 // 6 // 7 7 // Author : Peter A. Buhr 8 8 // Created On : Wed Feb 17 10:33:49 2021 … … 10 10 // Last Modified On : Sat Jun 5 10:07:59 2021 11 11 // Update Count : 8 12 // 12 // 13 13 14 #include <exception.hfa> 15 16 EHM_EXCEPTION( E )(); 14 exception E {}; 17 15 18 16 void catch( int i ) {} … … 49 47 } fixup ( E * ) { 50 48 } finally { 51 } 49 } 52 50 else catch = 3; 53 51 -
tests/test.py
rbf0263c r90a8125 132 132 parser.add_argument('--install', help='Run all tests based on installed binaries or tree binaries', type=comma_separated(yes_no), default='no') 133 133 parser.add_argument('--continue', help='When multiple specifications are passed (debug/install/arch), sets whether or not to continue if the last specification failed', type=yes_no, default='yes', dest='continue_') 134 parser.add_argument('--timeout', help='Maximum duration in seconds after a single test is considered to have timed out', type=int, default=1 20)134 parser.add_argument('--timeout', help='Maximum duration in seconds after a single test is considered to have timed out', type=int, default=180) 135 135 parser.add_argument('--global-timeout', help='Maximum cumulative duration in seconds after the ALL tests are considered to have timed out', type=int, default=7200) 136 136 parser.add_argument('--timeout-with-gdb', help='Instead of killing the command when it times out, orphan it and print process id to allow gdb to attach', type=yes_no, default="no") … … 252 252 try : 253 253 # print formated name 254 name_txt = '{0:{width}} '.format(t.target(), width=settings.output_width)254 name_txt = t.format_target(width=settings.output_width) + ' ' 255 255 256 256 retcode, error, duration = run_single_test(t)
Note:
See TracChangeset
for help on using the changeset viewer.