コード例 #1
0
ファイル: test_helpers.cpp プロジェクト: JX7P/freebsd
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
ファイル: test_helpers.cpp プロジェクト: 0xbda2d2f8/freebsd
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
ファイル: test_helpers.cpp プロジェクト: 0xbda2d2f8/freebsd
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
ファイル: test_helpers.cpp プロジェクト: JX7P/freebsd
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;
}