xref: /aosp_15_r20/external/e2fsprogs/tests/progs/test_data/test.icount (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker#
2*6a54128fSAndroid Build Coastguard Worker# This is the test script for the icount abstraction
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 Worker# First let's test the boundary cases for illegal arguments
9*6a54128fSAndroid Build Coastguard Worker#
10*6a54128fSAndroid Build Coastguard Workervalidate
11*6a54128fSAndroid Build Coastguard Workerstore 0 0
12*6a54128fSAndroid Build Coastguard Workerfetch 0
13*6a54128fSAndroid Build Coastguard Workerincrement 0
14*6a54128fSAndroid Build Coastguard Workerdecrement 0
15*6a54128fSAndroid Build Coastguard Workerstore 20001 0
16*6a54128fSAndroid Build Coastguard Workerfetch 20001
17*6a54128fSAndroid Build Coastguard Workerincrement 20001
18*6a54128fSAndroid Build Coastguard Workerdecrement 20001
19*6a54128fSAndroid Build Coastguard Workervalidate
20*6a54128fSAndroid Build Coastguard Worker#
21*6a54128fSAndroid Build Coastguard Worker# OK, now let's test fetch and store.  We also test the boundary cases
22*6a54128fSAndroid Build Coastguard Worker# for legal inodes here.
23*6a54128fSAndroid Build Coastguard Worker#
24*6a54128fSAndroid Build Coastguard Workerfetch 1
25*6a54128fSAndroid Build Coastguard Workerstore 1 1
26*6a54128fSAndroid Build Coastguard Workerfetch 1
27*6a54128fSAndroid Build Coastguard Workerstore 1 2
28*6a54128fSAndroid Build Coastguard Workerfetch 1
29*6a54128fSAndroid Build Coastguard Workerstore 1 3
30*6a54128fSAndroid Build Coastguard Workerfetch 1
31*6a54128fSAndroid Build Coastguard Workerstore 1 1
32*6a54128fSAndroid Build Coastguard Workerfetch 1
33*6a54128fSAndroid Build Coastguard Workerstore 1 0
34*6a54128fSAndroid Build Coastguard Workerfetch 1
35*6a54128fSAndroid Build Coastguard Workerfetch 20000
36*6a54128fSAndroid Build Coastguard Workerstore 20000 0
37*6a54128fSAndroid Build Coastguard Workerfetch 20000
38*6a54128fSAndroid Build Coastguard Workerstore 20000 3
39*6a54128fSAndroid Build Coastguard Workerfetch 20000
40*6a54128fSAndroid Build Coastguard Workerstore 20000 0
41*6a54128fSAndroid Build Coastguard Workerfetch 20000
42*6a54128fSAndroid Build Coastguard Workerstore 20000 42
43*6a54128fSAndroid Build Coastguard Workerfetch 20000
44*6a54128fSAndroid Build Coastguard Workerstore 20000 1
45*6a54128fSAndroid Build Coastguard Workerfetch 20000
46*6a54128fSAndroid Build Coastguard Workerstore 20000 0
47*6a54128fSAndroid Build Coastguard Workerfetch 20000
48*6a54128fSAndroid Build Coastguard Workerget_size
49*6a54128fSAndroid Build Coastguard Worker#
50*6a54128fSAndroid Build Coastguard Worker# Time to test increment.  First increment from 0 (previously unreferenced)
51*6a54128fSAndroid Build Coastguard Worker#
52*6a54128fSAndroid Build Coastguard Workerdecrement 2
53*6a54128fSAndroid Build Coastguard Workerincrement 2
54*6a54128fSAndroid Build Coastguard Workerfetch 2
55*6a54128fSAndroid Build Coastguard Workerincrement 2
56*6a54128fSAndroid Build Coastguard Workerfetch 2
57*6a54128fSAndroid Build Coastguard Workerincrement 2
58*6a54128fSAndroid Build Coastguard Workerfetch 2
59*6a54128fSAndroid Build Coastguard Workerincrement 2
60*6a54128fSAndroid Build Coastguard Workerfetch 2
61*6a54128fSAndroid Build Coastguard Workerdecrement 2
62*6a54128fSAndroid Build Coastguard Workerfetch 2
63*6a54128fSAndroid Build Coastguard Workerdecrement 2
64*6a54128fSAndroid Build Coastguard Workerfetch 2
65*6a54128fSAndroid Build Coastguard Workerdecrement 2
66*6a54128fSAndroid Build Coastguard Workerfetch 2
67*6a54128fSAndroid Build Coastguard Workerdecrement 2
68*6a54128fSAndroid Build Coastguard Workerdecrement 2
69*6a54128fSAndroid Build Coastguard Worker#
70*6a54128fSAndroid Build Coastguard Worker# Store 1 then test...
71*6a54128fSAndroid Build Coastguard Worker#
72*6a54128fSAndroid Build Coastguard Workerstore 3 1
73*6a54128fSAndroid Build Coastguard Workerincrement 3
74*6a54128fSAndroid Build Coastguard Workerfetch 3
75*6a54128fSAndroid Build Coastguard Workerdecrement 3
76*6a54128fSAndroid Build Coastguard Workerfetch 3
77*6a54128fSAndroid Build Coastguard Workerdecrement 3
78*6a54128fSAndroid Build Coastguard Worker#
79*6a54128fSAndroid Build Coastguard Worker# Store 0 then test
80*6a54128fSAndroid Build Coastguard Worker#
81*6a54128fSAndroid Build Coastguard Workerstore 4 0
82*6a54128fSAndroid Build Coastguard Workerfetch 4
83*6a54128fSAndroid Build Coastguard Workerincrement 4
84*6a54128fSAndroid Build Coastguard Workerincrement 4
85*6a54128fSAndroid Build Coastguard Workerfetch 4
86*6a54128fSAndroid Build Coastguard Workerdecrement 4
87*6a54128fSAndroid Build Coastguard Workerdecrement 4
88*6a54128fSAndroid Build Coastguard Worker#
89*6a54128fSAndroid Build Coastguard Worker# Store something, then store 0, then test...
90*6a54128fSAndroid Build Coastguard Worker#
91*6a54128fSAndroid Build Coastguard Workerstore 4  42
92*6a54128fSAndroid Build Coastguard Workerstore 4 0
93*6a54128fSAndroid Build Coastguard Workerincrement 4
94*6a54128fSAndroid Build Coastguard Workerincrement 4
95*6a54128fSAndroid Build Coastguard Workerincrement 4
96*6a54128fSAndroid Build Coastguard Workerdecrement 4
97*6a54128fSAndroid Build Coastguard Workerdecrement 4
98*6a54128fSAndroid Build Coastguard Workerdecrement 4
99*6a54128fSAndroid Build Coastguard Workerdecrement 4
100*6a54128fSAndroid Build Coastguard Workerdecrement 4
101*6a54128fSAndroid Build Coastguard Worker#
102*6a54128fSAndroid Build Coastguard Worker# store something, then decrement to zero
103*6a54128fSAndroid Build Coastguard Worker#
104*6a54128fSAndroid Build Coastguard Workerstore 5 4
105*6a54128fSAndroid Build Coastguard Workerdecrement 5
106*6a54128fSAndroid Build Coastguard Workerdecrement 5
107*6a54128fSAndroid Build Coastguard Workerdecrement 5
108*6a54128fSAndroid Build Coastguard Workerdecrement 5
109*6a54128fSAndroid Build Coastguard Workerdecrement 5
110*6a54128fSAndroid Build Coastguard Worker#
111*6a54128fSAndroid Build Coastguard Worker# Test insert
112*6a54128fSAndroid Build Coastguard Worker#
113*6a54128fSAndroid Build Coastguard Workerget_size
114*6a54128fSAndroid Build Coastguard Workervalidate
115*6a54128fSAndroid Build Coastguard Workerstore 10 10
116*6a54128fSAndroid Build Coastguard Workerstore 20 20
117*6a54128fSAndroid Build Coastguard Workerstore 30 30
118*6a54128fSAndroid Build Coastguard Workerstore 40 40
119*6a54128fSAndroid Build Coastguard Workerstore 50 50
120*6a54128fSAndroid Build Coastguard Workerstore 60 60
121*6a54128fSAndroid Build Coastguard Workerstore 70 70
122*6a54128fSAndroid Build Coastguard Workerstore 80 80
123*6a54128fSAndroid Build Coastguard Workerstore 90 90
124*6a54128fSAndroid Build Coastguard Workerstore 100 100
125*6a54128fSAndroid Build Coastguard Workerstore 15 15
126*6a54128fSAndroid Build Coastguard Workerstore 25 25
127*6a54128fSAndroid Build Coastguard Workerstore 35 35
128*6a54128fSAndroid Build Coastguard Workerstore 45 45
129*6a54128fSAndroid Build Coastguard Workerstore 55 55
130*6a54128fSAndroid Build Coastguard Workerstore 65 65
131*6a54128fSAndroid Build Coastguard Workerstore 75 75
132*6a54128fSAndroid Build Coastguard Workerstore 85 85
133*6a54128fSAndroid Build Coastguard Workerstore 95 95
134*6a54128fSAndroid Build Coastguard Workerdump
135*6a54128fSAndroid Build Coastguard Workerget_size
136*6a54128fSAndroid Build Coastguard Workervalidate
137