6 local msg="skip all tests:"
9 echo $msg must be run as root >&2
15 echo "--------------------"
16 echo "running zram tests"
17 echo "--------------------"
25 # check zram module exists
26 MODULE_PATH=/lib/modules/`uname -r`/kernel/drivers/block/zram/zram.ko
27 if [ -f $MODULE_PATH ]; then
29 elif [ -b /dev/zram0 ]; then
32 echo "$TCID : No zram.ko module or /dev/zram0 device file not found"
33 echo "$TCID : CONFIG_ZRAM is not set"