/***
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 <errno.h>
#include <stdio.h>
#include <string.h>
#include "bus-util.h"
#include "manager.h"
#include "test-helper.h"
Job *j;
int r;
/* prepare the test */
r = manager_new(MANAGER_USER, true, &m);
if (MANAGER_SKIP_TEST(r)) {
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;
}