Have updated yaffs direct tests and added README files to the tests.
[yaffs2.git] / direct / tests / yaffs_test.c
index 825cf187d3ab7a0ae58a454e27ab8b2a7bee184b..5df17f84eca00f0dd14e22a731f6a523600cb017 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * YAFFS: Yet another FFS. A NAND-flash specific file system. 
  *
 /*
  * YAFFS: Yet another FFS. A NAND-flash specific file system. 
  *
- * Copyright (C) 2002-2010 Aleph One Ltd.
+ * Copyright (C) 2002-2011 Aleph One Ltd.
  *   for Toby Churchill Ltd and Brightstar Engineering
  *
  * Created by Charles Manning <charles@aleph1.co.uk>
  *   for Toby Churchill Ltd and Brightstar Engineering
  *
  * Created by Charles Manning <charles@aleph1.co.uk>
@@ -45,7 +45,7 @@ int n_cycles = -1;
 int fuzz_test=0;
 
 
 int fuzz_test=0;
 
 
-int yaffs_test_maxMallocs;
+int yaffs_test_max_mallocs;
 
 extern int ops_multiplier;
 
 
 extern int ops_multiplier;
 
@@ -227,7 +227,7 @@ int main(int argc, char **argv)
                        n_cycles = atoi(optarg);
                        break;
                case 't':
                        n_cycles = atoi(optarg);
                        break;
                case 't':
-                       yaffs_traceMask = strtol(optarg,NULL,0);
+                       yaffs_trace_mask = strtol(optarg,NULL,0);
                        break;
                case 'z':fuzz_test=1;
                        break;
                        break;
                case 'z':fuzz_test=1;
                        break;
@@ -239,7 +239,7 @@ int main(int argc, char **argv)
        argv += optind;
        
        if(random_mallocs){
        argv += optind;
        
        if(random_mallocs){
-               yaffs_test_maxMallocs = 0xFFF & random_seed;
+               yaffs_test_max_mallocs = 0xFFF & random_seed;
        }
        
        if(argc == 1) {
        }
        
        if(argc == 1) {
@@ -257,7 +257,7 @@ int main(int argc, char **argv)
                        simulate_power_failure ? "power_fail" : "",
                        random_seed, n_cycles);
 
                        simulate_power_failure ? "power_fail" : "",
                        random_seed, n_cycles);
 
-               yaffs_StartUp();
+               yaffs_start_up();
                result = yaffs_mount(mount_point);
                if(result < 0){
                        printf("Mount of %s failed\n",mount_point);
                result = yaffs_mount(mount_point);
                if(result < 0){
                        printf("Mount of %s failed\n",mount_point);