Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to get tesh ignoring the cruft of Jenkins and friends
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 5 Sep 2016 16:36:17 +0000 (18:36 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 5 Sep 2016 16:36:17 +0000 (18:36 +0200)
doc/manpage/tesh.pod
tools/cmake/Tests.cmake
tools/tesh/tesh.py

index b773ba8..e7a8a83 100755 (executable)
@@ -22,7 +22,8 @@ they produce the expected output and return the expected value.
   --setenv var=value  : set a specific environment variable
   --cfg arg           : add parameter --cfg=arg to each command line
   --log arg           : add parameter --log=arg to each command line
-  --enable-coverage   : ignore output lines starting with "profiling:"
+  --ignore-jenkins    : ignore all cruft generated on SimGrid
+                        continous integration servers
 
 
 =head1 TEST SUITE FILE SYTAX
index a85ee3d..f533ea4 100644 (file)
@@ -6,6 +6,7 @@ IF(enable_smpi AND NOT WIN32)
   execute_process(COMMAND chmod a=rwx ${CMAKE_BINARY_DIR}/bin/smpirun)
 ENDIF()
 
+SET(TESH_OPTION "--ignore-jenkins")
 SET(TESH_COMMAND ${CMAKE_BINARY_DIR}/bin/tesh)
 IF(CMAKE_HOST_WIN32)
   SET(TESH_OPTION ${TESH_OPTION} --timeout 50)
index 7f3aca4..f5d32b8 100755 (executable)
@@ -382,7 +382,7 @@ if __name__ == '__main__':
     group1.add_argument('--setenv', metavar='var=value', action='append', help='set a specific environment variable')
     group1.add_argument('--cfg', metavar='arg', help='add parameter --cfg=arg to each command line')
     group1.add_argument('--log', metavar='arg', help='add parameter --log=arg to each command line')
-    group1.add_argument('--enable-coverage', action='store_true', help='ignore output lines starting with "profiling:"')
+    group1.add_argument('--ignore-jenkins', action='store_true', help='ignore all cruft generated on SimGrid continous integration servers')
     group1.add_argument('--wrapper', metavar='arg', help='Run each command in the provided wrapper (eg valgrind)')
 
     try:
@@ -392,10 +392,13 @@ if __name__ == '__main__':
 
     if options.cd is not None:
         os.chdir(options.cd)
-
-    if options.enable_coverage:
-        print("Enable coverage")
-        TeshState().ignore_regexps_common = [re.compile("^profiling:")]
+    
+    if options.ignore_jenkins:
+        print("Ignore all cruft seen on SimGrid's continous integration servers")
+        TeshState().ignore_regexps_common = [
+           re.compile("^profiling:"),
+           re.compile("WARNING: ASan doesn't fully support"),
+           re.compile("Unable to clean temporary file C:")]
     
     if options.teshfile is None:
         f = FileReader(None)