3 # Test alias generation.
4 for ENDIAN
in $TEST_ENDIAN; do
5 for BITNESS
in $TEST_BITS; do
10 MODULE_DIR
=tests
/tmp
/lib
/modules
/$MODTEST_UNAME
12 ln tests
/data
/$BITNESS$ENDIAN/alias
/alias-
$BITNESS.ko \
15 # Expect no normal output.
16 [ "`depmod 2>&1`" = "" ]
18 # Check results: expect 2 lines.
19 [ `grep -vc '^#' < $MODULE_DIR/modules.alias` = 2 ]
21 [ "`grep alias1 < $MODULE_DIR/modules.alias`" = "alias alias1 alias_$BITNESS" ]
22 [ "`grep alias2 < $MODULE_DIR/modules.alias`" = "alias alias2 alias_$BITNESS" ]
24 # Version with stuff in .modinfo section.
29 ln tests
/data
/$BITNESS$ENDIAN/modinfo
/modinfo-
$BITNESS.ko \
32 # Expect no normal output.
33 [ "`depmod 2>&1`" = "" ]
35 # Check results: expect 2 lines.
36 [ `grep -vc '^#' < $MODULE_DIR/modules.alias` = 2 ]
38 [ "`grep ALIAS1 < $MODULE_DIR/modules.alias`" = "alias ALIAS1 modinfo_$BITNESS" ]
39 [ "`grep ALIAS2 < $MODULE_DIR/modules.alias`" = "alias ALIAS2 modinfo_$BITNESS" ]