aboutsummaryrefslogtreecommitdiff
path: root/tests/torture.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-05-18 23:02:41 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-05-18 23:02:41 +0200
commit4fbe572c024b4a31643fc55b4413241a519f5daf (patch)
tree8f4b48cf1d9da727fa62044ad36ab15324244060 /tests/torture.c
parent7c0ce909ed41203be6cf3c03e12ea5ab473ac6ee (diff)
downloadlibssh-4fbe572c024b4a31643fc55b4413241a519f5daf.tar.gz
libssh-4fbe572c024b4a31643fc55b4413241a519f5daf.tar.xz
libssh-4fbe572c024b4a31643fc55b4413241a519f5daf.zip
Added verbosity flag for unit tests
Diffstat (limited to 'tests/torture.c')
-rw-r--r--tests/torture.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/torture.c b/tests/torture.c
index 6b7484e9..ec39eca3 100644
--- a/tests/torture.c
+++ b/tests/torture.c
@@ -24,6 +24,11 @@ void torture_create_case_timeout(Suite *s, const char *name, TFun function, int
tcase_add_test(tc_new, function);
}
+static int verbosity=0;
+int torture_libssh_verbosity(void){
+ return verbosity;
+}
+
int main(int argc, char **argv) {
Suite *s = NULL;
SRunner *sr = NULL;
@@ -33,7 +38,7 @@ int main(int argc, char **argv) {
memset(&arguments,0,sizeof(struct argument_s));
torture_cmdline_parse(argc, argv, &arguments);
-
+ verbosity=arguments.verbose;
s = torture_make_suite();
sr = srunner_create(s);