[PATCH 4/5] testsuite: remove modprobe module renaming test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Support for this feature was removed in 30df3f6e.

Signed-off-by: Keegan McAllister <keegan@xxxxxxxxxxx>
---
 tests/test-modprobe/06rename.sh |  100 ---------------------------------------
 1 files changed, 0 insertions(+), 100 deletions(-)
 delete mode 100755 tests/test-modprobe/06rename.sh

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
-- 
1.7.2.3

--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux