Changeset a5121bf for tests/pybin


Ignore:
Timestamp:
Aug 7, 2018, 3:23:34 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer
Children:
575a6e5
Parents:
524ed86
Message:

Tests can now be run from installed binaries or tree binaries

Location:
tests/pybin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/settings.py

    r524ed86 ra5121bf  
    6767                self.flags  = """DEBUG_FLAGS="%s" """ % ("-debug" if value else "-nodebug")
    6868
     69class Install:
     70        def __init__(self, value):
     71                self.string = "installed" if value else "in-tree"
     72                self.flags  = """INSTALL_FLAGS="%s" """ % ("" if value else "-in-tree")
     73
    6974def init( options ):
    7075        global arch
     
    7378        global make
    7479        global debug
    75         global debugFlag
     80        global install
    7681
    7782        dry_run    = options.dry_run
     
    7984        make       = 'make'
    8085        debug        = Debug(options.debug)
     86        install    = Install(options.install)
    8187        arch       = Architecture(options.arch)
    8288
  • tests/pybin/tools.py

    r524ed86 ra5121bf  
    102102                test_param,
    103103                settings.debug.flags,
     104                settings.install.flags,
    104105                flags,
    105106                target,
Note: See TracChangeset for help on using the changeset viewer.