예제 #1
0
atf::fs::path
get_process_helpers_path(const atf::tests::tc& tc, bool is_detail)
{
    if (is_detail)
        return atf::fs::path(tc.get_config_var("srcdir")) /
               ".." / ".." / "atf-c" / "detail" / "process_helpers";
    else
        return atf::fs::path(tc.get_config_var("srcdir")) /
               ".." / "atf-c" / "detail" / "process_helpers";
}
예제 #2
0
atf::fs::path
get_process_helpers_path(const atf::tests::tc& tc, bool is_detail)
{
    const char* helper = "detail/process_helpers";
    if (atf_c_tests_base == NULL) {
        if (is_detail)
            return atf::fs::path(tc.get_config_var("srcdir")) /
                   ".." / ".." / "atf-c" / helper;
        else
            return atf::fs::path(tc.get_config_var("srcdir")) /
                   ".." / "atf-c" / helper;
    } else {
        return atf::fs::path(atf_c_tests_base) / helper;
    }
}
예제 #3
0
bool
build_check_cxx_o_srcdir(const atf::tests::tc& tc, const char* sfile)
{
    const atf::fs::path sfilepath =
        atf::fs::path(tc.get_config_var("srcdir")) / sfile;
    return build_check_cxx_o(sfilepath.c_str());
}
예제 #4
0
void
build_check_cxx_o(const atf::tests::tc& tc, const char* sfile,
                  const char* failmsg, const bool expect_pass)
{
    const atf::fs::path sfilepath =
        atf::fs::path(tc.get_config_var("srcdir")) / sfile;
    build_check_cxx_o_aux(sfilepath, failmsg, expect_pass);
}
예제 #5
0
static
atf::fs::path
get_helper(const atf::tests::tc& tc, const char* name)
{
    return atf::fs::path(tc.get_config_var("srcdir")) / name;
}