test-condition.c revision 958b66ea16deddd794b3a52643bd44633e165ead
/***
This file is part of systemd
Copyright 2014 Ronny Chevalier
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "condition.h"
#include "macro.h"
#include "util.h"
#include "log.h"
#include "architecture.h"
#include "sd-id128.h"
#include "selinux-util.h"
#include "audit.h"
#include "ima-util.h"
#include "apparmor-util.h"
#include "smack-util.h"
#include "hostname-util.h"
static void test_condition_test_path(void) {
}
static void test_condition_test_ac_power(void) {
}
static void test_condition_test_host(void) {
int r;
char sid[SD_ID128_STRING_MAX];
r = sd_id128_get_machine(&id);
assert_se(r >= 0);
}
static void test_condition_test_architecture(void) {
const char *sa;
int a;
a = uname_architecture();
assert_se(a >= 0);
sa = architecture_to_string(a);
}
static void test_condition_test_kernel_command_line(void) {
condition = condition_new(CONDITION_KERNEL_COMMAND_LINE, "thisreallyshouldntbeonthekernelcommandline", false, false);
}
static void test_condition_test_null(void) {
}
static void test_condition_test_security(void) {
}
log_open();
return 0;
}