예제 #1
0
def test_queue_once():
    from dqparsetests import test_functions as tf
    test_functions = tf()
    import dqcodelists
    codelists = dqcodelists.generateCodelists()

    callback_fn = lambda body: dequeue_download(body, test_functions, codelists)
    queue.exhaust_queue(download_queue, callback_fn)
예제 #2
0
def run_test_queue(subprocess):
    from dqparsetests import test_functions as tf
    test_functions = tf()
    import dqcodelists
    codelists = dqcodelists.generateCodelists()

    for body in queue.handle_queue_generator(download_queue):
        dequeue_download(body, test_functions, codelists, subprocess)
예제 #3
0
def _test_one_package(filename, package_id, runtime_id):
    from dqparsetests import test_functions as tf
    test_functions = tf()
    import dqcodelists
    codelists = dqcodelists.generateCodelists()

    print "Package ID: %d" % package_id
    print "Runtime: %d" % runtime_id

    check_file(test_functions, codelists,
               filename,
               runtime_id,
               package_id)