Rename test functions

This commit is contained in:
pho 2016-11-15 00:37:18 +00:00
parent 5ae81a5b54
commit b146e1b741

View File

@ -1,4 +1,4 @@
/* $NetBSD: t_refuse_opt.c,v 1.3 2016/11/15 00:32:42 pho Exp $ */
/* $NetBSD: t_refuse_opt.c,v 1.4 2016/11/15 00:37:18 pho Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@ -26,7 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: t_refuse_opt.c,v 1.3 2016/11/15 00:32:42 pho Exp $");
__RCSID("$NetBSD: t_refuse_opt.c,v 1.4 2016/11/15 00:37:18 pho Exp $");
#include <atf-c.h>
@ -34,13 +34,13 @@ __RCSID("$NetBSD: t_refuse_opt.c,v 1.3 2016/11/15 00:32:42 pho Exp $");
#include "../../h_macros.h"
ATF_TC(efuse_opt_add_arg);
ATF_TC_HEAD(efuse_opt_add_arg, tc)
ATF_TC(t_fuse_opt_add_arg);
ATF_TC_HEAD(t_fuse_opt_add_arg, tc)
{
atf_tc_set_md_var(tc, "descr", "Check that fuse_opt_add_arg(3) works");
}
ATF_TC_BODY(efuse_opt_add_arg, tc)
ATF_TC_BODY(t_fuse_opt_add_arg, tc)
{
struct fuse_args args = FUSE_ARGS_INIT(0, NULL);
@ -53,13 +53,13 @@ ATF_TC_BODY(efuse_opt_add_arg, tc)
ATF_CHECK(args.allocated != 0);
}
ATF_TC(efuse_opt_insert_arg);
ATF_TC_HEAD(efuse_opt_insert_arg, tc)
ATF_TC(t_fuse_opt_insert_arg);
ATF_TC_HEAD(t_fuse_opt_insert_arg, tc)
{
atf_tc_set_md_var(tc, "descr", "Check that fuse_opt_insert_arg(3) works");
}
ATF_TC_BODY(efuse_opt_insert_arg, tc)
ATF_TC_BODY(t_fuse_opt_insert_arg, tc)
{
struct fuse_args args = FUSE_ARGS_INIT(0, NULL);
@ -72,13 +72,13 @@ ATF_TC_BODY(efuse_opt_insert_arg, tc)
ATF_CHECK(args.allocated != 0);
}
ATF_TC(efuse_opt_add_opt);
ATF_TC_HEAD(efuse_opt_add_opt, tc)
ATF_TC(t_fuse_opt_add_opt);
ATF_TC_HEAD(t_fuse_opt_add_opt, tc)
{
atf_tc_set_md_var(tc, "descr", "Check that fuse_opt_add_opt(3) works");
}
ATF_TC_BODY(efuse_opt_add_opt, tc)
ATF_TC_BODY(t_fuse_opt_add_opt, tc)
{
char* opt = NULL;
@ -89,13 +89,13 @@ ATF_TC_BODY(efuse_opt_add_opt, tc)
ATF_CHECK_STREQ(opt, "fo\\o,ba,r");
}
ATF_TC(efuse_opt_add_opt_escaped);
ATF_TC_HEAD(efuse_opt_add_opt_escaped, tc)
ATF_TC(t_fuse_opt_add_opt_escaped);
ATF_TC_HEAD(t_fuse_opt_add_opt_escaped, tc)
{
atf_tc_set_md_var(tc, "descr", "Check that fuse_opt_add_opt_escaped(3) works");
}
ATF_TC_BODY(efuse_opt_add_opt_escaped, tc)
ATF_TC_BODY(t_fuse_opt_add_opt_escaped, tc)
{
char* opt = NULL;
@ -106,14 +106,14 @@ ATF_TC_BODY(efuse_opt_add_opt_escaped, tc)
ATF_CHECK_STREQ(opt, "fo\\\\o,ba\\,r");
}
ATF_TC(efuse_opt_match);
ATF_TC_HEAD(efuse_opt_match, tc)
ATF_TC(t_fuse_opt_match);
ATF_TC_HEAD(t_fuse_opt_match, tc)
{
atf_tc_set_md_var(tc, "descr", "Check that fuse_opt_match(3) works"
" for every form of templates");
}
ATF_TC_BODY(efuse_opt_match, tc)
ATF_TC_BODY(t_fuse_opt_match, tc)
{
struct fuse_opt o1[] = { FUSE_OPT_KEY("-x" , 0), FUSE_OPT_END };
struct fuse_opt o2[] = { FUSE_OPT_KEY("foo" , 0), FUSE_OPT_END };
@ -147,11 +147,11 @@ ATF_TC_BODY(efuse_opt_match, tc)
ATF_TP_ADD_TCS(tp)
{
ATF_TP_ADD_TC(tp, efuse_opt_add_arg);
ATF_TP_ADD_TC(tp, efuse_opt_insert_arg);
ATF_TP_ADD_TC(tp, efuse_opt_add_opt);
ATF_TP_ADD_TC(tp, efuse_opt_add_opt_escaped);
ATF_TP_ADD_TC(tp, efuse_opt_match);
ATF_TP_ADD_TC(tp, t_fuse_opt_add_arg);
ATF_TP_ADD_TC(tp, t_fuse_opt_insert_arg);
ATF_TP_ADD_TC(tp, t_fuse_opt_add_opt);
ATF_TP_ADD_TC(tp, t_fuse_opt_add_opt_escaped);
ATF_TP_ADD_TC(tp, t_fuse_opt_match);
return atf_no_error();
}