- Timestamp:
- May 20, 2022, 10:36:45 AM (4 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- 25fa20a
- Parents:
- 29d8c02 (diff), 7831e8fb (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
- 9 edited
- 1 moved
-
.expect/forall.txt (modified) (1 diff)
-
.expect/loop_else.txt (added)
-
.expect/nested-types-ERR2.nast.txt (added)
-
.expect/nested-types-ERR2.oast.txt (moved) (moved from tests/.expect/nested-types-ERR2.txt )
-
forall.cfa (modified) (4 diffs)
-
include/.expect/includes.nast.txt (modified) (1 diff)
-
include/includes.cfa (modified) (7 diffs)
-
loop_else.cfa (added)
-
pybin/settings.py (modified) (1 diff)
-
pybin/test_run.py (modified) (1 diff)
-
test.py (modified) (2 diffs)
-
unified_locking/.expect/fast_block_lock.txt (added)
-
unified_locking/.expect/locks.txt (modified) (1 diff)
-
unified_locking/fast_block_lock.cfa (added)
-
unified_locking/locks.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/.expect/forall.txt
r29d8c02 r74ec742 1 forall.cfa:24 2:25: warning: Compiled1 forall.cfa:244:25: warning: Compiled -
tests/forall.cfa
r29d8c02 r74ec742 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // forall.cfa -- 8 // 6 // 7 // forall.cfa -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Wed May 9 08:48:15 2018 … … 12 12 // Last Modified On : Sat Jun 5 10:06:08 2021 13 13 // Update Count : 36 14 // 14 // 15 15 16 16 void g1() { … … 45 45 } 46 46 47 typedef forall ( T ) int (* f)( int ); 47 // commented this out since it is not clearly meaningful 48 // and not really representable in the ast 49 // typedef forall ( T ) int (* f)( int ); 48 50 49 51 forall( T ) … … 170 172 } 171 173 172 forall( T | { T ?+?( T, T ); } ) forall( S | { T ?+?( T, S ); } ) 174 forall( T | { T ?+?( T, T ); } ) forall( S | { T ?+?( T, S ); } ) 173 175 struct XW { T t; }; 174 176 XW(int,int) xww; -
tests/include/.expect/includes.nast.txt
r29d8c02 r74ec742 1 include/includes.cfa:1 53:25: warning: Compiled1 include/includes.cfa:169:25: warning: Compiled -
tests/include/includes.cfa
r29d8c02 r74ec742 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T hu Feb 3 22:06:07202213 // Update Count : 77 412 // Last Modified On : Tue May 10 16:36:44 2022 13 // Update Count : 776 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 49 #include <expat.h> … … 50 54 #include <fmtmsg.h> 51 55 #include <fnmatch.h> 52 //#include <form.h> // may not be installed, comes with ncurses 56 #if __has_include( "form.h" ) 57 #include <form.h> // may not be installed, comes with ncurses 58 #endif 53 59 #include <fstab.h> 54 60 #include <fts.h> … … 78 84 #include <mcheck.h> 79 85 #include <memory.h> 80 //#include <menu.h> // may not be installed, comes with ncurses 86 #if __has_include( "menu.h" ) 87 #include <menu.h> // may not be installed, comes with ncurses 88 #endif 81 89 #include <mntent.h> 82 90 #include <monetary.h> 83 91 #include <mqueue.h> 84 //#include <ncurses_dll.h> // may not be installed, comes with ncurses 92 #if __has_include( "ncurses_dll.h" ) 93 #include <ncurses_dll.h> // may not be installed, comes with ncurses 94 #endif 85 95 #include <netdb.h> 86 96 #include <nl_types.h> 87 97 #include <nss.h> 88 98 #include <obstack.h> 89 //#include <panel.h> // may not be installed, comes with ncurses 99 #if __has_include( "panel.h" ) 100 #include <panel.h> // may not be installed, comes with ncurses 101 #endif 90 102 #include <paths.h> 91 103 #include <poll.h> … … 118 130 #include <syslog.h> 119 131 #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 132 #if __has_include( "term.h" ) 133 #include <term.h> // may not be installed, comes with ncurses 134 #include <termcap.h> // may not be installed, comes with ncurses 135 #endif 122 136 #include <termio.h> 123 137 #include <termios.h> … … 131 145 #include <ucontext.h> 132 146 #include <ulimit.h> 133 //#include <unctrl.h> // may not be installed, comes with ncurses 147 #if __has_include( "unctrl.h" ) 148 #include <unctrl.h> // may not be installed, comes with ncurses 149 #endif 134 150 #include <unistd.h> 135 151 #include <utime.h> -
tests/pybin/settings.py
r29d8c02 r74ec742 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
r29d8c02 r74ec742 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/test.py
r29d8c02 r74ec742 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) -
tests/unified_locking/.expect/locks.txt
r29d8c02 r74ec742 23 23 Start Test 12: locked condition variable wait/notify with front() 24 24 Done Test 12 25 Start Test 13: fast block lock and fast cond var single wait/notify 26 Done Test 13 -
tests/unified_locking/locks.cfa
r29d8c02 r74ec742 18 18 condition_variable( linear_backoff_then_block_lock ) c_l; 19 19 20 fast_block_lock f; 21 fast_cond_var( fast_block_lock ) f_c_f; 22 20 23 thread T_C_M_WS1 {}; 21 24 … … 99 102 } 100 103 unlock(l); 104 } 105 } 106 107 thread T_F_C_F_WS1 {}; 108 109 void main( T_F_C_F_WS1 & this ) { 110 for (unsigned int i = 0; i < num_times; i++) { 111 lock(f); 112 if(empty(f_c_f) && i != num_times - 1) { 113 wait(f_c_f,f); 114 }else{ 115 notify_one(f_c_f); 116 unlock(f); 117 } 101 118 } 102 119 } … … 322 339 } 323 340 printf("Done Test 12\n"); 324 } 341 342 printf("Start Test 13: fast block lock and fast cond var single wait/notify\n"); 343 { 344 T_F_C_F_WS1 t1[2]; 345 } 346 printf("Done Test 13\n"); 347 348 }
Note:
See TracChangeset
for help on using the changeset viewer.