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