# common_tests - Shell script commonly used by pstore test scripts
java.lang.NullPointerException # Copyright (C) Hitachi Ltd., 2015 # Written by Hiraku Toyooka <hiraku.toyooka.gu@hitachi.com>
java.lang.NullPointerException
show_result() { # result_value if [ $1 -eq 0 ]; then
prlog "ok" else
prlog "FAIL"
rc=1
fi
}
check_files_exist() { # type of pstorefs file if [ -e ${1}-${backend}-0 ]; then
prlog "ok" for f in `ls ${1}-${backend}-*`; do
prlog -e "\t${f}"
done else
prlog "FAIL"
rc=1
fi
}
operate_files() { # tested value, files, operation if [ $1 -eq 0 ]; then
prlog for f in $2; do
prlog -ne "\t${f} ... " # execute operation
$3 $f
show_result $?
done else
prlog " ... FAIL"
rc=1
fi
}
prlog -n "Checking pstore backend is registered ... "
backend=`cat /sys/module/pstore/parameters/backend`
show_result $?
prlog -e "\tbackend=${backend}"
prlog -e "\tcmdline=`cat /proc/cmdline`" if [ $rc -ne 0 ]; then exit1
fi
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.9Bemerkung:
(vorverarbeitet am 2026-10-12)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.