lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sat, 13 Jun 2020 00:23:44 +0900
From:   Masami Hiramatsu <>
To:     Steven Rostedt <>
Cc:, LKML <>
Subject: [PATCH 4/4] tools/bootconfig: Add testcase for show-command and quotes test

Add testcases for applied bootconfig showing command
and double/single quotes issues.

Signed-off-by: Masami Hiramatsu <>
 tools/bootconfig/ |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tools/bootconfig/ b/tools/bootconfig/
index eff16b77d5eb..3c2ab9e75730 100755
--- a/tools/bootconfig/
+++ b/tools/bootconfig/
@@ -55,6 +55,9 @@ echo "Apply command test"
 new_size=$(stat -c %s $INITRD)
+echo "Show command test"
 echo "File size check"
 xpass test $new_size -eq $(expr $bconf_size + $initrd_size + 9 + 12)
@@ -114,6 +117,13 @@ xpass grep -q "bar" $OUTFILE
 xpass grep -q "baz" $OUTFILE
 xpass grep -q "qux" $OUTFILE
+echo "Double/single quotes test"
+echo "key = '\"string\"';" > $TEMPCONF
+xpass grep \'\"string\"\' $TEMPCONF
 echo "=== expected failure cases ==="
 for i in samples/bad-* ; do
   xfail $BOOTCONF -a $i $INITRD

Powered by blists - more mailing lists