Permalink
Browse files

tests: Default to quiet

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information...
1 parent ea3ad78 commit a611ef58214f785360236d44a7dbaa0d3becb51a @andersk andersk committed with keithw Feb 18, 2013
Showing with 6 additions and 6 deletions.
  1. +3 −3 src/tests/encrypt-decrypt.cc
  2. +3 −3 src/tests/ocb-aes.cc
View
6 src/tests/encrypt-decrypt.cc
@@ -52,7 +52,7 @@ const size_t MESSAGE_SIZE_MAX = (2048 - 16);
const size_t MESSAGES_PER_SESSION = 256;
const size_t NUM_SESSIONS = 64;
-bool verbose = true;
+bool verbose = false;
#define NONCE_FMT "%016"PRIx64
@@ -135,8 +135,8 @@ void test_one_session( void ) {
}
int main( int argc, char *argv[] ) {
- if ( ( argc >= 2 ) && !strcmp( argv[ 1 ], "-q" ) ) {
- verbose = false;
+ if ( argc >= 2 && strcmp( argv[ 1 ], "-v" ) == 0 ) {
+ verbose = true;
}
for ( size_t i=0; i<NUM_SESSIONS; i++ ) {
View
6 src/tests/ocb-aes.cc
@@ -53,7 +53,7 @@
using Crypto::AlignedBuffer;
-bool verbose = true;
+bool verbose = false;
bool equal( const AlignedBuffer &a, const AlignedBuffer &b ) {
return ( a.len() == b.len() )
@@ -540,8 +540,8 @@ void test_iterative( void ) {
int main( int argc, char *argv[] )
{
- if ( ( argc >= 2 ) && !strcmp( argv[ 1 ], "-q" ) ) {
- verbose = false;
+ if ( argc >= 2 && strcmp( argv[ 1 ], "-v" ) == 0 ) {
+ verbose = true;
}
test_all_vectors();

0 comments on commit a611ef5

Please sign in to comment.