summaryrefslogtreecommitdiff
path: root/tools/regression/src/run.py
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-04-08 03:09:47 +0000
committer <>2015-05-05 14:37:32 +0000
commitf2541bb90af059680aa7036f315f052175999355 (patch)
treea5b214744b256f07e1dc2bd7273035a7808c659f /tools/regression/src/run.py
parented232fdd34968697a68783b3195b1da4226915b5 (diff)
downloadboost-tarball-master.tar.gz
Imported from /home/lorry/working-area/delta_boost-tarball/boost_1_58_0.tar.bz2.HEADboost_1_58_0master
Diffstat (limited to 'tools/regression/src/run.py')
-rw-r--r--tools/regression/src/run.py60
1 files changed, 0 insertions, 60 deletions
diff --git a/tools/regression/src/run.py b/tools/regression/src/run.py
deleted file mode 100644
index 5e8e0c7d0..000000000
--- a/tools/regression/src/run.py
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/usr/bin/python
-
-# Copyright Redshift Software, Inc. 2007
-#
-# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or copy at
-# http://www.boost.org/LICENSE_1_0.txt)
-
-import os
-import os.path
-import shutil
-import sys
-import urllib
-
-#~ Using --skip-script-download is useful to avoid repeated downloading of
-#~ the regression scripts when doing the regression commands individually.
-no_update_argument = "--skip-script-download"
-no_update = no_update_argument in sys.argv
-if no_update:
- del sys.argv[sys.argv.index(no_update_argument)]
-
-#~ The directory this file is in.
-root = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
-print '# Running regressions in %s...' % root
-
-script_sources = [ 'collect_and_upload_logs.py', 'process_jam_log.py', 'regression.py' ]
-script_local = os.path.join(root,'tools','regression','src')
-script_remote = 'http://svn.boost.org/svn/boost/trunk/tools/regression/src'
-script_dir = os.path.join(root,'tools_regression_src')
-
-if not no_update:
- #~ Bootstrap.
- #~ * Clear out any old versions of the scripts
- print '# Creating regression scripts at %s...' % script_dir
- if os.path.exists(script_dir):
- shutil.rmtree(script_dir)
- os.mkdir(script_dir)
- #~ * Get new scripts, either from local working copy, or from svn
- if os.path.exists(script_local):
- print '# Copying regression scripts from %s...' % script_local
- for src in script_sources:
- shutil.copyfile( os.path.join(script_local,src), os.path.join(script_dir,src) )
- else:
- print '# Dowloading regression scripts from %s...' % script_remote
- proxy = None
- for a in sys.argv[1:]:
- if a.startswith('--proxy='):
- proxy = {'http' : a.split('=')[1] }
- print '--- %s' %(proxy['http'])
- break
- for src in script_sources:
- urllib.FancyURLopener(proxy).retrieve(
- '%s/%s' % (script_remote,src), os.path.join(script_dir,src) )
-
-#~ * Make the scripts available to Python
-sys.path.insert(0,os.path.join(root,'tools_regression_src'))
-
-#~ Launch runner.
-from regression import runner
-runner(root)