diff options
author | Keegan McAllister <keegan@ksplice.com> | 2010-12-16 11:53:02 -0500 |
---|---|---|
committer | Jon Masters <jcm@jonmasters.org> | 2011-04-13 03:01:24 -0400 |
commit | 49871965f03fe0aee39c7b425732b3880c0f4666 (patch) | |
tree | 4a35567186428979f4a712df0862d79c1291c8ea | |
parent | 88fdf6a529e01de593faf7730efab9814e926447 (diff) | |
download | module-init-tools-49871965f03fe0aee39c7b425732b3880c0f4666.tar.gz |
testsuite: remove modprobe module renaming test
Support for this feature was removed in 30df3f6e.
Signed-off-by: Keegan McAllister <keegan@ksplice.com>
-rwxr-xr-x | tests/test-modprobe/06rename.sh | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/tests/test-modprobe/06rename.sh b/tests/test-modprobe/06rename.sh deleted file mode 100755 index 59b5f13..0000000 --- a/tests/test-modprobe/06rename.sh +++ /dev/null @@ -1,100 +0,0 @@ -#! /bin/sh -# Test the module renaming code. - -for ENDIAN in $TEST_ENDIAN; do -for BITNESS in $TEST_BITS; do - -rm -rf tests/tmp/* - -# We need to dump the module to make sure the name has changed. -MODTEST_DUMP_INIT=1 -export MODTEST_DUMP_INIT - -# Create inputs -MODULE_DIR=tests/tmp/lib/modules/$MODTEST_UNAME -mkdir -p $MODULE_DIR -ln tests/data/$BITNESS$ENDIAN/rename/rename-new-$BITNESS.ko \ - tests/data/$BITNESS$ENDIAN/rename/rename-old-$BITNESS.ko \ - $MODULE_DIR - -# Set up modules.dep file (neither has dependencies). -echo "# A comment" > $MODULE_DIR/modules.dep -echo "/lib/modules/$MODTEST_UNAME/rename-new-$BITNESS.ko:" >> $MODULE_DIR/modules.dep -echo "/lib/modules/$MODTEST_UNAME/rename-old-$BITNESS.ko:" >> $MODULE_DIR/modules.dep - -# Test old-style module -[ "`modprobe rename-old-$BITNESS 2> tests/tmp/out`" = "" ] -strings tests/tmp/out | grep -q 'rename_old' -if strings tests/tmp/out | grep -q 'short'; then exit 1; fi - -[ "`modprobe -o short rename-old-$BITNESS 2> tests/tmp/out`" = "" ] -if strings tests/tmp/out | grep -q 'rename_old'; then exit 1; fi -strings tests/tmp/out | grep -q 'short' - -[ "`modprobe -o very_very_long_name rename-old-$BITNESS 2> tests/tmp/out`" = "" ] -if strings tests/tmp/out | grep -q 'rename_old'; then exit 1; fi -strings tests/tmp/out | grep -q 'very_very_long_name' - -[ "`modprobe -o short rename-old-$BITNESS 2> tests/tmp/out`" = "" ] -if strings tests/tmp/out | grep -q 'rename_old'; then exit 1; fi -strings tests/tmp/out | grep -q 'short' - -[ "`modprobe -o very_very_long_name rename-old-$BITNESS 2> tests/tmp/out`" = "" ] -if strings tests/tmp/out | grep -q 'rename_old'; then exit 1; fi -strings tests/tmp/out | grep -q 'very_very_long_name' - -[ "`modprobe --name short rename-old-$BITNESS 2> tests/tmp/out`" = "" ] -if strings tests/tmp/out | grep -q 'rename_old'; then exit 1; fi -strings tests/tmp/out | grep -q 'short' - -[ "`modprobe --name very_very_long_name rename-old-$BITNESS 2> tests/tmp/out`" = "" ] -if strings tests/tmp/out | grep -q 'rename_old'; then exit 1; fi -strings tests/tmp/out | grep -q 'very_very_long_name' - -[ "`modprobe --name=short rename-old-$BITNESS 2> tests/tmp/out`" = "" ] -if strings tests/tmp/out | grep -q 'rename_old'; then exit 1; fi -strings tests/tmp/out | grep -q 'short' - -[ "`modprobe --name=very_very_long_name rename-old-$BITNESS 2> tests/tmp/out`" = "" ] -if strings tests/tmp/out | grep -q 'rename_old'; then exit 1; fi -strings tests/tmp/out | grep -q 'very_very_long_name' - -# Test new-style module -[ "`modprobe rename-new-$BITNESS 2> tests/tmp/out`" = "" ] -strings tests/tmp/out | grep -q 'rename_new' -if strings tests/tmp/out | grep -q 'short'; then exit 1; fi - -[ "`modprobe -o short rename-new-$BITNESS 2> tests/tmp/out`" = "" ] -if strings tests/tmp/out | grep -q 'rename_new'; then exit 1; fi -strings tests/tmp/out | grep -q 'short' - -[ "`modprobe -o very_very_long_name rename-new-$BITNESS 2> tests/tmp/out`" = "" ] -if strings tests/tmp/out | grep -q 'rename_new'; then exit 1; fi -strings tests/tmp/out | grep -q 'very_very_long_name' - -[ "`modprobe -o short rename-new-$BITNESS 2> tests/tmp/out`" = "" ] -if strings tests/tmp/out | grep -q 'rename_new'; then exit 1; fi -strings tests/tmp/out | grep -q 'short' - -[ "`modprobe -o very_very_long_name rename-new-$BITNESS 2> tests/tmp/out`" = "" ] -if strings tests/tmp/out | grep -q 'rename_new'; then exit 1; fi -strings tests/tmp/out | grep -q 'very_very_long_name' - -[ "`modprobe --name short rename-new-$BITNESS 2> tests/tmp/out`" = "" ] -if strings tests/tmp/out | grep -q 'rename_new'; then exit 1; fi -strings tests/tmp/out | grep -q 'short' - -[ "`modprobe --name very_very_long_name rename-new-$BITNESS 2> tests/tmp/out`" = "" ] -if strings tests/tmp/out | grep -q 'rename_new'; then exit 1; fi -strings tests/tmp/out | grep -q 'very_very_long_name' - -[ "`modprobe --name=short rename-new-$BITNESS 2> tests/tmp/out`" = "" ] -if strings tests/tmp/out | grep -q 'rename_new'; then exit 1; fi -strings tests/tmp/out | grep -q 'short' - -[ "`modprobe --name=very_very_long_name rename-new-$BITNESS 2> tests/tmp/out`" = "" ] -if strings tests/tmp/out | grep -q 'rename_new'; then exit 1; fi -strings tests/tmp/out | grep -q 'very_very_long_name' - -done -done |