From: Michael Schroeder Date: Mon, 3 Aug 2015 09:29:45 +0000 (+0200) Subject: Support testcase writing in bindings X-Git-Tag: 0.6.12~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06a0900102e36c5b5b6e42e160d4abcde9fcdc6f;p=thirdparty%2Flibsolv.git Support testcase writing in bindings --- diff --git a/bindings/solv.i b/bindings/solv.i index 1a44e2a2..a6a46bb8 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -603,6 +603,7 @@ typedef int bool; #include "repo_autopattern.h" #endif #include "solv_xfopen.h" +#include "testcase.h" /* for old ruby versions */ #ifndef RARRAY_PTR @@ -3068,6 +3069,10 @@ rb_eval_string( queue_push(&q, i); return q; } + + bool write_testcase(const char *dir) { + return testcase_write($self, dir, TESTCASE_RESULT_TRANSACTION | TESTCASE_RESULT_PROBLEMS, 0, 0); + } } %extend Transaction {