From 464df1d5e5ab1322e2dd0a7796939fff1aeefa9a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:49:25 +0200 Subject: Adding upstream version 1.47.0. Signed-off-by: Daniel Baumann --- tests/progs/test_data/test.irel | 69 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 tests/progs/test_data/test.irel (limited to 'tests/progs/test_data/test.irel') diff --git a/tests/progs/test_data/test.irel b/tests/progs/test_data/test.irel new file mode 100644 index 0000000..6c338bc --- /dev/null +++ b/tests/progs/test_data/test.irel @@ -0,0 +1,69 @@ +# +# This is the test script for the inode relocation table. +# +# Copyright 1997 by Theodore Ts'o. This file may be redistributed +# under the terms of the GNU Public License. +# +# +irel_dump +irel_put 2 11 3 +irel_put 1 10 2 +irel_put 3 9 1 +irel_add_ref 1 4 128 +irel_add_ref 1 5 64 +# +# Check to see what happens if we add too many references +# +irel_add_ref 1 6 512 +# +# Try resizing the number of references and retry the add +# +irel_put 1 8 3 +irel_add_ref 1 6 512 +# +irel_add_ref 2 4 64 +# +# Test boundary cases of irel_put +# +irel_put 23 12 1 +irel_put 24 13 1 +# +# Test other boundary cases.... +# +irel_get 24 +irel_delete 24 +# +# Test retrivals +# +irel_get 3 +irel_get 1 +# +# Test the iterator functions +# +irel_start_iter +irel_next +irel_next +irel_next +irel_next +# +# Now try the delete function, on existing and non-existent entries +# +irel_delete 2 +irel_delete 2 +irel_delete 4 +# +# Move tests... +# +irel_move 1 2 +irel_dump +irel_delete 4 +irel_move 1 4 +irel_move 2 4 +# +# Get by orig tests +# +irel_dump +irel_get_by_orig 3 +irel_get_by_orig 1 +irel_get_by_orig 5 +irel_get_by_orig 2 -- cgit v1.2.3