Changes in / [39f04ec:d32c4e2]
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/driver/cfa.cc
r39f04ec rd32c4e2 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // cfa.cc -- 7 // cfa.cc -- 8 8 // 9 9 // Author : Peter A. Buhr … … 249 249 nargs += 1; 250 250 251 args[nargs] = "-I" CFA_INCDIR "/containers";252 nargs += 1;253 254 251 if ( link ) { 255 252 // include the cfa library in case it's needed … … 311 308 args[nargs] = "-no-integrated-cpp"; 312 309 nargs += 1; 313 args[nargs] = "-Wno-deprecated"; 310 args[nargs] = "-Wno-deprecated"; 314 311 nargs += 1; 315 312 if ( ! std_flag ) { // default c99, if none specified … … 317 314 nargs += 1; 318 315 } // if 319 args[nargs] = "-fgnu89-inline"; 316 args[nargs] = "-fgnu89-inline"; 320 317 nargs += 1; 321 318 args[nargs] = ( *new string( string("-B") + Bprefix + "/" ) ).c_str(); -
src/tests/test.py
r39f04ec rd32c4e2 9 9 import os 10 10 import re 11 import stat12 11 import sys 13 12 … … 61 60 return result; 62 61 63 def fileIsExecutable(file) :64 try :65 fileinfo = os.stat(file)66 return bool(fileinfo.st_mode & stat.S_IXUSR)67 except Exception as inst:68 print(type(inst)) # the exception instance69 print(inst.args) # arguments stored in .args70 print(inst)71 return False72 62 73 63 ################################################################################ … … 88 78 stdinput = "< .in/%s.txt" % test if isfile(".in/%s.txt" % test) else "" 89 79 90 if fileIsExecutable(test) : 91 # run test 92 sh("./%s %s > %s 2>&1" % (test, stdinput, out_file), dry_run) 93 else : 94 # simply cat the result into the output 95 sh("cat %s > %s" % (test, out_file), dry_run) 80 # run test 81 sh("./%s %s > %s 2>&1" % (test, stdinput, out_file), dry_run) 96 82 97 83 retcode = 0
Note: See TracChangeset
for help on using the changeset viewer.