Move test data files to test/data/keymaps

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
master
Daniel Stone 2012-07-12 12:02:19 +01:00
parent b10f924b0c
commit 059c1842ef
9 changed files with 7 additions and 6 deletions

View File

@ -53,7 +53,7 @@ int main(int argc, char *argv[])
int fd;
srcdir = srcdir ? srcdir : ".";
assert(asprintf(&path, "%s/test/data/dump.data", srcdir) != -1);
assert(asprintf(&path, "%s/test/data/keymaps/dump.data", srcdir) != -1);
fd = open(path, O_RDONLY);
assert(fd >= 0);
assert(stat(path, &stat_buf) == 0);

View File

@ -68,7 +68,8 @@ test_file_name(const char *file_name)
static char path[PATH_MAX];
const char *srcdir = getenv("srcdir");
snprintf(path, PATH_MAX - 1, "%s/test/data/%s", srcdir ? srcdir : ".", file_name);
snprintf(path, PATH_MAX - 1,
"%s/test/data/keymaps/%s", srcdir ? srcdir : ".", file_name);
return test_file(path);
}
@ -98,10 +99,10 @@ int
main(void)
{
assert(test_file_name("basic.xkb"));
assert(test_file_name("keymaps/basic.xkb"));
/* XXX check we actually get qwertz here ... */
assert(test_file_name("default.xkb"));
assert(test_file_name("comprehensive-plus-geom.xkb"));
assert(test_file_name("keymaps/default.xkb"));
assert(test_file_name("keymaps/comprehensive-plus-geom.xkb"));
assert(!test_file_name("bad.xkb"));

View File

@ -49,7 +49,7 @@ int main(int argc, char *argv[])
srcdir = getenv("srcdir");
assert(srcdir);
assert(asprintf(&path, "%s/test/stringcomp.data", srcdir) > 0);
assert(asprintf(&path, "%s/test/data/keymaps/stringcomp.data", srcdir) > 0);
assert(path);
fd = open(path, O_RDONLY);