Fix unmatched temporary buffer allocations
[yaffs2.git] / direct / test-framework / timothy_tests / linux_tests / README.txt
1
2 linux_test.c tests yaffs running under linux using the nandsim generator.  
3
4
5 If a segmentation fault happens during the test then check that 
6 the nandsim has been initilised properly. 
7
8 How to initilise the nandsim
9
10 $ make
11
12 $ sudo -s
13 ...password..
14 # now you have a root shell
15 $ ./linux-tests/initnandsim 128MiB-2048
16 $ insmod yaffs2multi.ko
17 $ mkdir /mnt/y
18 $ mount -t yaffs2 /dev/mtdblock0 /mnt/y
19
20
21
22 How to change the permissions on the nandsim partition
23
24 $ sudo chmod a+wr /mnt/y/
25 #check the permission change
26 $ touch /mnt/y/test_file
27
28 How to clean the folder
29
30 $ rm -rf /mnt/y
31
32
33 The test must be run in sudo to work to allow the files to be 
34 created in the root folders.
35
36 compile command: make
37 run command: sudo ./linux_test
38
39 command line options:
40         -h                      display the command line options.
41         -s [number]     seeds the rand with the number.
42         -p [number]     sets the print level to the number. 
43                                 the higher the number the more low level commands are printed.
44                                 the number should be between 0 and 5.
45         -v                      verbose mode. everything is printed.
46         -q                      quite mode. nothing is printed.
47
48