summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2007-03-21 13:34:10 +0000
committerSimon Josefsson <simon@josefsson.org>2007-03-21 13:34:10 +0000
commit2f7ae77c0f5288e852c956e163ad9efaeab4770b (patch)
tree590ea8271c0f5f1d02eebd5c8a86c5c23f673892 /tests
parent164f0763e3254302e248dda556f5182d80aa64ff (diff)
downloadgnutls-2f7ae77c0f5288e852c956e163ad9efaeab4770b.tar.gz
Trim whitespace from 'wc' output. Tiny patch from Deanna Phillips
<deanna@sdf.lonestar.org>.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/pkcs1-padding/pkcs1-pad20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/pkcs1-padding/pkcs1-pad b/tests/pkcs1-padding/pkcs1-pad
index cb5fe691c9..6dbc13ad96 100755
--- a/tests/pkcs1-padding/pkcs1-pad
+++ b/tests/pkcs1-padding/pkcs1-pad
@@ -30,10 +30,10 @@ EXPECT1=2101
$CERTTOOL --verify-chain --infile $srcdir/pkcs1-pad-ok.pem | tee out1
$CERTTOOL --verify-chain --infile $srcdir/pkcs1-pad-broken.pem | tee out2
-out1oks=`grep 'Verified.' out1 | wc -l`
-out2oks=`grep 'Verified.' out2 | wc -l`
-out1fails=`grep 'Not verified.' out1 | wc -l`
-out2fails=`grep 'Not verified.' out2 | wc -l`
+out1oks=`grep 'Verified.' out1 | wc -l | tr -d " "`
+out2oks=`grep 'Verified.' out2 | wc -l | tr -d " "`
+out1fails=`grep 'Not verified.' out1 | wc -l | tr -d " "`
+out2fails=`grep 'Not verified.' out2 | wc -l | tr -d " "`
rm -f out1 out2
@@ -54,10 +54,10 @@ EXPECT2=1001
$CERTTOOL --verify-chain --infile $srcdir/pkcs1-pad-ok2.pem | tee out1
$CERTTOOL --verify-chain --infile $srcdir/pkcs1-pad-broken2.pem | tee out2
-out1oks=`grep 'Verified.' out1 | wc -l`
-out2oks=`grep 'Verified.' out2 | wc -l`
-out1fails=`grep 'Not verified.' out1 | wc -l`
-out2fails=`grep 'Not verified.' out2 | wc -l`
+out1oks=`grep 'Verified.' out1 | wc -l | tr -d " "`
+out2oks=`grep 'Verified.' out2 | wc -l | tr -d " "`
+out1fails=`grep 'Not verified.' out1 | wc -l | tr -d " "`
+out2fails=`grep 'Not verified.' out2 | wc -l | tr -d " "`
rm -f out1 out2
@@ -78,8 +78,8 @@ EXPECT3=11
$CERTTOOL --verify-chain --infile $srcdir/pkcs1-pad-broken3.pem | tee out1
-out1oks=`grep 'Verified.' out1 | wc -l`
-out1fails=`grep 'Not verified.' out1 | wc -l`
+out1oks=`grep 'Verified.' out1 | wc -l | tr -d " "`
+out1fails=`grep 'Not verified.' out1 | wc -l | tr -d " "`
rm -f out1