Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/bootconfig: Add testcase for show-command and quotes test

Add testcases for the return value of the command to show
bootconfig in initrd, and double/single quotes selecting.

Link: http://lkml.kernel.org/r/159230247428.65555.2109472942519215104.stgit@devnote2

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

authored by

Masami Hiramatsu and committed by
Steven Rostedt (VMware)
5414251a f91cb5b7

+10
+10
tools/bootconfig/test-bootconfig.sh
··· 55 55 xpass $BOOTCONF -a $TEMPCONF $INITRD 56 56 new_size=$(stat -c %s $INITRD) 57 57 58 + echo "Show command test" 59 + xpass $BOOTCONF $INITRD 60 + 58 61 echo "File size check" 59 62 xpass test $new_size -eq $(expr $bconf_size + $initrd_size + 9 + 12) 60 63 ··· 116 113 xpass grep -q "bar" $OUTFILE 117 114 xpass grep -q "baz" $OUTFILE 118 115 xpass grep -q "qux" $OUTFILE 116 + 117 + echo "Double/single quotes test" 118 + echo "key = '\"string\"';" > $TEMPCONF 119 + $BOOTCONF -a $TEMPCONF $INITRD 120 + $BOOTCONF $INITRD > $TEMPCONF 121 + cat $TEMPCONF 122 + xpass grep \'\"string\"\' $TEMPCONF 119 123 120 124 echo "=== expected failure cases ===" 121 125 for i in samples/bad-* ; do