#!/usr/bin/python import os OUTDIR='/home/roman/ontographics.com/classpath/mauve' MAUVEDIR='/home/roman/cvs/mauve' CLASSPATHDIR='/home/roman/cvs/classpath' RUNTIMES={ 'jamvm':'/home/roman/local/bin/jamvm' } COMPILERS={ 'jikes':'/usr/bin/jikes -bootclasspath /home/roman/local/share/classpath/glibj.zip' } ### first we fetch new sources os.chdir(MAUVEDIR) os.system('/usr/bin/cvs -z3 update') os.chdir(CLASSPATHDIR) os.system('/usr/bin/cvs -z3 update') ### then we rebuild classpath os.chdir(CLASSPATHDIR) os.system('./configure --prefix=/home/roman/local --with-glibj=both --with-jikes') os.system('/usr/bin/make') os.system('/usr/bin/make install') ### run mauve tests against all runtimes/compilers os.chdir(MAUVEDIR) for runtime in RUNTIMES.keys(): for compiler in COMPILERS.keys(): outfile = OUTDIR + '/mauve-' + runtime + '-' + compiler + '-out' errfile = OUTDIR + '/mauve-' + runtime + '-' + compiler + '-err' cmd = 'COMPILER="' + COMPILERS[compiler] + '" ' cmd += 'RUNTIME="' + RUNTIMES[runtime] + '" ' cmd += MAUVEDIR + '/batch_run ' cmd += '>' + outfile + ' ' cmd += '2>' + errfile print('executing: ' + cmd) os.system(cmd)