Home | History | Annotate | Download | only in tests

Lines Matching refs:root

178   GFile *root;
191 root = g_file_new_for_commandline_arg ((char *) test_data);
192 g_assert (root != NULL);
194 /* create root directory */
195 res = g_file_make_directory (root, NULL, NULL);
212 child = create_empty_file (root, item.filename, item.create_flags);
216 child = create_empty_dir (root, item.filename);
221 child = create_symlink (root, item.filename, item.link_to);
245 child = g_file_get_child (root, "pattern_file");
270 g_object_unref (root);
383 GFile *root;
399 root = g_file_new_for_commandline_arg ((char *) test_data);
400 g_assert (root != NULL);
401 res = g_file_query_exists (root, NULL);
414 child = file_exists (root, item.filename, &res);
432 child = file_exists (root, "pattern_file", &res);
477 g_object_unref (root);
481 traverse_recurse_dirs (GFile * parent, GFile * root)
492 g_assert (root != NULL);
508 relative_path = g_file_get_relative_path (root, descend);
525 log (" Found file %s, relative to root: %s\n",
529 traverse_recurse_dirs (descend, root);
546 GFile *root;
553 root = g_file_new_for_commandline_arg ((char *) test_data);
554 g_assert (root != NULL);
555 res = g_file_query_exists (root, NULL);
558 traverse_recurse_dirs (root, root);
560 g_object_unref (root);
569 GFile *root, *child;
581 root = g_file_new_for_commandline_arg ((char *) test_data);
582 g_assert (root != NULL);
583 res = g_file_query_exists (root, NULL);
600 child = g_file_get_child (root, item.filename);
642 g_object_unref (root);
646 do_copy_move (GFile * root, struct StructureItem item, const char *target_dir,
655 dst_dir = g_file_get_child (root, target_dir);
657 src_file = g_file_get_child (root, item.filename);
736 GFile *root;
744 root = g_file_new_for_commandline_arg ((char *) test_data);
745 g_assert (root != NULL);
746 res = g_file_query_exists (root, NULL);
761 do_copy_move (root, item, TEST_DIR_TARGET, 0);
769 do_copy_move (root, item, TEST_DIR_TARGET, TEST_OVERWRITE);
772 do_copy_move (root, item, ".", TEST_ALREADY_EXISTS);
774 do_copy_move (root, item, TEST_TARGET_FILE,
777 do_copy_move (root, item, TEST_NAME_NOT_EXISTS,
784 do_copy_move (root, item, TEST_DIR_NO_ACCESS,
787 do_copy_move (root, item, TEST_DIR_NO_WRITE,
793 g_object_unref (root);
799 GFile *root, *child;
809 root = g_file_new_for_commandline_arg ((char *) test_data);
810 g_assert (root != NULL);
811 res = g_file_query_exists (root, NULL);
824 child = g_file_get_child (root, item.filename);
879 g_object_unref (root);
885 GFile *root, *child;
895 root = g_file_new_for_commandline_arg ((char *) test_data);
896 g_assert (root != NULL);
897 res = g_file_query_exists (root, NULL);
911 child = g_file_get_child (root, item.filename);
949 g_object_unref (root);
955 GFile *root;
965 root = g_file_new_for_commandline_arg ((char *) test_data);
966 g_assert (root != NULL);
967 res = g_file_query_exists (root, NULL);
980 child = file_exists (root, item.filename, &res);
1018 g_object_unref (root);
1023 cleanup_dir_recurse (GFile *parent, GFile *root)
1032 g_assert (root != NULL);
1048 relative_path = g_file_get_relative_path (root, descend);
1054 cleanup_dir_recurse (descend, root);
1075 GFile *root;
1081 root = g_file_new_for_commandline_arg ((char *) test_data);
1082 g_assert (root != NULL);
1084 cleanup_dir_recurse (root, root);
1086 g_file_delete (root, NULL, NULL);
1088 g_object_unref (root);