23 #include "../lib/grn-assertions.h"
27 static gchar *tmp_directory;
43 g_free(tmp_directory);
47 remove_tmp_directory(
void)
49 cut_remove_path(tmp_directory, NULL);
55 const gchar *database_path;
57 remove_tmp_directory();
58 g_mkdir_with_parents(tmp_directory, 0700);
63 database_path = cut_build_path(tmp_directory,
"database.groonga", NULL);
76 remove_tmp_directory();
85 "column_create Sites link COLUMN_SCALAR Sites\n"
86 "load --table Sites\n"
88 "[\"_key\",\"_value\"],\n"
89 "[\"groonga.org\",0],\n"
93 "--output_columns \"_id, _key, _value, *\"");
95 cut_assert_equal_string(
"[[[2],"
96 "[[\"_id\",\"UInt32\"],"
97 "[\"_key\",\"ShortText\"],"
98 "[\"_value\",\"Int32\"],"
99 "[\"link\",\"Sites\"]],"
100 "[1,\"groonga.org\",0,\"\"],"
101 "[2,\"razil.jp\",0,\"\"]]]", actual);