2008-04-30 17:10:46 +04:00
|
|
|
// $NetBSD: t_modctl.cpp,v 1.4 2008/04/30 13:11:00 martin Exp $
|
2008-02-10 15:40:10 +03:00
|
|
|
//
|
|
|
|
// Copyright (c) 2008 The NetBSD Foundation, Inc.
|
|
|
|
// All rights reserved.
|
|
|
|
//
|
|
|
|
// Redistribution and use in source and binary forms, with or without
|
|
|
|
// modification, are permitted provided that the following conditions
|
|
|
|
// are met:
|
|
|
|
// 1. Redistributions of source code must retain the above copyright
|
|
|
|
// notice, this list of conditions and the following disclaimer.
|
|
|
|
// 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
// notice, this list of conditions and the following disclaimer in the
|
|
|
|
// documentation and/or other materials provided with the distribution.
|
|
|
|
//
|
|
|
|
// THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
|
|
|
|
// CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
|
|
// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
// IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
|
|
|
|
// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
|
|
// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
|
|
|
// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
|
|
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
|
|
|
// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
//
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
#include <sys/cdefs.h>
|
2008-04-30 17:10:46 +04:00
|
|
|
__KERNEL_RCSID(0, "$NetBSD: t_modctl.cpp,v 1.4 2008/04/30 13:11:00 martin Exp $");
|
2008-02-10 15:40:10 +03:00
|
|
|
|
|
|
|
#include <sys/module.h>
|
|
|
|
#include <sys/sysctl.h>
|
2008-03-02 14:22:10 +03:00
|
|
|
|
|
|
|
#include <prop/proplib.h>
|
2008-02-10 15:40:10 +03:00
|
|
|
}
|
|
|
|
|
2008-02-10 19:02:24 +03:00
|
|
|
#include <cassert>
|
2008-02-10 15:40:10 +03:00
|
|
|
#include <cerrno>
|
2008-03-02 14:22:10 +03:00
|
|
|
#include <cstdlib>
|
2008-02-10 15:40:10 +03:00
|
|
|
#include <cstring>
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
#include <atf.hpp>
|
|
|
|
|
|
|
|
static bool have_modular = false;
|
|
|
|
|
2008-02-10 19:02:24 +03:00
|
|
|
enum presence_check { both_checks, stat_check, sysctl_check };
|
|
|
|
|
2008-02-10 15:40:10 +03:00
|
|
|
/* --------------------------------------------------------------------- */
|
|
|
|
/* Auxiliary functions */
|
|
|
|
/* --------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Checks if the kernel has 'options MODULAR' built into it and returns
|
|
|
|
* a boolean indicating this condition. This function must be called
|
|
|
|
* during the test program's initialization and the result be stored
|
|
|
|
* globally for further (efficient) usage of require_modular().
|
|
|
|
*/
|
|
|
|
static
|
|
|
|
bool
|
|
|
|
check_modular(void)
|
|
|
|
{
|
|
|
|
bool res;
|
|
|
|
struct iovec iov;
|
|
|
|
|
|
|
|
iov.iov_base = NULL;
|
|
|
|
iov.iov_len = 0;
|
|
|
|
|
|
|
|
if (::modctl(MODCTL_STAT, &iov) == 0)
|
|
|
|
res = true;
|
|
|
|
else
|
|
|
|
res = (errno != ENOSYS);
|
|
|
|
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Makes sure that the kernel has 'options MODULAR' built into it and
|
|
|
|
* skips the test otherwise. Cannot be called unless check_modular()
|
|
|
|
* has been executed before.
|
|
|
|
*/
|
|
|
|
static
|
|
|
|
void
|
|
|
|
require_modular(void)
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!have_modular)
|
|
|
|
ATF_SKIP("Kernel does not have 'options MODULAR'.");
|
|
|
|
}
|
|
|
|
|
2008-02-10 19:02:24 +03:00
|
|
|
static
|
|
|
|
bool
|
|
|
|
get_modstat_info(const char *name, modstat_t *msdest)
|
|
|
|
{
|
|
|
|
bool found;
|
|
|
|
size_t len;
|
|
|
|
struct iovec iov;
|
|
|
|
modstat_t *ms;
|
|
|
|
|
|
|
|
for (len = 4096; ;) {
|
|
|
|
iov.iov_base = ::malloc(len);
|
|
|
|
iov.iov_len = len;
|
|
|
|
if (::modctl(MODCTL_STAT, &iov) != 0) {
|
|
|
|
int err = errno;
|
|
|
|
std::cerr << "modctl(MODCTL_STAT) failed: "
|
|
|
|
<< std::strerror(err)
|
|
|
|
<< std::endl;
|
|
|
|
ATF_FAIL("Failed to query module status");
|
|
|
|
}
|
|
|
|
if (len >= iov.iov_len)
|
|
|
|
break;
|
|
|
|
::free(iov.iov_base);
|
|
|
|
len = iov.iov_len;
|
|
|
|
}
|
|
|
|
|
|
|
|
found = false;
|
|
|
|
len = iov.iov_len / sizeof(modstat_t);
|
|
|
|
for (ms = (modstat_t *)iov.iov_base; len != 0 && !found;
|
|
|
|
ms++, len--) {
|
|
|
|
if (std::strcmp(ms->ms_name, name) == 0) {
|
|
|
|
if (msdest != NULL)
|
|
|
|
*msdest = *ms;
|
|
|
|
found = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
::free(iov.iov_base);
|
|
|
|
|
|
|
|
return found;
|
|
|
|
}
|
|
|
|
|
2008-03-02 14:22:10 +03:00
|
|
|
/*
|
|
|
|
* Queries a sysctl property.
|
|
|
|
*/
|
|
|
|
static
|
|
|
|
bool
|
|
|
|
get_sysctl(const std::string& name, void *buf, const size_t len)
|
|
|
|
{
|
|
|
|
size_t len2 = len;
|
|
|
|
std::cout << "Querying sysctl variable: " << name << std::endl;
|
|
|
|
int ret = ::sysctlbyname(name.c_str(), buf, &len2, NULL, 0);
|
|
|
|
if (ret == -1 && errno != ENOENT) {
|
|
|
|
std::cerr << "sysctlbyname(2) failed: "
|
|
|
|
<< std::strerror(errno) << std::endl;
|
|
|
|
ATF_FAIL("Failed to query " + name);
|
|
|
|
}
|
|
|
|
return ret != -1;
|
|
|
|
}
|
|
|
|
|
2008-02-10 15:40:10 +03:00
|
|
|
/*
|
|
|
|
* Returns a boolean indicating if the k_helper module was loaded
|
2008-02-10 19:02:24 +03:00
|
|
|
* successfully. This implementation uses modctl(2)'s MODCTL_STAT
|
|
|
|
* subcommand to do the check.
|
2008-02-10 15:40:10 +03:00
|
|
|
*/
|
|
|
|
static
|
|
|
|
bool
|
2008-02-10 19:02:24 +03:00
|
|
|
k_helper_is_present_stat(void)
|
|
|
|
{
|
|
|
|
|
|
|
|
return get_modstat_info("k_helper", NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Returns a boolean indicating if the k_helper module was loaded
|
|
|
|
* successfully. This implementation uses the module's sysctl
|
|
|
|
* installed node to do the check.
|
|
|
|
*/
|
|
|
|
static
|
|
|
|
bool
|
|
|
|
k_helper_is_present_sysctl(void)
|
2008-02-10 15:40:10 +03:00
|
|
|
{
|
2008-03-02 14:22:10 +03:00
|
|
|
size_t present;
|
2008-02-10 15:40:10 +03:00
|
|
|
|
2008-03-02 14:22:10 +03:00
|
|
|
return get_sysctl("vendor.k_helper.present", &present,
|
|
|
|
sizeof(present));
|
2008-02-10 15:40:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2008-02-10 19:02:24 +03:00
|
|
|
* Returns a boolean indicating if the k_helper module was loaded
|
|
|
|
* successfully. The 'how' parameter specifies the implementation to
|
|
|
|
* use to do the check.
|
2008-02-10 15:40:10 +03:00
|
|
|
*/
|
|
|
|
static
|
2008-02-10 19:02:24 +03:00
|
|
|
bool
|
|
|
|
k_helper_is_present(presence_check how)
|
2008-02-10 15:40:10 +03:00
|
|
|
{
|
2008-02-10 19:02:24 +03:00
|
|
|
bool found;
|
|
|
|
|
|
|
|
switch (how) {
|
|
|
|
case both_checks:
|
|
|
|
found = k_helper_is_present_stat();
|
|
|
|
ATF_CHECK(k_helper_is_present_sysctl() == found);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case stat_check:
|
|
|
|
found = k_helper_is_present_stat();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case sysctl_check:
|
|
|
|
found = k_helper_is_present_sysctl();
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
assert(false);
|
|
|
|
}
|
|
|
|
|
|
|
|
return found;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Loads the specified module from a file. If fatal is set and an error
|
|
|
|
* occurs when loading the module, an error message is printed and the
|
|
|
|
* test case is aborted.
|
|
|
|
*/
|
|
|
|
static
|
|
|
|
int
|
2008-03-02 14:22:10 +03:00
|
|
|
load(const std::string& filename, prop_dictionary_t props = NULL,
|
|
|
|
bool fatal = true)
|
2008-02-10 19:02:24 +03:00
|
|
|
{
|
|
|
|
int err;
|
2008-03-02 14:22:10 +03:00
|
|
|
char *propsstr;
|
|
|
|
modctl_load_t ml;
|
|
|
|
|
|
|
|
if (props == NULL) {
|
|
|
|
props = prop_dictionary_create();
|
|
|
|
propsstr = prop_dictionary_externalize(props);
|
|
|
|
ATF_CHECK(propsstr != NULL);
|
|
|
|
prop_object_release(props);
|
|
|
|
} else {
|
|
|
|
propsstr = prop_dictionary_externalize(props);
|
|
|
|
ATF_CHECK(propsstr != NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
ml.ml_filename = filename.c_str();
|
|
|
|
ml.ml_flags = 0;
|
|
|
|
ml.ml_props = propsstr;
|
|
|
|
ml.ml_propslen = strlen(propsstr);
|
2008-02-10 15:40:10 +03:00
|
|
|
|
|
|
|
std::cout << "Loading module " << filename << std::endl;
|
2008-02-10 19:02:24 +03:00
|
|
|
err = 0;
|
2008-03-02 14:22:10 +03:00
|
|
|
if (::modctl(MODCTL_LOAD, &ml) == -1) {
|
2008-02-10 19:02:24 +03:00
|
|
|
err = errno;
|
2008-02-10 15:40:10 +03:00
|
|
|
std::cerr << "modctl(MODCTL_LOAD, " << filename
|
|
|
|
<< ") failed: " << std::strerror(err)
|
|
|
|
<< std::endl;
|
2008-02-10 19:02:24 +03:00
|
|
|
if (fatal)
|
|
|
|
ATF_FAIL("Module load failed");
|
2008-02-10 15:40:10 +03:00
|
|
|
}
|
2008-03-02 14:22:10 +03:00
|
|
|
|
|
|
|
::free(propsstr);
|
|
|
|
|
2008-02-10 19:02:24 +03:00
|
|
|
return err;
|
2008-02-10 15:40:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Unloads the specified module. If silent is true, nothing will be
|
|
|
|
* printed and no errors will be raised if the unload was unsuccessful.
|
|
|
|
*/
|
|
|
|
static
|
2008-02-10 19:02:24 +03:00
|
|
|
int
|
|
|
|
unload(const char *name, bool fatal = true)
|
2008-02-10 15:40:10 +03:00
|
|
|
{
|
2008-02-10 19:02:24 +03:00
|
|
|
int err;
|
2008-02-10 15:40:10 +03:00
|
|
|
|
2008-02-10 19:02:24 +03:00
|
|
|
std::cout << "Unloading module " << name << std::endl;
|
|
|
|
err = 0;
|
|
|
|
if (::modctl(MODCTL_UNLOAD, __UNCONST(name)) == -1) {
|
|
|
|
err = errno;
|
|
|
|
std::cerr << "modctl(MODCTL_UNLOAD, " << name
|
|
|
|
<< ") failed: " << std::strerror(err)
|
|
|
|
<< std::endl;
|
|
|
|
if (fatal)
|
2008-02-10 15:40:10 +03:00
|
|
|
ATF_FAIL("Module unload failed");
|
|
|
|
}
|
2008-02-10 19:02:24 +03:00
|
|
|
return err;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* A silent version of unload, to be called as part of the cleanup
|
|
|
|
* process only.
|
|
|
|
*/
|
|
|
|
static
|
|
|
|
int
|
|
|
|
unload_cleanup(const char *name)
|
|
|
|
{
|
|
|
|
|
|
|
|
(void)::modctl(MODCTL_UNLOAD, __UNCONST(name));
|
2008-02-10 15:40:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------- */
|
|
|
|
/* Test cases */
|
|
|
|
/* --------------------------------------------------------------------- */
|
|
|
|
|
2008-02-10 19:02:24 +03:00
|
|
|
ATF_TEST_CASE_WITH_CLEANUP(cmd_load);
|
|
|
|
ATF_TEST_CASE_HEAD(cmd_load)
|
2008-02-10 15:40:10 +03:00
|
|
|
{
|
2008-02-10 19:02:24 +03:00
|
|
|
set("descr", "Tests for the MODCTL_LOAD command");
|
2008-02-10 15:40:10 +03:00
|
|
|
set("require.user", "root");
|
|
|
|
}
|
2008-02-10 19:02:24 +03:00
|
|
|
ATF_TEST_CASE_BODY(cmd_load)
|
2008-02-10 15:40:10 +03:00
|
|
|
{
|
|
|
|
require_modular();
|
|
|
|
|
2008-03-02 14:22:10 +03:00
|
|
|
ATF_CHECK(load("", NULL, false) == ENOENT);
|
|
|
|
ATF_CHECK(load("non-existent.o", NULL, false) == ENOENT);
|
2008-02-10 19:02:24 +03:00
|
|
|
|
|
|
|
std::string longname(MAXPATHLEN, 'a');
|
2008-03-02 14:22:10 +03:00
|
|
|
ATF_CHECK(load(longname.c_str(), NULL, false) == ENAMETOOLONG);
|
2008-02-10 15:40:10 +03:00
|
|
|
|
2008-02-10 19:02:24 +03:00
|
|
|
ATF_CHECK(!k_helper_is_present(stat_check));
|
|
|
|
load(get_srcdir() + "/k_helper.o");
|
2008-02-10 15:40:10 +03:00
|
|
|
std::cout << "Checking if load was successful" << std::endl;
|
2008-02-10 19:02:24 +03:00
|
|
|
ATF_CHECK(k_helper_is_present(stat_check));
|
|
|
|
}
|
|
|
|
ATF_TEST_CASE_CLEANUP(cmd_load)
|
|
|
|
{
|
|
|
|
unload_cleanup("k_helper");
|
|
|
|
}
|
|
|
|
|
2008-03-02 14:22:10 +03:00
|
|
|
ATF_TEST_CASE_WITH_CLEANUP(cmd_load_props);
|
|
|
|
ATF_TEST_CASE_HEAD(cmd_load_props)
|
|
|
|
{
|
|
|
|
set("descr", "Tests for the MODCTL_LOAD command, providing extra "
|
|
|
|
"load-time properties");
|
|
|
|
set("require.user", "root");
|
|
|
|
}
|
|
|
|
ATF_TEST_CASE_BODY(cmd_load_props)
|
|
|
|
{
|
|
|
|
prop_dictionary_t props;
|
|
|
|
|
|
|
|
require_modular();
|
|
|
|
|
|
|
|
std::cout << "Loading module without properties" << std::endl;
|
|
|
|
props = prop_dictionary_create();
|
|
|
|
load(get_srcdir() + "/k_helper.o", props);
|
|
|
|
prop_object_release(props);
|
|
|
|
{
|
|
|
|
int ok;
|
|
|
|
ATF_CHECK(get_sysctl("vendor.k_helper.prop_str_ok",
|
|
|
|
&ok, sizeof(ok)));
|
|
|
|
ATF_CHECK(!ok);
|
|
|
|
}
|
|
|
|
unload("k_helper");
|
|
|
|
|
|
|
|
std::cout << "Loading module with a string property" << std::endl;
|
|
|
|
props = prop_dictionary_create();
|
|
|
|
prop_dictionary_set(props, "prop_str",
|
|
|
|
prop_string_create_cstring("1st string"));
|
|
|
|
load(get_srcdir() + "/k_helper.o", props);
|
|
|
|
prop_object_release(props);
|
|
|
|
{
|
|
|
|
int ok;
|
|
|
|
ATF_CHECK(get_sysctl("vendor.k_helper.prop_str_ok",
|
|
|
|
&ok, sizeof(ok)));
|
|
|
|
ATF_CHECK(ok);
|
|
|
|
|
|
|
|
char val[128];
|
|
|
|
ATF_CHECK(get_sysctl("vendor.k_helper.prop_str_val",
|
|
|
|
&val, sizeof(val)));
|
|
|
|
ATF_CHECK(std::strcmp(val, "1st string") == 0);
|
|
|
|
}
|
|
|
|
unload("k_helper");
|
|
|
|
|
|
|
|
std::cout << "Loading module with a different string property"
|
|
|
|
<< std::endl;
|
|
|
|
props = prop_dictionary_create();
|
|
|
|
prop_dictionary_set(props, "prop_str",
|
|
|
|
prop_string_create_cstring("2nd string"));
|
|
|
|
load(get_srcdir() + "/k_helper.o", props);
|
|
|
|
prop_object_release(props);
|
|
|
|
{
|
|
|
|
int ok;
|
|
|
|
ATF_CHECK(get_sysctl("vendor.k_helper.prop_str_ok",
|
|
|
|
&ok, sizeof(ok)));
|
|
|
|
ATF_CHECK(ok);
|
|
|
|
|
|
|
|
char val[128];
|
|
|
|
ATF_CHECK(get_sysctl("vendor.k_helper.prop_str_val",
|
|
|
|
&val, sizeof(val)));
|
|
|
|
ATF_CHECK(std::strcmp(val, "2nd string") == 0);
|
|
|
|
}
|
|
|
|
unload("k_helper");
|
|
|
|
}
|
|
|
|
ATF_TEST_CASE_CLEANUP(cmd_load_props)
|
|
|
|
{
|
|
|
|
unload_cleanup("k_helper");
|
|
|
|
}
|
|
|
|
|
2008-02-10 19:02:24 +03:00
|
|
|
ATF_TEST_CASE_WITH_CLEANUP(cmd_stat);
|
|
|
|
ATF_TEST_CASE_HEAD(cmd_stat)
|
|
|
|
{
|
|
|
|
set("descr", "Tests for the MODCTL_STAT command");
|
|
|
|
set("require.user", "root");
|
|
|
|
}
|
|
|
|
ATF_TEST_CASE_BODY(cmd_stat)
|
|
|
|
{
|
|
|
|
require_modular();
|
|
|
|
|
|
|
|
ATF_CHECK(!k_helper_is_present(both_checks));
|
|
|
|
|
|
|
|
load(get_srcdir() + "/k_helper.o");
|
|
|
|
ATF_CHECK(k_helper_is_present(both_checks));
|
|
|
|
{
|
|
|
|
modstat_t ms;
|
|
|
|
ATF_CHECK(get_modstat_info("k_helper", &ms));
|
2008-02-10 15:40:10 +03:00
|
|
|
|
2008-02-10 19:02:24 +03:00
|
|
|
ATF_CHECK(ms.ms_class == MODULE_CLASS_MISC);
|
|
|
|
ATF_CHECK(ms.ms_source == MODULE_SOURCE_FILESYS);
|
|
|
|
ATF_CHECK(ms.ms_refcnt == 0);
|
|
|
|
}
|
2008-02-10 15:40:10 +03:00
|
|
|
unload("k_helper");
|
|
|
|
|
2008-02-10 19:02:24 +03:00
|
|
|
ATF_CHECK(!k_helper_is_present(both_checks));
|
|
|
|
}
|
|
|
|
ATF_TEST_CASE_CLEANUP(cmd_stat)
|
|
|
|
{
|
|
|
|
unload_cleanup("k_helper");
|
|
|
|
}
|
|
|
|
|
|
|
|
ATF_TEST_CASE_WITH_CLEANUP(cmd_unload);
|
|
|
|
ATF_TEST_CASE_HEAD(cmd_unload)
|
|
|
|
{
|
|
|
|
set("descr", "Tests for the MODCTL_UNLOAD command");
|
|
|
|
set("require.user", "root");
|
|
|
|
}
|
|
|
|
ATF_TEST_CASE_BODY(cmd_unload)
|
|
|
|
{
|
|
|
|
require_modular();
|
|
|
|
|
|
|
|
load(get_srcdir() + "/k_helper.o");
|
|
|
|
|
|
|
|
ATF_CHECK(unload("", false) == ENOENT);
|
|
|
|
ATF_CHECK(unload("non-existent.o", false) == ENOENT);
|
|
|
|
ATF_CHECK(unload("k_helper.o", false) == ENOENT);
|
|
|
|
|
|
|
|
ATF_CHECK(k_helper_is_present(stat_check));
|
|
|
|
unload("k_helper");
|
2008-02-10 15:40:10 +03:00
|
|
|
std::cout << "Checking if unload was successful" << std::endl;
|
2008-02-10 19:02:24 +03:00
|
|
|
ATF_CHECK(!k_helper_is_present(stat_check));
|
2008-02-10 15:40:10 +03:00
|
|
|
}
|
2008-02-10 19:02:24 +03:00
|
|
|
ATF_TEST_CASE_CLEANUP(cmd_unload)
|
2008-02-10 15:40:10 +03:00
|
|
|
{
|
2008-02-10 19:02:24 +03:00
|
|
|
unload_cleanup("k_helper");
|
2008-02-10 15:40:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------- */
|
|
|
|
/* Main */
|
|
|
|
/* --------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
ATF_INIT_TEST_CASES(tcs)
|
|
|
|
{
|
|
|
|
have_modular = check_modular();
|
|
|
|
|
2008-02-10 19:02:24 +03:00
|
|
|
ATF_ADD_TEST_CASE(tcs, cmd_load);
|
2008-03-02 14:22:10 +03:00
|
|
|
ATF_ADD_TEST_CASE(tcs, cmd_load_props);
|
2008-02-10 19:02:24 +03:00
|
|
|
ATF_ADD_TEST_CASE(tcs, cmd_stat);
|
|
|
|
ATF_ADD_TEST_CASE(tcs, cmd_unload);
|
2008-02-10 15:40:10 +03:00
|
|
|
}
|