Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
31 lines
647 B
Bash
Executable File
31 lines
647 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# pstore_tests - Check pstore's behavior before crash/reboot
|
|
#
|
|
# Copyright (C) Hitachi Ltd., 2015
|
|
# Written by Hiraku Toyooka <hiraku.toyooka.gu@hitachi.com>
|
|
#
|
|
# Released under the terms of the GPL v2.
|
|
|
|
. ./common_tests
|
|
|
|
prlog -n "Checking pstore console is registered ... "
|
|
dmesg | grep -q "console \[pstore"
|
|
show_result $?
|
|
|
|
prlog -n "Checking /dev/pmsg0 exists ... "
|
|
test -e /dev/pmsg0
|
|
show_result $?
|
|
|
|
prlog -n "Writing unique string to /dev/pmsg0 ... "
|
|
if [ -e "/dev/pmsg0" ]; then
|
|
echo "${TEST_STRING_PATTERN}""$UUID" > /dev/pmsg0
|
|
show_result $?
|
|
echo "$UUID" > $TOP_DIR/uuid
|
|
else
|
|
prlog "FAIL"
|
|
rc=1
|
|
fi
|
|
|
|
exit $rc
|