test: add simple test for validating some of the unit specifiers we support

(Also, sort list of test unit files in meson.build alphabetically, to
make future additions more systematic)
This commit is contained in:
Lennart Poettering
2017-10-26 18:01:04 +02:00
parent 14068e17f3
commit 9672b58398
3 changed files with 126 additions and 105 deletions
+5
View File
@@ -468,6 +468,10 @@ static void test_exec_unset_environment(Manager *m) {
test(m, "exec-unset-environment.service", 0, CLD_EXITED);
}
static void test_exec_specifier(Manager *m) {
test(m, "exec-specifier.service", 0, CLD_EXITED);
}
static int run_tests(UnitFileScope scope, const test_function_t *tests) {
const test_function_t *test = NULL;
Manager *m = NULL;
@@ -529,6 +533,7 @@ int main(int argc, char *argv[]) {
static const test_function_t system_tests[] = {
test_exec_systemcall_system_mode_with_user,
test_exec_dynamic_user,
test_exec_specifier,
NULL,
};
int r;