test-engine.c revision 3b3a64d7546f77efe5ec7356c2f318401eeae19e
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/***
This file is part of systemd.
Copyright 2010 Lennart Poettering
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 <stdio.h>
#include <errno.h>
#include <string.h>
#include "manager.h"
#include "bus-util.h"
Job *j;
int r;
/* prepare the test */
r = manager_new(MANAGER_USER, true, &m);
return EXIT_TEST_SKIP;
}
assert_se(r >= 0);
printf("Load1:\n");
printf("Test1: (Trivial)\n");
if (sd_bus_error_is_set(&err))
assert_se(r == 0);
printf("Load2:\n");
printf("Test2: (Cyclic Order, Unfixable)\n");
printf("Test3: (Cyclic Order, Fixable, Garbage Collector)\n");
printf("Test4: (Identical transaction)\n");
printf("Load3:\n");
printf("Test5: (Colliding transaction, fail)\n");
printf("Test6: (Colliding transaction, replace)\n");
printf("Test7: (Unmergeable job type, fail)\n");
printf("Test8: (Mergeable job type, fail)\n");
printf("Test9: (Unmergeable job type, replace)\n");
printf("Load4:\n");
printf("Test10: (Unmergeable job type of auxiliary job, fail)\n");
manager_free(m);
return 0;
}