#include <stdarg.h>
#include <assert.h>
-const char *ccan_dir;
-
static size_t dir_hash(const char *name)
{
return hash(name, strlen(name), 0);
errx(1, "I don't expect to be run from the root directory");
m->basename++;
- /* We expect the ccan dir to be two levels above module dir. */
- if (!ccan_dir) {
- char *p, *dir;
- dir = talloc_strdup(NULL, m->dir);
- p = strrchr(dir, '/');
- if (!p)
- errx(1, "I expect the ccan root directory in ../..");
- *p = '\0';
- p = strrchr(dir, '/');
- if (!p)
- errx(1, "I expect the ccan root directory in ../..");
- *p = '\0';
- ccan_dir = dir;
- }
-
add_files(m, "");
/* Nicer to run tests in a predictable order. */