2 # SPDX-License-Identifier: GPL-2.0
5 # Kselftest framework requirement - SKIP code is 4.
11 echo "--------------------"
12 echo "running zram tests"
13 echo "--------------------"
21 # check zram module exists
22 MODULE_PATH
=/lib
/modules
/`uname -r`/kernel
/drivers
/block
/zram
/zram.ko
23 if [ -f $MODULE_PATH ]; then
25 elif [ -b /dev
/zram0
]; then
28 echo "$TCID : No zram.ko module or /dev/zram0 device file not found"
29 echo "$TCID : CONFIG_ZRAM is not set"