24 #include "../lib/grn-assertions.h"
28 static gchar *tmp_directory;
37 "command-select-filter",
44 g_free(tmp_directory);
48 remove_tmp_directory(
void)
50 cut_remove_path(tmp_directory, NULL);
56 const gchar *database_path;
58 remove_tmp_directory();
59 g_mkdir_with_parents(tmp_directory, 0700);
64 database_path = cut_build_path(tmp_directory,
"database.groonga", NULL);
77 remove_tmp_directory();
86 "{\"_key\":\"mori\"},\n"
87 "{\"_key\":\"morita\"},\n"
88 "{\"_key\":\"mona\"}\n"
90 cut_assert_equal_string(
92 "[[\"_id\",\"UInt32\"],[\"_key\",\"ShortText\"]],"
96 "--filter '_key @^ \"mor\"'"));