Exemple #1
0
def test_vectors_start_end_time_at_load():
    trimmed = results.read_result_files(RESULT_FILES,
                                        vector_start_time=40,
                                        vector_end_time=60)
    df = results.get_vectors(trimmed)
    _assert_sequential_index(df)
    _assert(sanitize_and_compare_csv(df, "vectors_start_end_time.csv"),
            "content mismatch")
Exemple #2
0
def test_runs_without_config_entries():
    df = results.get_runs(r,
                          include_itervars=True,
                          include_runattrs=True,
                          include_param_assignments=True,
                          include_config_entries=False)
    _assert_sequential_index(df)
    _assert(sanitize_and_compare_csv(df, "runs_without_config_entries.csv"),
            "content mismatch")
Exemple #3
0
def test_statistics_with_all():
    df = results.get_statistics(r,
                                include_attrs=True,
                                include_itervars=True,
                                include_runattrs=True,
                                include_param_assignments=True,
                                include_config_entries=True)
    _assert_sequential_index(df)
    _assert(sanitize_and_compare_csv(df, "statistics_with_all.csv"),
            "content mismatch")
Exemple #4
0
def test_param_assignments_with_all():
    df = results.get_param_assignments(r,
                                       include_itervars=True,
                                       include_runattrs=True,
                                       include_param_assignments=True,
                                       include_config_entries=True)
    _assert_sequential_index(df)
    _assert(sanitize_and_compare_csv(df, "param_assignments_with_all.csv"),
            "content mismatch")
    _assert(
        df.apply(lambda r: r[r["name"]] == r["value"], axis=1).all(),
        "wrong join")
Exemple #5
0
def test_parameters_with_attrs():
    df = results.get_parameters(r, include_attrs=True)
    _assert_sequential_index(df)
    # these parameters don't have any attrs
    _assert(sanitize_and_compare_csv(df, "parameters.csv"), "content mismatch")
Exemple #6
0
def test_parameters():
    df = results.get_parameters(r)
    _assert_sequential_index(df)
    _assert(sanitize_and_compare_csv(df, "parameters.csv"), "content mismatch")
Exemple #7
0
def test_statistics_with_attrs():
    df = results.get_statistics(r, include_attrs=True)
    _assert_sequential_index(df)
    _assert(sanitize_and_compare_csv(df, "statistics_with_attrs.csv"),
            "content mismatch")
Exemple #8
0
def test_runs_with_config_entries():
    df = results.get_runs(r, include_config_entries=True)
    _assert_sequential_index(df)
    _assert(sanitize_and_compare_csv(df, "runs_with_config_entries.csv"),
            "content mismatch")
Exemple #9
0
def test_vectors_end_time():
    trimmed = results.read_result_files(RESULT_FILES)
    df = results.get_vectors(trimmed, end_time=80)
    _assert_sequential_index(df)
    _assert(sanitize_and_compare_csv(df, "vectors_end_time.csv"),
            "content mismatch")
Exemple #10
0
def test_scalars_with_param_assignments():
    df = results.get_scalars(r, include_param_assignments=True)
    _assert_sequential_index(df)
    _assert(sanitize_and_compare_csv(df, "scalars_with_param_assignments.csv"),
            "content mismatch")