~ubuntu-core-dev/module-init-tools/ubuntu

« back to all changes in this revision

Viewing changes to tests/test-modprobe/11stripversions.sh

  • Committer: Scott James Remnant
  • Date: 2009-07-16 15:24:17 UTC
  • mfrom: (152.1.38)
  • Revision ID: scott@netsplit.com-20090716152417-7ak1sklxb59cs4fz
MergeĀ 3.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
    readelf -W -S "$1" | cut -d\] -f2- | awk '{print $1 " " $7}' | grep -w -- "$2"
7
7
}
8
8
 
9
 
for BITNESS in 32 64; do
 
9
for ENDIAN in $TEST_ENDIAN; do
 
10
for BITNESS in $TEST_BITS; do
10
11
 
11
12
rm -rf tests/tmp/*
12
13
 
17
18
# Create inputs
18
19
MODULE_DIR=tests/tmp/lib/modules/$MODTEST_UNAME
19
20
mkdir -p $MODULE_DIR
20
 
ln tests/data/$BITNESS/rename/rename-version-$BITNESS.ko \
 
21
ln tests/data/$BITNESS$ENDIAN/rename/rename-version-$BITNESS.ko \
21
22
   $MODULE_DIR
22
23
 
23
24
# Set up modules.dep file (neither has dependencies).
43
44
[ "`section_attributes tests/tmp/out __vermagic`" = "__vermagic A" ]
44
45
 
45
46
done
 
47
done
46
48
 
47
49
exit 0