예제 #1
0
def test_reporter():
    local_env = os.environ.copy()
    exe = os.sep.join([TOP_PATH, 'exec', 'gtest-extend.bin'])
    print 'Bin-filename: ', exe
    out = run_bin_with_wait(exe, local_env, TIME_TO_WAIN)
    result = parser_out(out)
    report_gtest_result(result)
예제 #2
0
def run_one_process(exe_file_name, how_much_wait_result):
    # Запускаем
    local_env = os.environ.copy()
    tic()
    # Около 0.3.. sec! на загрузку выполнение, а по факту на загрузку *.bin
    out = run_bin_with_wait(exe_file_name, local_env, how_much_wait_result)
    toc()
    result = parser_out(out)
    report_gtest_result(result)
def test_run_extend_bin():
    local_env = os.environ.copy()
    exe = os.sep.join([TOP_PATH, 'exec', 'gtest-extend.bin'])
    out = run_bin_with_wait(exe, local_env, TIME_TO_WAIN)
    result = parser_out(out)
    i = 0
    for j in result:
        i += 1
    assert i == 8
예제 #4
0
def f(x):
    # Run tests
   # print x
    local_env = os.environ.copy()
    local_env['GTEST_TOTAL_SHARDS'] = str(x[0])
    local_env['GTEST_SHARD_INDEX'] = str(x[1])
    exe_local = x[2]
    time_to_wait = x[3]

    # kill!! портим вызов!
    tic()
    out = run_bin_with_wait(exe_local, local_env, time_to_wait)
    toc()
    report = parse_out_not_gen(out)
    return report
예제 #5
0
def test_inf_loop_run_update_parallel():
    local_env = os.environ.copy()
    exe = os.sep.join([TOP_PATH, 'exec', 'gtest-deadlock.bin'])
    run_bin_with_wait(exe, local_env, TIME_TO_WAIT)