Re: [PATCH 1/2] selftests/pstore: add pstore test script for pre-reboot

From: Mark Salyzyn
Date: Tue Sep 08 2015 - 19:22:55 EST


On 09/08/2015 04:06 AM, Hiraku Toyooka wrote:
The pstore_tests script includes test cases which check pstore's
behavior before crash (and reboot).

The test cases are currently following.

- Check pstore backend is registered
- Check pstore console is registered
- Check /dev/pmsg0 exists
- Write string to /dev/pmsg0

. . .
+TEST_STRING="Testing pstore"
. . .
+prlog -n "Checking pmsg file contains TEST_STRING ... "
+grep -q "${TEST_STRING}" pmsg-${backend}-0
Mark this as 'wish to have'

Can TEST_STRING be given an unique value each run, so that on the the reboot-comparison run it can be found to be an unique match? Also confirm that any previous content (which may be binary) is not present after reboot, and that totally new content is present.

Sincerely -- Mark Salyzyn


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/