Changes in / [8b52686:10dc7491]
- Files:
-
- 1 added
- 4 edited
-
Jenkinsfile (modified) (2 diffs)
-
src/tests/Makefile.am (modified) (1 diff)
-
src/tests/Makefile.in (modified) (1 diff)
-
src/tests/runTests.sh (added)
-
src/tests/test.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
r8b52686 r10dc7491 33 33 dir ('src/tests') { 34 34 if (full_build) { 35 sh ' make all-tests'35 sh 'python test.py --all' 36 36 } 37 37 else { 38 sh ' make'38 sh './runTests.sh' 39 39 } 40 40 } … … 188 188 cfa_build(doPromoteBuild2DoLang) 189 189 190 if( doPromoteBuild2DoLang ) { 191 //Compile using gcc-5 192 currentCC = new CC_Desc('gcc-5', 'g++-5', 'gcc-5') 193 cfa_build(true) 194 195 //Compile using gcc-4.9 196 currentCC = new CC_Desc('gcc-6', 'g++-6', 'gcc-6') 197 cfa_build(true) 198 } 190 //Compile using gcc-5 191 currentCC = new CC_Desc('gcc-5', 'g++-5', 'gcc-5') 192 cfa_build(doPromoteBuild2DoLang) 193 194 //Compile using gcc-4.9 195 currentCC = new CC_Desc('gcc-6', 'g++-6', 'gcc-6') 196 cfa_build(doPromoteBuild2DoLang) 199 197 200 198 //Compile latex documentation -
src/tests/Makefile.am
r8b52686 r10dc7491 27 27 28 28 all-local : 29 python test.py vector_test avl_test Operators NumericConstants Expression Enum AsmName Array Typeof Cast30 31 all-tests :32 29 python test.py --all 33 30 -
src/tests/Makefile.in
r8b52686 r10dc7491 634 634 635 635 all-local : 636 python test.py vector_test avl_test Operators NumericConstants Expression Enum AsmName Array Typeof Cast637 638 all-tests :639 636 python test.py --all 640 637 -
src/tests/test.py
r8b52686 r10dc7491 2 2 from __future__ import print_function 3 3 4 from os import listdir , environ4 from os import listdir 5 5 from os.path import isfile, join, splitext 6 6 from subprocess import Popen, PIPE, STDOUT 7 7 8 8 import argparse 9 import os10 import re11 9 import sys 12 10 … … 29 27 proc.communicate() 30 28 return proc.returncode 31 32 def file_replace(fname, pat, s_after):33 # first, see if the pattern is even in the file.34 with open(fname) as f:35 if not any(re.search(pat, line) for line in f):36 return # pattern does not occur in file so we are done.37 38 # pattern is in the file, so perform replace operation.39 with open(fname) as f:40 out_fname = fname + ".tmp"41 out = open(out_fname, "w")42 for line in f:43 out.write(re.sub(pat, s_after, line))44 out.close()45 os.rename(out_fname, fname)46 47 def fix_MakeLevel(file) :48 if environ.get('MAKELEVEL') :49 file_replace(file, "make\[%i\]" % int(environ.get('MAKELEVEL')), 'make' )50 51 29 52 30 ################################################################################ … … 71 49 72 50 retcode = 0 73 74 fix_MakeLevel(out_file)75 76 51 if not generate : 77 52 # diff the output of the files
Note:
See TracChangeset
for help on using the changeset viewer.