def reconf(self): # Step 1. autoconf. with utils.FolderChanger(os.path.join(self.folder, 'js', 'src')): if platform.system() == "Darwin": utils.Shell("autoconf213") elif platform.system() == "Linux": utils.Shell("autoconf2.13") elif platform.system() == "Windows": utils.Shell("autoconf-2.13") # Step 2. configure if os.path.exists(os.path.join(self.folder, 'js', 'src', 'Opt')): shutil.rmtree(os.path.join(self.folder, 'js', 'src', 'Opt')) os.mkdir(os.path.join(self.folder, 'js', 'src', 'Opt')) with utils.FolderChanger(os.path.join(self.folder, 'js', 'src', 'Opt')): args = ['--enable-optimize', '--disable-debug'] if platform.architecture()[0] == "64bit" and self.config == "32bit": if platform.system() == "Darwin": args.append("--target=i686-apple-darwin10.0.0") elif platform.system() == "Linux": args.append("--target=i686-pc-linux-gnu") else: assert False Run(['../configure'] + args, self.env.get()) return True
def setup_module(): src_setup = 'resources/setup.sh' cache_setup = '.regresscache/setup.sh' use_cache = (os.path.exists(cache_setup) and os.path.exists(os.path.join(REPO_PATH, '.git')) and filecmp.cmp(src_setup, cache_setup)) global WRITE try: write_flag = sys.argv.index('--write') except ValueError: WRITE = None else: WRITE = sys.argv[write_flag+1] global ENV ENV = scripttest.TestFileEnvironment(REPO_PATH, start_clear=not use_cache) global SHELL SHELL = utils.Shell(ENV, WRITE) if use_cache: SHELL.git.cleanreset() else: # Only rebuild if the setup script has been modified. ENV.run('sh ../' + src_setup) if not os.path.exists('.regresscache'): os.mkdir('.regresscache') shutil.copyfile(SHELL.relpath(src_setup), SHELL.relpath(cache_setup)) global HEAD_SHA HEAD_SHA = ENV.run('git', 'rev-parse', 'HEAD').stdout.rstrip('\n')
def reconf(self): # Step 1. autoconf. with utils.FolderChanger(os.path.join('js', 'src')): if platform.system() == "Darwin": utils.Shell("autoconf213") elif platform.system() == "Linux": utils.Shell("autoconf2.13") elif platform.system() == "Windows": utils.Shell("autoconf-2.13") # Step 2. configure if not os.path.exists(os.path.join('js', 'src', self.objdir)): os.mkdir(os.path.join('js', 'src', self.objdir)) with utils.FolderChanger(os.path.join('js', 'src', self.objdir)): utils.Shell(self.config_line) return True
def build(self): utils.Shell("make -j 3 -C " + os.path.join('js', 'src', self.objdir))
# Arachnoid - Interpreter
def build(self): utils.Shell("make -j 3 -C " + os.path.join('js', 'src', 'Opt'))
def make(self): if not os.path.exists(os.path.join(self.folder, 'js', 'src', 'Opt')): return utils.Shell("make -j6 -C " + os.path.join(self.folder, 'js', 'src', 'Opt'))