1 /* 2 * Copyright (c) 2012, Novell Inc. 3 * 4 * This program is licensed under the BSD license, read LICENSE.BSD 5 * for further information 6 */ 7 8 #include "pool.h" 9 #include "repo.h" 10 #include "solver.h" 11 12 #define TESTCASE_RESULT_TRANSACTION (1 << 0) 13 #define TESTCASE_RESULT_PROBLEMS (1 << 1) 14 #define TESTCASE_RESULT_ORPHANED (1 << 2) 15 #define TESTCASE_RESULT_RECOMMENDED (1 << 3) 16 #define TESTCASE_RESULT_UNNEEDED (1 << 4) 17 18 extern Id testcase_str2dep(Pool *pool, char *s); 19 extern const char *testcase_repoid2str(Pool *pool, Id repoid); 20 extern const char *testcase_solvid2str(Pool *pool, Id p); 21 extern Repo *testcase_str2repo(Pool *pool, const char *str); 22 extern Id testcase_str2solvid(Pool *pool, const char *str); 23 extern const char *testcase_job2str(Pool *pool, Id how, Id what); 24 extern Id testcase_str2job(Pool *pool, const char *str, Id *whatp); 25 extern int testcase_write_testtags(Repo *repo, FILE *fp); 26 extern int testcase_add_testtags(Repo *repo, FILE *fp, int flags); 27 extern const char *testcase_getsolverflags(Solver *solv); 28 extern int testcase_setsolverflags(Solver *solv, const char *str); 29 extern void testcase_resetsolverflags(Solver *solv); 30 extern char *testcase_solverresult(Solver *solv, int flags); 31 extern int testcase_write(Solver *solv, char *dir, int resultflags, const char *testcasename, const char *resultname); 32 extern Solver *testcase_read(Pool *pool, FILE *fp, char *testcase, Queue *job, char **resultp, int *resultflagsp); 33 extern char *testcase_resultdiff(char *result1, char *result2); 34