]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: Support extra arguments to tests using add_ceph_test
authorDavid Zafman <dzafman@redhat.com>
Tue, 26 Jul 2016 20:23:52 +0000 (13:23 -0700)
committerDavid Zafman <dzafman@redhat.com>
Wed, 27 Jul 2016 16:58:59 +0000 (09:58 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
cmake/modules/AddCephTest.cmake

index 7f6fce30160a3b62f5cc5d74e62090841153a40f..8506f9e2d60d8c0d0d7dbe1b020fc40c47774ccb 100644 (file)
@@ -2,7 +2,7 @@
 
 #adds makes target/script into a test, test to check target, sets necessary environment variables
 function(add_ceph_test test_name test_path)
-  add_test(NAME ${test_name} COMMAND ${test_path})
+  add_test(NAME ${test_name} COMMAND ${test_path} ${ARGN})
   add_dependencies(tests ${test_name})
   set_property(TEST
     ${test_name}