staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / tools / testing / selftests / zram / zram.sh
blob232e958ec454756501f2caa8eaf2133067fe10ac
1 #!/bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 TCID="zram.sh"
5 # Kselftest framework requirement - SKIP code is 4.
6 ksft_skip=4
8 . ./zram_lib.sh
10 run_zram () {
11 echo "--------------------"
12 echo "running zram tests"
13 echo "--------------------"
14 ./zram01.sh
15 echo ""
16 ./zram02.sh
19 check_prereqs
21 # check zram module exists
22 MODULE_PATH=/lib/modules/`uname -r`/kernel/drivers/block/zram/zram.ko
23 if [ -f $MODULE_PATH ]; then
24 run_zram
25 elif [ -b /dev/zram0 ]; then
26 run_zram
27 else
28 echo "$TCID : No zram.ko module or /dev/zram0 device file not found"
29 echo "$TCID : CONFIG_ZRAM is not set"
30 exit $ksft_skip