Lines Matching refs:test_path

42         STRV_FOREACH(test_path, tests_path) {  in setup_test()
45 p = strjoin("/tmp/test-path_", *test_path); in setup_test()
127 const char *test_path = "/tmp/test-path_exists"; in test_path_exists() local
143 assert_se(touch(test_path) >= 0); in test_path_exists()
152 assert_se(rm_rf(test_path, REMOVE_ROOT|REMOVE_PHYSICAL) == 0); in test_path_exists()
161 const char *test_path = "/tmp/test-path_existsglobFOOBAR"; in test_path_existsglob() local
177 assert_se(touch(test_path) >= 0); in test_path_existsglob()
186 assert_se(rm_rf(test_path, REMOVE_ROOT|REMOVE_PHYSICAL) == 0); in test_path_existsglob()
195 const char *test_path = "/tmp/test-path_changed"; in test_path_changed() local
212 assert_se(touch(test_path) >= 0); in test_path_changed()
221 f = fopen(test_path, "w"); in test_path_changed()
232 (void) rm_rf(test_path, REMOVE_ROOT|REMOVE_PHYSICAL); in test_path_changed()
238 const char *test_path = "/tmp/test-path_modified"; in test_path_modified() local
254 assert_se(touch(test_path) >= 0); in test_path_modified()
263 f = fopen(test_path, "w"); in test_path_modified()
274 (void) rm_rf(test_path, REMOVE_ROOT|REMOVE_PHYSICAL); in test_path_modified()
279 const char *test_path = "/tmp/test-path_unit"; in test_path_unit() local
295 assert_se(touch(test_path) >= 0); in test_path_unit()
299 assert_se(rm_rf(test_path, REMOVE_ROOT|REMOVE_PHYSICAL) == 0); in test_path_unit()
308 const char *test_file, *test_path = "/tmp/test-path_directorynotempty/"; in test_path_directorynotempty() local
320 assert_se(access(test_path, F_OK) < 0); in test_path_directorynotempty()
327 assert_se(access(test_path, F_OK) < 0); in test_path_directorynotempty()
329 assert_se(mkdir_p(test_path, 0755) >= 0); in test_path_directorynotempty()
330 test_file = strjoina(test_path, "test_file"); in test_path_directorynotempty()
340 assert_se(rm_rf(test_path, REMOVE_ROOT|REMOVE_PHYSICAL) == 0); in test_path_directorynotempty()
349 const char *test_path = "/tmp/test-path_makedirectory/"; in test_path_makedirectory_directorymode() local
357 assert_se(access(test_path, F_OK) < 0); in test_path_makedirectory_directorymode()
362 assert_se(access(test_path, F_OK) >= 0); in test_path_makedirectory_directorymode()
365 assert_se(stat(test_path, &s) >= 0); in test_path_makedirectory_directorymode()
371 (void) rm_rf(test_path, REMOVE_ROOT|REMOVE_PHYSICAL); in test_path_makedirectory_directorymode()
386 _cleanup_free_ char *test_path = NULL; in main() local
393 assert_se(get_testdata_dir("test-path", &test_path) >= 0); in main()
394 assert_se(set_unit_path(test_path) >= 0); in main()