]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/tests/perf_index/stress_file_local.c
xnu-2782.1.97.tar.gz
[apple/xnu.git] / tools / tests / perf_index / stress_file_local.c
diff --git a/tools/tests/perf_index/stress_file_local.c b/tools/tests/perf_index/stress_file_local.c
deleted file mode 100644 (file)
index d948caf..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-#include <fcntl.h>
-#include "perf_index.h"
-#include <errno.h>
-
-
-const stress_test_t file_local_create_test = {"file_create", &stress_file_local_create_init, &stress_file_local_create, &stress_file_local_create_cleanup, &no_validate};
-const stress_test_t file_local_write_test = {"file_write", &stress_file_local_write_init, &stress_file_local_write, &stress_file_local_write_cleanup, &no_validate};
-const stress_test_t file_local_read_test =  {"file_read", &stress_file_local_read_init, &stress_file_local_read, &stress_file_local_read_cleanup, &no_validate};
-
-static char fs_path[MAXPATHLEN];
-
-static void setup_local_volume(void) {
-  snprintf(fs_path, MAXPATHLEN, "%s", "/tmp");
-}
-
-DECL_INIT(stress_file_local_read_init) {
-  setup_local_volume();
-  stress_file_read_init(fs_path, num_threads, length, 0L);
-}
-
-DECL_TEST(stress_file_local_read) {
-  stress_file_read(fs_path, thread_id, num_threads, length, 0L);
-}
-
-DECL_CLEANUP(stress_file_local_read_cleanup) {
-  stress_file_read_cleanup(fs_path, num_threads, length);
-}
-
-DECL_INIT(stress_file_local_write_init) {
-  setup_local_volume();
-  stress_file_write_init(fs_path, num_threads, length);
-}
-
-DECL_TEST(stress_file_local_write) {
-  stress_file_write(fs_path, thread_id, num_threads, length, 0L);
-}
-
-DECL_CLEANUP(stress_file_local_write_cleanup) {
-}
-
-DECL_INIT(stress_file_local_create_init) {
-  setup_local_volume();
-}
-
-DECL_TEST(stress_file_local_create) {
-  stress_file_create(fs_path, thread_id, num_threads, length);
-}
-
-DECL_CLEANUP(stress_file_local_create_cleanup) {
-}