]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blob - tests/progs/rel_test/test.irel
Many files:
[thirdparty/e2fsprogs.git] / tests / progs / rel_test / test.irel
1 #
2 # This is the test script for the inode relocation table.
3 #
4 # Copyright 1997 by Theodore Ts'o. This file may be redistributed
5 # under the terms of the GNU Public License.
6 #
7 #
8 irel_dump
9 irel_put 2 11 3
10 irel_put 1 10 2
11 irel_put 3 9 1
12 irel_add_ref 1 4 128
13 irel_add_ref 1 5 64
14 #
15 # Check to see what happens if we add too many references
16 #
17 irel_add_ref 1 6 512
18 #
19 # Try resizing the number of references and retry the add
20 #
21 irel_put 1 8 3
22 irel_add_ref 1 6 512
23 #
24 irel_add_ref 2 4 64
25 #
26 # Test boundary cases of irel_put
27 #
28 irel_put 23 12 1
29 irel_put 24 13 1
30 #
31 # Test other boundary cases....
32 #
33 irel_get 24
34 irel_delete 24
35 #
36 # Test retrivals
37 #
38 irel_get 3
39 irel_get 1
40 #
41 # Test the iterator functions
42 #
43 irel_start_iter
44 irel_next
45 irel_next
46 irel_next
47 irel_next
48 #
49 # Now try the delete function, on existing and non-existent entries
50 #
51 irel_delete 2
52 irel_delete 2
53 irel_delete 4
54 #
55 # Move tests...
56 #
57 irel_move 1 2
58 irel_dump
59 irel_delete 4
60 irel_move 1 4
61 irel_move 2 4
62 #
63 # Get by orig tests
64 #
65 irel_dump
66 irel_get_by_orig 3
67 irel_get_by_orig 1
68 irel_get_by_orig 5
69 irel_get_by_orig 2