def test_bootstrapSIT(self):
        basePkgList = SIT.getMinRequirements()
        outputDir = tempfile.mkdtemp(prefix='test-')

        # create test SIT
        copyFilter = CopyTreeFilter.CopyTreeFilter([])  # skip copying binaries
        copyFilter.filterDocu = True
        SIT.bootstrap(outputDir, True, True, copyFilter.callback, False)

        # check if all essential packages are available
        for package in basePkgList:
            Any.requireIsFile(
                os.path.join(outputDir, package, 'packageVar.cmake'))

        # check for Module-Index directory
        Any.requireIsDir(os.path.join(outputDir, 'Modules', 'Index'))

        # clean-up
        FastScript.remove(outputDir)
예제 #2
0
#----------------------------------------------------------------------------
# Main program
#----------------------------------------------------------------------------

if os.path.exists(path):
    logging.error('%s: directory exists' % path)
    raise SystemExit()

# setup filtering

if platforms:
    try:
        platformList = platforms.split(',')
    except AssertionError as details:
        logging.error(details)
        raise SystemExit()

else:
    platformList = []

copyFilter = CopyTreeFilter.CopyTreeFilter(platformList)
copyFilter.filterDocu = filterDocu

# create new SIT

logging.info('bootstrapping SIT in %s', path)
SIT.bootstrap(path, buildSDK, True, copyFilter.callback, resolveLTS)

# EOF