Ignore:
Timestamp:
Aug 15, 2019, 10:21:36 AM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
Children:
5c4a473
Parents:
1ee048fd
Message:

Tests almost work, the only issue left is using -E and -CFA together

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/settings.py

    r1ee048fd rd65f92c  
    1111        SRCDIR = os.path.abspath(config.SRCDIR)
    1212        BUILDDIR = os.path.abspath(config.BUILDDIR)
     13        distribute = config.DISTRIBUTE
    1314        os.chdir(testpath)
    1415
     
    8586                self.string = "debug" if value else "no debug"
    8687                self.flags  = """DEBUG_FLAGS=%s""" % ("-debug -O0" if value else "-nodebug -O2")
     88                self.path   = "debug" if value else "nodebug"
    8789
    8890class Install:
    8991        def __init__(self, value):
     92                if value:
     93                        distribute = False
     94
    9095                self.string = "installed" if value else "in-tree"
    9196                self.flags  = """INSTALL_FLAGS=%s""" % ("" if value else "-in-tree")
     
    113118        global timeout
    114119        global output_width
     120        global distcc
    115121
    116122        dry_run      = options.dry_run
     
    122128        timeout      = Timeouts(options.timeout, options.global_timeout)
    123129        output_width = 24
     130        distcc       = "DISTCC_CFA_PATH=~/.cfadistcc/%s/cfa" % tools.config_hash()
    124131
     132        if distribute and not os.environ.get('DISTCC_LOG'):
     133                os.putenv('DISTCC_LOG', os.path.join(BUILDDIR, 'distcc_error.log'))
    125134
    126135def update_make_cmd(force, jobs):
     
    131140def validate():
    132141        errf = os.path.join(BUILDDIR, ".validate.err")
    133         make_ret, out = tools.make( ".validate", error_file = errf, output=subprocess.DEVNULL, error=subprocess.DEVNULL )
     142        make_ret, out = tools.make( ".validate", error_file = errf, output_file=subprocess.DEVNULL, error=subprocess.DEVNULL )
    134143        if make_ret != 0:
    135144                with open (errf, "r") as myfile:
Note: See TracChangeset for help on using the changeset viewer.