2 # SPDX-License-Identifier: GPL-2.0-only
4 # pstore_tests - Check pstore's behavior before crash/reboot
6 # Copyright (C) Hitachi Ltd., 2015
7 # Written by Hiraku Toyooka <hiraku.toyooka.gu@hitachi.com>
12 prlog
-n "Checking pstore console is registered ... "
13 dmesg |
grep -q "console \[pstore"
16 prlog
-n "Checking /dev/pmsg0 exists ... "
20 prlog
-n "Writing unique string to /dev/pmsg0 ... "
21 if [ -e "/dev/pmsg0" ]; then
22 echo "${TEST_STRING_PATTERN}""$UUID" > /dev
/pmsg0
24 echo "$UUID" > $TOP_DIR/uuid