2 $Id: test.h,v 1.1.2.1 2010-02-01 10:56:08 franklahm Exp $
3 Copyright (c) 2010 Frank Lahm <franklahm@gmail.com>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
21 #endif /* HAVE_CONFIG_H */
28 #include <atalk/util.h>
29 #include <atalk/cnid.h>
30 #include <atalk/logger.h>
31 #include <atalk/volume.h>
32 #include <atalk/directory.h>
33 #include <atalk/queue.h>
34 #include <atalk/bstrlib.h>
36 #include "directory.h"
40 #include "afp_config.h"
44 static inline void alignok(int len)
54 printf("Testing: %s ... ", (#a) ); \
55 alignok(strlen(#a)); \
59 #define TEST_int(a, b) \
60 printf("Testing: %s ... ", (#a) ); \
61 alignok(strlen(#a)); \
62 if ((reti = (a)) != b) { \
63 printf("[error]\n"); \
65 } else { printf("[ok]\n"); }
67 #define TEST_expr(a, b) \
68 printf("Testing: %s ... ", (#a) ); \
69 alignok(strlen(#a)); \
74 printf("[error]\n"); \