X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/09a6fff7b8c0bed78a6e89fc9763bcc262c615a5..9cfe6a57d7256613aa7b7be6335ef98fa49d4925:/teshsuite/smpi/MBI/simgrid.py diff --git a/teshsuite/smpi/MBI/simgrid.py b/teshsuite/smpi/MBI/simgrid.py index 947bcce069..907abc880b 100644 --- a/teshsuite/smpi/MBI/simgrid.py +++ b/teshsuite/smpi/MBI/simgrid.py @@ -31,7 +31,7 @@ class Tool(mbi.AbstractTool): os.chdir(here) - def ensure_image(self): + def ensure_image(self, params=None, dockerparams=None): mbi.AbstractTool.ensure_image(self, "-x simgrid") def setup(self, rootdir): @@ -49,13 +49,13 @@ class Tool(mbi.AbstractTool): outfile.write(' \n') outfile.write('\n') - execcmd = execcmd.replace("mpirun", "smpirun -wrapper simgrid-mc -platform ./cluster.xml -analyze --cfg=smpi/finalization-barrier:on --cfg=smpi/list-leaks:10 --cfg=model-check/max-depth:10000") + execcmd = execcmd.replace("mpirun", "smpirun -wrapper simgrid-mc -platform ./cluster.xml -analyze --cfg=smpi/barrier-finalization:on --cfg=smpi/list-leaks:10 --cfg=model-check/max-depth:10000") execcmd = execcmd.replace('${EXE}', binary) execcmd = execcmd.replace('$zero_buffer', "--cfg=smpi/buffering:zero") execcmd = execcmd.replace('$infty_buffer', "--cfg=smpi/buffering:infty") mbi.run_cmd( - buildcmd=f"smpicc {filename} -trace-call-location -g -Wl,-znorelro -Wl,-znoseparate-code -o {binary}", + buildcmd=f"smpicc {filename} -trace-call-location -g -o {binary}", execcmd=execcmd, cachefile=cachefile, filename=filename, @@ -64,7 +64,7 @@ class Tool(mbi.AbstractTool): batchinfo=batchinfo) def teardown(self): - subprocess.run("find -type f -a -executable | xargs rm -f", shell=True, check=True) # Remove generated cruft (binary files) + subprocess.run("find -type f -a -executable -exec rm -f {} +", shell=True, check=True) # Remove generated cruft (binary files) subprocess.run("rm -f smpitmp-* core", shell=True, check=True) def parse(self, cachefile): @@ -76,7 +76,7 @@ class Tool(mbi.AbstractTool): with open(f'{cachefile}.txt' if os.path.exists(f'{cachefile}.txt') else f'logs/simgrid/{cachefile}.txt', 'r') as infile: output = infile.read() - if re.search('Compilation of .*? raised an error \(retcode: ', output): + if re.search(r'Compilation of .*? raised an error \(retcode: ', output): return 'UNIMPLEMENTED' if re.search('MBI_MSG_RACE', output):