modprobe: remove flock() because it never worked anyway
[mit.git] / tests / test-modindex / 05order.sh
blob7109e7bb21d89451b8edb7ad58f65eb1e8ea1d96
1 #! /bin/sh
3 # Index preserves order of values for same key
5 ./modindex -o tests/tmp/index << EOF
6 a 1
7 a 2
8 a 3
9 EOF
11 [ "`./modindex -d tests/tmp/index`" = "a 1
12 a 2
13 a 3" ]
15 ./modindex -o tests/tmp/index << EOF
16 a 3
17 a 2
18 a 1
19 EOF
21 [ "`./modindex -d tests/tmp/index`" = "a 3
22 a 2
23 a 1" ]
25 # Index preserves order of values across multiple keys
27 ./modindex -o tests/tmp/index << EOF
28 *a 1
29 b* 2
30 * 3
31 EOF
33 [ "`./modindex -w tests/tmp/index ba`" = "Found value(s):
36 3" ]
38 ./modindex -o tests/tmp/index << EOF
39 * 1
40 b* 2
41 *a 3
42 EOF
44 [ "`./modindex -w tests/tmp/index ba`" = "Found value(s):
47 3" ]