2 * Copyright (c) 2012, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
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 #define TESTCASE_RESULT_ALTERNATIVES (1 << 5)
18 #define TESTCASE_RESULT_RULES (1 << 6)
19 #define TESTCASE_RESULT_GENID (1 << 7)
20 #define TESTCASE_RESULT_REASON (1 << 8)
22 /* reuse solver hack, testsolv use only */
23 #define TESTCASE_RESULT_REUSE_SOLVER (1 << 31)
25 extern Id testcase_str2dep(Pool *pool, const char *s);
26 extern const char *testcase_dep2str(Pool *pool, Id id);
27 extern const char *testcase_repoid2str(Pool *pool, Id repoid);
28 extern const char *testcase_solvid2str(Pool *pool, Id p);
29 extern Repo *testcase_str2repo(Pool *pool, const char *str);
30 extern Id testcase_str2solvid(Pool *pool, const char *str);
31 extern const char *testcase_job2str(Pool *pool, Id how, Id what);
32 extern Id testcase_str2job(Pool *pool, const char *str, Id *whatp);
33 extern int testcase_write_testtags(Repo *repo, FILE *fp);
34 extern int testcase_add_testtags(Repo *repo, FILE *fp, int flags);
35 extern const char *testcase_getsolverflags(Solver *solv);
36 extern int testcase_setsolverflags(Solver *solv, const char *str);
37 extern void testcase_resetsolverflags(Solver *solv);
38 extern char *testcase_solverresult(Solver *solv, int flags);
39 extern int testcase_write(Solver *solv, const char *dir, int resultflags, const char *testcasename, const char *resultname);
40 extern Solver *testcase_read(Pool *pool, FILE *fp, const char *testcase, Queue *job, char **resultp, int *resultflagsp);
41 extern char *testcase_resultdiff(const char *result1, const char *result2);