blob: 96f724f1b1a3f39bbc88311a3c0ec1e32fbe0d18 [file] [edit]
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "louis.h"
int
main(int argc, char **argv)
{
int success = 0;
char * match;
const char * tables[] = {"tablesWithMetadata/foo","tablesWithMetadata/bar",NULL};
lou_setLogLevel(LOG_DEBUG);
lou_indexTables(tables);
match = lou_findTable("id:foo");
success |= (!match || (strstr(match, "tablesWithMetadata/foo") == NULL));
match = lou_findTable("language:en");
success |= (!match || (strstr(match, "tablesWithMetadata/bar") == NULL));
return success;
}