corinthia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject incubator-corinthia git commit: Enhanced dftest to allow run of single groups. Syntax for dftest enhanced to allow dftest -plain (runs all plain tests) dftest -plain xyz (runs only group xyz
Date Thu, 25 Dec 2014 17:14:38 GMT
Repository: incubator-corinthia
Updated Branches:
  refs/heads/master 9eaaa481c -> 145000d46


Enhanced dftest to allow run of single groups.
Syntax for dftest enhanced to allow
   dftest -plain   (runs all plain tests)
   dftest -plain xyz (runs only group xyz


Project: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/commit/145000d4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/tree/145000d4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/diff/145000d4

Branch: refs/heads/master
Commit: 145000d46ba0e5861cdadb23156ab06c950de197
Parents: 9eaaa48
Author: jani <jani@apache.org>
Authored: Thu Dec 25 18:12:32 2014 +0100
Committer: jani <jani@apache.org>
Committed: Thu Dec 25 18:12:32 2014 +0100

----------------------------------------------------------------------
 consumers/dfconvert/src/CMakeLists.txt |  1 +
 consumers/dftest/src/CMakeLists.txt    |  1 +
 consumers/dftest/src/main.c            | 18 ++++++++++++++++--
 consumers/dfutil/src/CMakeLists.txt    |  1 +
 4 files changed, 19 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/145000d4/consumers/dfconvert/src/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/consumers/dfconvert/src/CMakeLists.txt b/consumers/dfconvert/src/CMakeLists.txt
index 7f4a13f..1157c53 100644
--- a/consumers/dfconvert/src/CMakeLists.txt
+++ b/consumers/dfconvert/src/CMakeLists.txt
@@ -46,3 +46,4 @@ link_directories(${LIB_DIRS})
 add_executable(dfconvert ${SOURCES})
 target_link_libraries(dfconvert DocFormats ${LIBS})
 source_group(src FILES ${SOURCES})
+set_property(TARGET dfconvert PROPERTY FOLDER consumers)

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/145000d4/consumers/dftest/src/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/consumers/dftest/src/CMakeLists.txt b/consumers/dftest/src/CMakeLists.txt
index 3ee1022..4a2a58c 100644
--- a/consumers/dftest/src/CMakeLists.txt
+++ b/consumers/dftest/src/CMakeLists.txt
@@ -49,3 +49,4 @@ link_directories(${LIB_DIRS})
 add_executable(dftest ${SOURCES})
 target_link_libraries(dftest DocFormats ${LIBS})
 source_group(src FILES ${SOURCES})
+set_property(TARGET dftest PROPERTY FOLDER consumers)

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/145000d4/consumers/dftest/src/main.c
----------------------------------------------------------------------
diff --git a/consumers/dftest/src/main.c b/consumers/dftest/src/main.c
index 8ea8e76..c7e5418 100644
--- a/consumers/dftest/src/main.c
+++ b/consumers/dftest/src/main.c
@@ -345,8 +345,22 @@ int main(int argc, const char **argv)
     // we still get the partial output.
     setbuf(stdout,NULL);
 
-    if ((argc == 2) && !strcmp(argv[1],"-plain")) {
-        utrun(allGroups,1,0,NULL);
+    if ((argc >= 2) && !strcmp(argv[1],"-plain")) {
+      if (argc == 2)
+        utrun(allGroups, 1, 0, NULL);
+      else {
+        // Arg[2] == testgroup to run
+        TestGroup *singleGroup[] = { NULL, NULL };
+        int        i = 0;
+
+        for (i; allGroups[i] && strcmp(argv[2], allGroups[i]->name); i++) ;
+        if (allGroups[i]) {
+          singleGroup[0] = allGroups[i];
+          utrun(singleGroup, 1, 0, NULL);
+        }
+        else
+          printf("\n function group \"%s\" does not exist!\n\n", argv[2]);
+      }
     }
     else if ((argc >= 3) && !strcmp(argv[1],"-diff")) {
         runTests(argc-2,&argv[2],1);

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/145000d4/consumers/dfutil/src/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/consumers/dfutil/src/CMakeLists.txt b/consumers/dfutil/src/CMakeLists.txt
index 1fcc600..9c511a9 100644
--- a/consumers/dfutil/src/CMakeLists.txt
+++ b/consumers/dfutil/src/CMakeLists.txt
@@ -74,3 +74,4 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
 add_executable(dfutil ${SOURCES})
 target_link_libraries(dfutil DocFormats ${LIBS})
 source_group(src FILES ${SOURCES})
+set_property(TARGET dfutil PROPERTY FOLDER consumers)


Mime
View raw message