brintos

brintos / linux-shallow public Read only

0
0
Text · 659 B · 2aa9a38 Raw
31 lines · plain
1#!/bin/sh2# SPDX-License-Identifier: GPL-2.0-only3 4# pstore_tests - Check pstore's behavior before crash/reboot5#6# Copyright (C) Hitachi Ltd., 20157#  Written by Hiraku Toyooka <hiraku.toyooka.gu@hitachi.com>8#9 10. ./common_tests11 12prlog -n "Checking pstore console is registered ... "13dmesg | grep -Eq "console \[(pstore|${backend})"14show_result $?15 16prlog -n "Checking /dev/pmsg0 exists ... "17test -e /dev/pmsg018show_result $?19 20prlog -n "Writing unique string to /dev/pmsg0 ... "21if [ -e "/dev/pmsg0" ]; then22    echo "${TEST_STRING_PATTERN}""$UUID" > /dev/pmsg023    show_result $?24    echo "$UUID" > $TOP_DIR/uuid25else26    prlog "FAIL"27    rc=128fi29 30exit $rc31