xref: /aosp_15_r20/external/e2fsprogs/tests/progs/test_data/test.brel (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker#
2*6a54128fSAndroid Build Coastguard Worker# This is the test script for the block relocation table.
3*6a54128fSAndroid Build Coastguard Worker#
4*6a54128fSAndroid Build Coastguard Worker# Copyright 1997 by Theodore Ts'o.  This file may be redistributed
5*6a54128fSAndroid Build Coastguard Worker# under the terms of the GNU Public License.
6*6a54128fSAndroid Build Coastguard Worker#
7*6a54128fSAndroid Build Coastguard Worker#
8*6a54128fSAndroid Build Coastguard Workerbrel_dump
9*6a54128fSAndroid Build Coastguard Workerbrel_put 2 11
10*6a54128fSAndroid Build Coastguard Workerbrel_put 1 10
11*6a54128fSAndroid Build Coastguard Workerbrel_put 3 9
12*6a54128fSAndroid Build Coastguard Workerbrel_put 1 10 4 128
13*6a54128fSAndroid Build Coastguard Worker#
14*6a54128fSAndroid Build Coastguard Worker# Test boundary cases for brel_put
15*6a54128fSAndroid Build Coastguard Worker#
16*6a54128fSAndroid Build Coastguard Workerbrel_put 23 12
17*6a54128fSAndroid Build Coastguard Workerbrel_put 24 13
18*6a54128fSAndroid Build Coastguard Worker#
19*6a54128fSAndroid Build Coastguard Worker# Test other boundary cases
20*6a54128fSAndroid Build Coastguard Worker#
21*6a54128fSAndroid Build Coastguard Workerbrel_get 24
22*6a54128fSAndroid Build Coastguard Workerbrel_delete 24
23*6a54128fSAndroid Build Coastguard Worker#
24*6a54128fSAndroid Build Coastguard Worker# Test getting existing and non-existent entries
25*6a54128fSAndroid Build Coastguard Worker#
26*6a54128fSAndroid Build Coastguard Workerbrel_get 5
27*6a54128fSAndroid Build Coastguard Workerbrel_get 3
28*6a54128fSAndroid Build Coastguard Workerbrel_get 1
29*6a54128fSAndroid Build Coastguard Worker#
30*6a54128fSAndroid Build Coastguard Worker# Test the iterator functions
31*6a54128fSAndroid Build Coastguard Worker#
32*6a54128fSAndroid Build Coastguard Workerbrel_start_iter
33*6a54128fSAndroid Build Coastguard Workerbrel_next
34*6a54128fSAndroid Build Coastguard Workerbrel_next
35*6a54128fSAndroid Build Coastguard Workerbrel_next
36*6a54128fSAndroid Build Coastguard Workerbrel_next
37*6a54128fSAndroid Build Coastguard Worker#
38*6a54128fSAndroid Build Coastguard Worker# Test delete and move
39*6a54128fSAndroid Build Coastguard Worker#
40*6a54128fSAndroid Build Coastguard Workerbrel_delete 2
41*6a54128fSAndroid Build Coastguard Workerbrel_delete 2
42*6a54128fSAndroid Build Coastguard Workerbrel_delete 5
43*6a54128fSAndroid Build Coastguard Workerbrel_move 1 2
44*6a54128fSAndroid Build Coastguard Workerbrel_delete 1
45*6a54128fSAndroid Build Coastguard Workerbrel_move 1 4
46*6a54128fSAndroid Build Coastguard Workerbrel_move 2 5
47*6a54128fSAndroid Build Coastguard Workerbrel_dump
48