tests: Default to quiet

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2013-02-18 01:18:13 -05:00
committed by Keith Winstein
parent ea3ad786fa
commit a611ef5821
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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++ ) {
+3 -3
View File
@@ -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();