1b78585135
As s390x was the only one remaining, it has now been excluded. This was best done with an update of the source tree to match upstream. This is turn caused additional patch updates. With s390x gone, all of the big-endian patches can be removed, simplifying things enormously. This is the biggest change. Several other patches that are no longer needed due to changes in Fedora builds (ld flags, for example), or that are no longer needed (such as armv7) have also been removed. Added three new patches to fix problems with dumping various tables, and removed all the remaining patches that no longer serve a purpose. Thanks to the contributors for PR#4 and PR#5 for the suggestions. These have all been incorporated even if they are not in exactly the same form. Signed-off-by: Al Stone <ahs3@ahs3.net> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
49 lines
1.5 KiB
Bash
49 lines
1.5 KiB
Bash
#!/bin/bash
|
|
#
|
|
# run the misc tests: we need to do this in a script since
|
|
# some of these are expected to fail which would normally cause
|
|
# the %check step to stop. however, this is expected behavior.
|
|
# we are running iasl precisely because we expect it to stop when
|
|
# presented with faulty ASL.
|
|
#
|
|
# this script assumes it is in the source 'tests' directory at
|
|
# start.
|
|
#
|
|
|
|
set -x
|
|
|
|
BINDIR="$1"
|
|
VERSION="$2"
|
|
|
|
# create files to compare against
|
|
$BINDIR/iasl -h
|
|
|
|
sed -e "s/VVVVVVVV/$VERSION/" \
|
|
../badcode.asl.result > misc/badcode.asl.expected
|
|
sed -e "s/VVVVVVVV/$VERSION/" \
|
|
../grammar.asl.result > misc/grammar.asl.expected
|
|
sed -e "s/VVVVVVVV/$VERSION/" \
|
|
../converterSample.asl.result > misc/converterSample.asl.expected
|
|
|
|
cd misc
|
|
|
|
# see if badcode.asl failed as expected
|
|
# NB: the -f option is required so we can see all of the errors
|
|
$BINDIR/iasl -f badcode.asl 2>&1 | tee badcode.asl.actual
|
|
diff badcode.asl.actual badcode.asl.expected >/dev/null 2>&1
|
|
[ $? -eq 0 ] || exit 1
|
|
|
|
# see if grammar.asl failed as expected
|
|
# NB: the -f option is required so we can see all of the errors
|
|
$BINDIR/iasl -f -of grammar.asl 2>&1 | tee grammar.asl.actual
|
|
diff grammar.asl.actual grammar.asl.expected >/dev/null 2>&1
|
|
[ $? -eq 0 ] || exit 1
|
|
|
|
# see if converterSample.asl failed as expected
|
|
# NB: the -f option is required so we can see all of the errors
|
|
$BINDIR/iasl -f -of converterSample.asl 2>&1 | tee converterSample.asl.actual
|
|
diff converterSample.asl.actual converterSample.asl.expected >/dev/null 2>&1
|
|
[ $? -eq 0 ] || exit 1
|
|
|
|
exit 0
|