Ejemplo n.º 1
0
def run():
    """
    Run tests for one or more dataset drivers.  If -b is passed then
    we build all drivers, otherwise we use the current IDK driver.
    @return: If any test fails return false, otherwise true
    """

    opts = parseArgs()
    failure = False

    for metadata in get_metadata(opts):
        app = NoseTest(metadata,
                       testname=opts.testname,
                       suppress_stdout=opts.suppress_stdout,
                       noseargs=opts.noseargs)

        app.report_header()

        if( opts.unit ):
            success = app.run_unit()
        elif( opts.integration ):
            success = app.run_integration()
        elif( opts.qualification ):
            success = app.run_qualification()
        else:
            success = app.run()

        if(not success): failure = True

    return failure
Ejemplo n.º 2
0
def run():
    """
    Run tests for one or more dataset drivers.  If -b is passed then
    we build all drivers, otherwise we use the current IDK driver.
    @return: If any test fails return false, otherwise true
    """

    opts = parseArgs()
    failure = False

    for metadata in get_metadata(opts):
        app = NoseTest(metadata,
                       testname=opts.testname,
                       suppress_stdout=opts.suppress_stdout,
                       noseargs=opts.noseargs)

        app.report_header()

        if (opts.unit):
            success = app.run_unit()
        elif (opts.integration):
            success = app.run_integration()
        elif (opts.qualification):
            success = app.run_qualification()
        else:
            success = app.run()

        if (not success): failure = True

    return failure
Ejemplo n.º 3
0
def run():
    """
    Run tests for one or more dataset drivers.  If -b is passed then
    we build all drivers, otherwise we use the current IDK driver.
    @return: If any test fails return false, otherwise true
    """

    opts = parseArgs()
    failed = False
    count = 0
    success = 0
    failure = 0
    error = 0
    start_time = time.time()

    for metadata in get_metadata(opts):
        count += 1
        app = NoseTest(metadata,
                       testname=opts.testname,
                       suppress_stdout=opts.suppress_stdout,
                       noseargs=opts.noseargs)

        app.report_header()

        if( opts.unit ):
            result = app.run_unit()
        elif( opts.integration ):
            result = app.run_integration()
        elif( opts.qualification ):
            result = app.run_qualification()
        elif( opts.ingest ):
            result = app.run_ingestion(opts.directory, opts.exit_time)
        else:
            result = app.run()

        if(not result): failed = True

        success += app.success_count
        error += app.error_count
        failure += app.failure_count

    if(count > 1):
        driver_report(count, time.time() - start_time, success, error, failure)

    return failure
Ejemplo n.º 4
0
def run():
    """
    Run tests for one or more dataset drivers.  If -b is passed then
    we build all drivers, otherwise we use the current IDK driver.
    @return: If any test fails return false, otherwise true
    """

    opts = parseArgs()
    failed = False
    count = 0
    success = 0
    failure = 0
    error = 0
    start_time = time.time()

    for metadata in get_metadata(opts):
        count += 1
        app = NoseTest(metadata,
                       testname=opts.testname,
                       suppress_stdout=opts.suppress_stdout,
                       noseargs=opts.noseargs)

        app.report_header()

        if (opts.unit):
            result = app.run_unit()
        elif (opts.integration):
            result = app.run_integration()
        elif (opts.qualification):
            result = app.run_qualification()
        elif (opts.ingest):
            result = app.run_ingestion(opts.directory, opts.exit_time)
        else:
            result = app.run()

        if (not result): failed = True

        success += app.success_count
        error += app.error_count
        failure += app.failure_count

    if (count > 1):
        driver_report(count, time.time() - start_time, success, error, failure)

    return failure