docs-xml: add dbwrap_tool.1 manual page
[Samba/gebeck_regimport.git] / lib / tdb / test / tap-interface.h
blobd9ed6e84ea5e88f58cf2aa67cbc8a8158d493820
1 /*
2 Unix SMB/CIFS implementation.
3 Simplistic implementation of tap interface.
5 Copyright (C) Rusty Russell 2012
7 ** NOTE! The following LGPL license applies to the talloc
8 ** library. This does NOT imply that all of Samba is released
9 ** under the LGPL
11 This library is free software; you can redistribute it and/or
12 modify it under the terms of the GNU Lesser General Public
13 License as published by the Free Software Foundation; either
14 version 3 of the License, or (at your option) any later version.
16 This library is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
21 You should have received a copy of the GNU Lesser General Public
22 License along with this library; if not, see <http://www.gnu.org/licenses/>.
24 #include <stdio.h>
26 #ifndef __location__
27 #define __TAP_STRING_LINE1__(s) #s
28 #define __TAP_STRING_LINE2__(s) __TAP_STRING_LINE1__(s)
29 #define __TAP_STRING_LINE3__ __TAP_STRING_LINE2__(__LINE__)
30 #define __location__ __FILE__ ":" __TAP_STRING_LINE3__
31 #endif
33 #define plan_tests(num)
34 #define ok(e, ...) do { if (e) { (void)printf("."); } else { fprintf(stderr, __VA_ARGS__); exit(1); } } while(0)
35 #define ok1(e) ok((e), "%s:%s", __location__, #e)
36 #define pass(...) printf(".")
37 #define fail(...) do { fprintf(stderr, __VA_ARGS__); exit(1); } while(0)
38 #define diag printf
39 #define exit_status() 0