- Timestamp:
- Sep 19, 2022, 8:11:02 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- aa9f215
- Parents:
- ebf8ca5 (diff), ae1d151 (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:
-
- 2 added
- 46 deleted
- 15 edited
- 36 moved
-
.expect/KRfunctions.arm64.txt (moved) (moved from tests/.expect/KRfunctions.nast.arm64.txt )
-
.expect/KRfunctions.oast.arm64.txt (deleted)
-
.expect/KRfunctions.oast.x64.txt (deleted)
-
.expect/KRfunctions.oast.x86.txt (deleted)
-
.expect/KRfunctions.x64.txt (moved) (moved from tests/.expect/KRfunctions.nast.x64.txt )
-
.expect/KRfunctions.x86.txt (moved) (moved from tests/.expect/KRfunctions.nast.x86.txt )
-
.expect/alloc-ERROR.oast.txt (deleted)
-
.expect/alloc-ERROR.txt (moved) (moved from tests/.expect/alloc-ERROR.nast.txt )
-
.expect/attributes.arm64.txt (moved) (moved from tests/.expect/attributes.nast.arm64.txt )
-
.expect/attributes.oast.arm64.txt (deleted)
-
.expect/attributes.oast.x64.txt (deleted)
-
.expect/attributes.oast.x86.txt (deleted)
-
.expect/attributes.x64.txt (moved) (moved from tests/.expect/attributes.nast.x64.txt )
-
.expect/attributes.x86.txt (moved) (moved from tests/.expect/attributes.nast.x86.txt )
-
.expect/bitmanip2.x86.txt (moved) (moved from tests/.expect/bitmanip2.nast.x86.txt )
-
.expect/castError.oast.txt (deleted)
-
.expect/castError.txt (moved) (moved from tests/.expect/castError.nast.txt )
-
.expect/declarationSpecifier.arm64.txt (modified) (1 diff)
-
.expect/declarationSpecifier.x64.txt (modified) (1 diff)
-
.expect/declarationSpecifier.x86.txt (modified) (1 diff)
-
.expect/functions.arm64.txt (moved) (moved from tests/.expect/functions.nast.arm64.txt )
-
.expect/functions.oast.arm64.txt (deleted)
-
.expect/functions.oast.x64.txt (deleted)
-
.expect/functions.oast.x86.txt (deleted)
-
.expect/functions.x64.txt (moved) (moved from tests/.expect/functions.nast.x64.txt )
-
.expect/functions.x86.txt (moved) (moved from tests/.expect/functions.nast.x86.txt )
-
.expect/init1-ERROR.oast.txt (deleted)
-
.expect/init1-ERROR.txt (moved) (moved from tests/.expect/init1-ERROR.nast.txt )
-
.expect/math.arm64.txt (moved) (moved from tests/.expect/math.nast.arm64.txt )
-
.expect/math.x64.txt (moved) (moved from tests/.expect/math.nast.x64.txt )
-
.expect/math.x86.txt (moved) (moved from tests/.expect/math.nast.x86.txt )
-
.expect/math1.oast.arm64.txt (deleted)
-
.expect/math1.oast.x64.txt (deleted)
-
.expect/math1.oast.x86.txt (deleted)
-
.expect/math2.oast.arm64.txt (deleted)
-
.expect/math2.oast.x64.txt (deleted)
-
.expect/math2.oast.x86.txt (deleted)
-
.expect/math3.oast.arm64.txt (deleted)
-
.expect/math3.oast.x64.txt (deleted)
-
.expect/math3.oast.x86.txt (deleted)
-
.expect/math4.oast.arm64.txt (deleted)
-
.expect/math4.oast.x64.txt (deleted)
-
.expect/math4.oast.x86.txt (deleted)
-
.expect/mathX.arm64.txt (moved) (moved from tests/.expect/mathX.nast.arm64.txt )
-
.expect/mathX.x64.txt (moved) (moved from tests/.expect/mathX.nast.x64.txt )
-
.expect/mathX.x86.txt (moved) (moved from tests/.expect/mathX.nast.x86.txt )
-
.expect/nested-types-ERR2.oast.txt (deleted)
-
.expect/nested-types-ERR2.txt (moved) (moved from tests/.expect/nested-types-ERR2.nast.txt )
-
Makefile.am (modified) (2 diffs)
-
array-container/.expect/language-dim-mismatch.oast.txt (deleted)
-
array-container/.expect/language-dim-mismatch.txt (moved) (moved from tests/array-container/.expect/language-dim-mismatch.nast.txt )
-
concurrent/.expect/keywordErrors.oast.txt (deleted)
-
concurrent/.expect/keywordErrors.txt (moved) (moved from tests/concurrent/.expect/keywordErrors.nast.txt )
-
concurrent/.expect/mainError.oast.txt (deleted)
-
concurrent/.expect/mainError.txt (moved) (moved from tests/concurrent/.expect/mainError.nast.txt )
-
concurrent/clib.c (modified) (1 diff)
-
concurrent/clib_tls.c (modified) (1 diff)
-
concurrent/park/contention.cfa (modified) (1 diff)
-
config.py.in (modified) (1 diff)
-
declarationSpecifier.cfa (modified) (3 diffs)
-
errors/.expect/completeType.arm64.txt (moved) (moved from tests/errors/.expect/completeType.nast.arm64.txt )
-
errors/.expect/completeType.oast.arm64.txt (deleted)
-
errors/.expect/completeType.oast.x64.txt (deleted)
-
errors/.expect/completeType.oast.x86.txt (deleted)
-
errors/.expect/completeType.x64.txt (moved) (moved from tests/errors/.expect/completeType.nast.x64.txt )
-
errors/.expect/completeType.x86.txt (moved) (moved from tests/errors/.expect/completeType.nast.x86.txt )
-
errors/.expect/scope.oast.txt (deleted)
-
errors/.expect/scope.txt (moved) (moved from tests/errors/.expect/scope.nast.txt )
-
include/.expect/includes.txt (moved) (moved from tests/include/.expect/includes.nast.txt )
-
io/.expect/comp_basic.txt (added)
-
io/.expect/io.txt (moved) (moved from tests/io/.expect/io.nast.txt )
-
io/.expect/io1.oast.txt (deleted)
-
io/.expect/io2.oast.txt (deleted)
-
io/comp_basic.cfa (added)
-
io/comp_fair.cfa (modified) (5 diffs)
-
io/io1.cfa (deleted)
-
io/io2.cfa (deleted)
-
math1.cfa (deleted)
-
math2.cfa (deleted)
-
math3.cfa (deleted)
-
math4.cfa (deleted)
-
meta/.expect/arch.arm64.txt (moved) (moved from tests/meta/.expect/archVast.nast.arm64.txt ) (1 diff)
-
meta/.expect/arch.x64.txt (moved) (moved from tests/meta/.expect/archVast.nast.x64.txt ) (1 diff)
-
meta/.expect/arch.x86.txt (moved) (moved from tests/meta/.expect/archVast.nast.x86.txt ) (1 diff)
-
meta/.expect/archVast.oast.arm64.txt (deleted)
-
meta/.expect/archVast.oast.x64.txt (deleted)
-
meta/.expect/archVast.oast.x86.txt (deleted)
-
meta/arch.cfa (moved) (moved from tests/meta/archVast.cfa ) (1 diff)
-
pybin/settings.py (modified) (3 diffs)
-
pybin/test_run.py (modified) (3 diffs)
-
pybin/tools.py (modified) (1 diff)
-
quotedKeyword.cfa (modified) (1 diff)
-
raii/.expect/ctor-autogen-ERR1.oast.txt (deleted)
-
raii/.expect/ctor-autogen-ERR1.txt (moved) (moved from tests/raii/.expect/ctor-autogen-ERR1.nast.txt )
-
raii/.expect/memberCtors-ERR1.oast.txt (deleted)
-
raii/.expect/memberCtors-ERR1.txt (moved) (moved from tests/raii/.expect/memberCtors-ERR1.nast.txt )
-
test.py (modified) (8 diffs)
-
warnings/.expect/self-assignment.oast.txt (deleted)
-
warnings/.expect/self-assignment.txt (moved) (moved from tests/warnings/.expect/self-assignment.nast.txt )
Legend:
- Unmodified
- Added
- Removed
-
tests/.expect/declarationSpecifier.arm64.txt
rebf8ca5 r23a08aa0 735 735 } 736 736 static volatile const struct __anonymous15 _X3x36KVS13__anonymous15_1; 737 _Thread_local signed int _X3x37i_1; 738 __thread signed int _X3x38i_1; 737 739 static inline volatile const signed int _X3f11Fi___1(); 738 740 static inline volatile const signed int _X3f12Fi___1(); -
tests/.expect/declarationSpecifier.x64.txt
rebf8ca5 r23a08aa0 735 735 } 736 736 static volatile const struct __anonymous15 _X3x36KVS13__anonymous15_1; 737 _Thread_local signed int _X3x37i_1; 738 __thread signed int _X3x38i_1; 737 739 static inline volatile const signed int _X3f11Fi___1(); 738 740 static inline volatile const signed int _X3f12Fi___1(); -
tests/.expect/declarationSpecifier.x86.txt
rebf8ca5 r23a08aa0 735 735 } 736 736 static volatile const struct __anonymous15 _X3x36KVS13__anonymous15_1; 737 _Thread_local signed int _X3x37i_1; 738 __thread signed int _X3x38i_1; 737 739 static inline volatile const signed int _X3f11Fi___1(); 738 740 static inline volatile const signed int _X3f12Fi___1(); -
tests/Makefile.am
rebf8ca5 r23a08aa0 54 54 55 55 # adjust CC to current flags 56 CC = LC_ALL=C $(if $(DISTCC_CFA_PATH),distcc $(DISTCC_CFA_PATH) ${ARCH_FLAGS} ${AST_FLAGS},$(TARGET_CFA) ${DEBUG_FLAGS} ${ARCH_FLAGS} ${AST_FLAGS})56 CC = LC_ALL=C $(if $(DISTCC_CFA_PATH),distcc $(DISTCC_CFA_PATH) ${ARCH_FLAGS} ,$(TARGET_CFA) ${DEBUG_FLAGS} ${ARCH_FLAGS}) 57 57 CFACC = $(CC) 58 58 … … 61 61 62 62 # adjusted CC but without the actual distcc call 63 CFACCLOCAL = $(if $(DISTCC_CFA_PATH),$(DISTCC_CFA_PATH) ${ARCH_FLAGS} ${AST_FLAGS},$(TARGET_CFA) ${DEBUG_FLAGS} ${ARCH_FLAGS} ${AST_FLAGS})63 CFACCLOCAL = $(if $(DISTCC_CFA_PATH),$(DISTCC_CFA_PATH) ${ARCH_FLAGS} ,$(TARGET_CFA) ${DEBUG_FLAGS} ${ARCH_FLAGS}) 64 64 CFACCLINK = $(CFACCLOCAL) -quiet $(if $(test), 2> $(test), ) $($(shell echo "${@}_FLAGSLD" | sed 's/-\|\//_/g')) 65 65 -
tests/concurrent/clib.c
rebf8ca5 r23a08aa0 8 8 } 9 9 10 thread_local struct drand48_data buffer = { 0 };10 _Thread_local struct drand48_data buffer = { 0 }; 11 11 int myrand() { 12 12 long int result; -
tests/concurrent/clib_tls.c
rebf8ca5 r23a08aa0 14 14 15 15 16 thread_localint checkval = 0xBAADF00D;16 __thread int checkval = 0xBAADF00D; 17 17 18 18 void init(void * ) { -
tests/concurrent/park/contention.cfa
rebf8ca5 r23a08aa0 2 2 #include <thread.hfa> 3 3 4 thread_localdrand48_data buffer = { 0 };4 __thread drand48_data buffer = { 0 }; 5 5 int myrand() { 6 6 long int result; -
tests/config.py.in
rebf8ca5 r23a08aa0 9 9 HOSTARCH = "@host_cpu@" 10 10 DISTRIBUTE = @HAS_DISTCC@ 11 NEWAST = @DEFAULT_NEW_AST@ -
tests/declarationSpecifier.cfa
rebf8ca5 r23a08aa0 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 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 // declarationSpecifier.cfa -- 8 // 6 // 7 // declarationSpecifier.cfa -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Wed Aug 17 08:21:04 2016 … … 12 12 // Last Modified On : Tue Apr 30 18:20:36 2019 13 13 // Update Count : 4 14 // 14 // 15 15 16 16 typedef short int Int; … … 51 51 struct { Int i; } const static volatile x35; 52 52 struct { Int i; } const volatile static x36; 53 54 _Thread_local int x37; 55 __thread int x38; 53 56 54 57 static inline const volatile int f11(); -
tests/io/comp_fair.cfa
rebf8ca5 r23a08aa0 27 27 28 28 struct { 29 barrier & bar;30 int pipe[2];29 barrier & bar; 30 int pipe[2]; 31 31 32 32 } globals; … … 65 65 thread Reader {}; 66 66 void main(Reader & this) { 67 bool do_read = has_user_level_blocking( (fptr_t)async_read ); 67 char thrash[1]; 68 bool do_read = has_user_level_blocking( (fptr_t)async_read ); 68 69 69 for(TIMES) { 70 io_future_t f; 71 if ( do_read ) { 72 char thrash[1]; 73 async_read(f, globals.pipe[0], thrash, 1, 0); 74 } else { 75 fulfil(f, 0); // If we don't have user-level blocking just play along 76 } 70 for(TIMES) { 71 io_future_t f; 72 if ( do_read ) { 73 async_read(f, globals.pipe[0], thrash, 1, 0); 74 } else { 75 fulfil(f, 0); // If we don't have user-level blocking just play along 76 } 77 77 78 block( globals.bar );78 block( globals.bar ); 79 79 80 80 yield( prng( this, 15 ) ); 81 81 82 unsigned i = __atomic_add_fetch( &counter, 1, __ATOMIC_SEQ_CST );82 unsigned i = __atomic_add_fetch( &counter, 1, __ATOMIC_SEQ_CST ); 83 83 if(0 == (i % 100)) sout | i; 84 84 85 wait( f );85 wait( f ); 86 86 87 if(f.result < 0)88 abort | "Read error" | -f.result | ":" | strerror(-f.result);87 if(f.result < 0) 88 abort | "Read error" | -f.result | ":" | strerror(-f.result); 89 89 90 block( globals.bar );91 }90 block( globals.bar ); 91 } 92 92 } 93 93 … … 97 97 thread Writer {}; 98 98 void main(Writer & this) { 99 for(TIMES) {100 block( globals.bar );99 for(TIMES) { 100 block( globals.bar ); 101 101 102 sleep( 1`us );102 sleep( 1`us ); 103 103 104 char buf[1] = { '+' };105 int ret = write( globals.pipe[1], buf, 1 );106 if(ret < 0)107 abort | "Write error" | errno | ":" | strerror(errno);104 char buf[1] = { '+' }; 105 int ret = write( globals.pipe[1], buf, 1 ); 106 if(ret < 0) 107 abort | "Write error" | errno | ":" | strerror(errno); 108 108 109 block( globals.bar );110 }109 block( globals.bar ); 110 } 111 111 } 112 112 … … 122 122 123 123 int main() { 124 barrier bar = { 2 };125 &globals.bar = &bar;126 int ret = pipe(globals.pipe);127 if(ret != 0)128 abort | "Pipe error" | errno | ":" | strerror(errno);124 barrier bar = { 2 }; 125 &globals.bar = &bar; 126 int ret = pipe(globals.pipe); 127 if(ret != 0) 128 abort | "Pipe error" | errno | ":" | strerror(errno); 129 129 130 130 processor p; … … 134 134 Spinner s; 135 135 Reader ior; 136 Writer iow;136 Writer iow; 137 137 } 138 138 sout | "done"; -
tests/meta/.expect/arch.arm64.txt
rebf8ca5 r23a08aa0 1 meta/arch Vast.cfa:28:1 error: Cannot choose between 3 alternatives for expression1 meta/arch.cfa:28:1 error: Cannot choose between 3 alternatives for expression 2 2 Explicit Cast of: 3 3 Name: FA64 -
tests/meta/.expect/arch.x64.txt
rebf8ca5 r23a08aa0 1 meta/arch Vast.cfa:28:1 error: Cannot choose between 3 alternatives for expression1 meta/arch.cfa:28:1 error: Cannot choose between 3 alternatives for expression 2 2 Explicit Cast of: 3 3 Name: FX64 -
tests/meta/.expect/arch.x86.txt
rebf8ca5 r23a08aa0 1 meta/arch Vast.cfa:28:1 error: Cannot choose between 3 alternatives for expression1 meta/arch.cfa:28:1 error: Cannot choose between 3 alternatives for expression 2 2 Explicit Cast of: 3 3 Name: FX86 -
tests/meta/arch.cfa
rebf8ca5 r23a08aa0 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // arch Vast.cfa -- Check if all combinations are of ast/arch are properly distinguished7 // arch.cfa -- Check if all architectures are properly distinguished by the test suite 8 8 // 9 9 // Author : Thierry Delisle -
tests/pybin/settings.py
rebf8ca5 r23a08aa0 97 97 self.path = "debug" if value else "nodebug" 98 98 99 class AST:100 def __init__(self, ast):101 if ast == "new":102 self.target = ast103 self.string = "New AST"104 self.flags = """AST_FLAGS=-XCFA,--new-ast"""105 elif ast == "old":106 self.target = ast107 self.string = "Old AST"108 self.flags = """AST_FLAGS=-XCFA,--old-ast"""109 elif ast == None:110 self.target = "new" if config.NEWAST else "old"111 self.string = "Default AST (%s)" % self.target112 self.flags = """AST_FLAGS="""113 else:114 print("""ERROR: Invalid ast configuration, must be "old", "new" or left unspecified, was %s""" % (value), file=sys.stderr)115 sys.exit(1)116 117 def filter(self, tests):118 119 return [test for test in tests if not test.astv or self.target == test.astv]120 121 99 class Install: 122 100 def __init__(self, value): … … 141 119 142 120 def init( options ): 143 global all_ast144 121 global all_arch 145 122 global all_debug 146 123 global all_install 147 global ast148 124 global arch 149 125 global debug … … 160 136 global timeout2gdb 161 137 162 all_ast = [AST(o) for o in list(dict.fromkeys(options.ast ))] if options.ast else [AST(None)]163 138 all_arch = [Architecture(o) for o in list(dict.fromkeys(options.arch ))] if options.arch else [Architecture(None)] 164 139 all_debug = [Debug(o) for o in list(dict.fromkeys(options.debug ))] -
tests/pybin/test_run.py
rebf8ca5 r23a08aa0 11 11 self.path = '' 12 12 self.arch = '' 13 self.astv = ''14 13 15 14 def toString(self): 16 return "{:25s} ({:5s} arch , {:s} ast: {:s})".format( self.name, self.arch if self.arch else "Any", self.astv if self.astvelse "Any", self.target() )15 return "{:25s} ({:5s} arch: {:s})".format( self.name, self.arch if self.arch else "Any", self.target() ) 17 16 18 17 def prepare(self): … … 22 21 def expect(self): 23 22 arch = '' if not self.arch else ".%s" % self.arch 24 astv = '' if not self.astv else ".nast" if self.astv == "new" else ".oast" 25 return os.path.normpath( os.path.join(settings.SRCDIR , self.path, ".expect", "%s%s%s.txt" % (self.name,astv,arch)) ) 23 return os.path.normpath( os.path.join(settings.SRCDIR , self.path, ".expect", "%s%s.txt" % (self.name,arch)) ) 26 24 27 25 def error_log(self): … … 58 56 59 57 @staticmethod 60 def new_target(target, arch , astv):58 def new_target(target, arch): 61 59 test = Test() 62 60 test.name = os.path.basename(target) 63 61 test.path = os.path.relpath (os.path.dirname(target), settings.SRCDIR) 64 62 test.arch = arch.target if arch else '' 65 test.astv = astv.target if astv else ''66 63 return test 67 64 -
tests/pybin/tools.py
rebf8ca5 r23a08aa0 182 182 '-s' if silent else None, 183 183 test_param, 184 settings.ast.flags,185 184 settings.arch.flags, 186 185 settings.debug.flags, -
tests/quotedKeyword.cfa
rebf8ca5 r23a08aa0 31 31 ``__int128, ``__label__, ``long, ``lvalue, ``_Noreturn, ``__builtin_offsetof, ``otype, ``register, ``restrict, 32 32 ``__restrict, ``__restrict__, ``return, ``short, ``signed, ``__signed, ``__signed__, ``sizeof, ``static, 33 ``_Static_assert, ``struct, ``switch, ``_ Thread_local, ``throw, ``throwResume, ``trait, ``try, ``typedef,33 ``_Static_assert, ``struct, ``switch, ``_thread, ``_Thread_local, ``throw, ``throwResume, ``trait, ``try, ``typedef, 34 34 ``typeof, ``__typeof, ``__typeof__, ``union, ``unsigned, ``__builtin_va_list, ``void, ``volatile, ``__volatile, 35 35 ``__volatile__, ``while; -
tests/test.py
rebf8ca5 r23a08aa0 23 23 24 24 def match_test(path): 25 match = re.search("^%s\/([\w\/\-_]*).expect\/([\w\-_]+)(\. nast|\.oast)?(\.[\w\-_]+)?\.txt$" % settings.SRCDIR, path)25 match = re.search("^%s\/([\w\/\-_]*).expect\/([\w\-_]+)(\.[\w\-_]+)?\.txt$" % settings.SRCDIR, path) 26 26 if match : 27 27 test = Test() 28 28 test.name = match.group(2) 29 29 test.path = match.group(1) 30 test.arch = match.group(4)[1:] if match.group(4) else None 31 32 astv = match.group(3)[1:] if match.group(3) else None 33 if astv == 'oast': 34 test.astv = 'old' 35 elif astv == 'nast': 36 test.astv = 'new' 37 elif astv: 38 print('ERROR: "%s", expect file has astv but it is not "nast" or "oast"' % testname, file=sys.stderr) 39 sys.exit(1) 30 test.arch = match.group(3)[1:] if match.group(3) else None 40 31 41 32 expected.append(test) … … 81 72 # this is a valid name, let's check if it already exists 82 73 found = [test for test in all_tests if canonical_path( test.target() ) == testname] 83 setup = itertools.product(settings.all_arch if options.arch else [None] , settings.all_ast if options.ast else [None])74 setup = itertools.product(settings.all_arch if options.arch else [None]) 84 75 if not found: 85 # it's a new name, create it according to the name and specified architecture /ast version86 tests.extend( [Test.new_target(testname, arch , ast) for arch, astin setup] )76 # it's a new name, create it according to the name and specified architecture 77 tests.extend( [Test.new_target(testname, arch) for arch in setup] ) 87 78 elif len(found) == 1 and not found[0].arch: 88 79 # we found a single test, the user better be wanting to create a cross platform test 89 80 if options.arch: 90 81 print('ERROR: "%s", test has no specified architecture but --arch was specified, ignoring it' % testname, file=sys.stderr) 91 elif options.ast:92 print('ERROR: "%s", test has no specified ast version but --ast was specified, ignoring it' % testname, file=sys.stderr)93 82 else: 94 83 tests.append( found[0] ) 95 84 else: 96 85 # this test is already cross platform, just add a test for each platform the user asked 97 tests.extend( [Test.new_target(testname, arch , ast) for arch, astin setup] )86 tests.extend( [Test.new_target(testname, arch) for arch in setup] ) 98 87 99 88 # print a warning if it users didn't ask for a specific architecture … … 102 91 print('WARNING: "%s", test has architecture specific expected files but --arch was not specified, regenerating only for current host' % testname, file=sys.stderr) 103 92 104 105 # print a warning if it users didn't ask for a specific ast version106 found_astv = [f.astv for f in found if f.astv]107 if found_astv and not options.ast:108 print('WARNING: "%s", test has ast version specific expected files but --ast was not specified, regenerating only for current ast' % testname, file=sys.stderr)109 110 93 else : 111 94 print('ERROR: "%s", tests are not allowed to end with a C/C++/CFA extension, ignoring it' % testname, file=sys.stderr) … … 127 110 # create a parser with the arguments for the tests script 128 111 parser = argparse.ArgumentParser(description='Script which runs cforall tests') 129 parser.add_argument('--ast', help='Test for specific ast', type=comma_separated(str), default=None)130 112 parser.add_argument('--arch', help='Test for specific architecture', type=comma_separated(str), default=None) 131 113 parser.add_argument('--debug', help='Run all tests in debug or release', type=comma_separated(yes_no), default='yes') … … 351 333 352 334 # print the possible options 353 print("-h --help --debug --dry-run --list --a st=new --ast=old --arch --all --regenerate-expected --archive-errors --install --timeout --global-timeout --timeout-with-gdb -j --jobs -I --include -E --exclude --continue ", end='')335 print("-h --help --debug --dry-run --list --arch --all --regenerate-expected --archive-errors --install --timeout --global-timeout --timeout-with-gdb -j --jobs -I --include -E --exclude --continue ", end='') 354 336 print(" ".join(map(lambda t: "%s" % (t.target()), tests))) 355 337 … … 422 404 # for each build configurations, run the test 423 405 with Timed() as total_dur: 424 for ast, arch, debug, install in itertools.product(settings.all_ast, settings.all_arch, settings.all_debug, settings.all_install): 425 settings.ast = ast 406 for arch, debug, install in itertools.product(settings.all_arch, settings.all_debug, settings.all_install): 426 407 settings.arch = arch 427 408 settings.debug = debug … … 430 411 # filter out the tests for a different architecture 431 412 # tests are the same across debug/install 432 local_tests = settings.ast.filter( tests ) 433 local_tests = settings.arch.filter( local_tests ) 413 local_tests = settings.arch.filter( tests ) 434 414 435 415 # check the build configuration works … … 438 418 439 419 # print configuration 440 print('%s %i tests on %i cores (%s :%s- %s)' % (420 print('%s %i tests on %i cores (%s - %s)' % ( 441 421 'Regenerating' if settings.generating else 'Running', 442 422 len(local_tests), 443 423 jobs, 444 settings.ast.string,445 424 settings.arch.string, 446 425 settings.debug.string
Note:
See TracChangeset
for help on using the changeset viewer.