ntel-gpu-tools/tests/sysfs_l3_parity
Daniel Vetter 4cf1b02e96 test/sysfs_l3_parity: fixup logic
It didn't fail properly.
2012-05-31 15:45:17 +02:00

25 lines
528 B
Bash
Executable File

#!/bin/bash
SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )"
. $SOURCE_DIR/drm_lib.sh
$SOURCE_DIR/../tools/intel_l3_parity -c
#Check that we can remap a row
$SOURCE_DIR/../tools/intel_l3_parity 0,0,0
disabled=`$SOURCE_DIR/../tools/intel_l3_parity | grep -c 'Row 0, Bank 0, Subbank 0 is disabled'`
if [ "$disabled" != "1" ] ; then
echo "Fail"
exit 1
fi
$SOURCE_DIR/../tools/intel_l3_parity -c
#Check that we can clear remaps
if [ `$SOURCE_DIR/../tools/intel_l3_parity | wc -c` != "0" ] ; then
echo "Fail"
exit 1
fi
exit 0