コード例 #1
0
 def test_GetBuildStatus(self):
     handler = cdash_handler.Handler()
     # We need to test error in configure, build, test, and no error
     # test buildid 720
     (status, error) = handler.GetBuildStatus("720")
     self.assertTrue(status == "failed")
     self.assertTrue(error == "Errors occur during tests")
     # configure buildid 352
     (status, error) = handler.GetBuildStatus("352")
     self.assertTrue(status == "failed")
     self.assertTrue(error == "Errors occur during configure")
     # build buildid 358
     (status, error) = handler.GetBuildStatus("358")
     self.assertTrue(status == "failed")
     self.assertTrue(error == "Errors occur during build")
     # passing buildid 373
     (status, error) = handler.GetBuildStatus("373")
     self.assertTrue(status == "success")
     self.assertTrue(error == "")
コード例 #2
0
 def test_GetBuildUrl(self):
     handler = cdash_handler.Handler()
     url = handler.GetBuildUrl("1")
     self.assertTrue( \
       "https://cdash.orfeo-toolbox.org/buildSummary.php?buildid=1" == url)
コード例 #3
0
 def test_GetBuildId(self):
     handler = cdash_handler.Handler()
     buildid= handler.GetBuildId( site="debian-unstable-gcc" ,\
       stamp="20190319-1243-Experimental" , name="0388a356 (debian_CI)")
     self.assertTrue("1" == buildid)
コード例 #4
0
 def test_GetStamp(self):
     handler = cdash_handler.Handler()
     handler.build_dir = synthetic_build_dir
     stamp = handler.GetStamp()
     self.assertTrue("20190320-1706-Experimental_test" == stamp)
コード例 #5
0
 def test_GetSite(self):
     handler = cdash_handler.Handler()
     handler.build_dir = synthetic_build_dir
     site = handler.GetSite()
     self.assertTrue("debian-unstable-gcc.42" == site)
コード例 #6
0
 def test_GetName(self):
     handler = cdash_handler.Handler()
     handler.build_dir = synthetic_build_dir
     name = handler.GetName()
     self.assertTrue("185_f-54sf_ghs-dgh (out_space)" == name)
コード例 #7
0
 def test_GetConfigureFile(self):
     handler = cdash_handler.Handler()
     handler.build_dir = synthetic_build_dir
     config_path = handler.GetConfigureFile()
     self.assertTrue(os.path.exists(config_path))