depmod: export static device node information to modules.devname
[mit.git] / tests / test-modindex / 05order.sh
blob24676d528f1f3ecf32f81e575e9f5c8e09ca61e1
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 ba tests/tmp/index`" = "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 ba tests/tmp/index`" = "Found value(s):
47 3" ]