shutil.rmtree(newdir)
os.makedirs(newdir)
return newdir
+ def rm_old(self, testname = None):
+ testname = testname or self.caller_testname()
+ for subdir in ("docs/man3", "docs/html"):
+ if os.path.isdir(subdir):
+ logg.info("rm -rf %s", subdir)
+ shutil.rmtree(subdir)
+ for filename in ("tmp.local.tgz"):
+ if os.path.isfile(filename):
+ logg.info("rm %s", filename)
+ os.remove(filename)
def rm_testdir(self, testname = None):
testname = testname or self.caller_testname()
newdir = "tmp/tmp."+testname
self.with_local_centos_mirror()
def test_201_centos7_automake_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/centos7-am-build.dockerfile"
self.rm_testdir()
def test_202_centos8_automake_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/centos8-am-build.dockerfile"
self.rm_testdir()
def test_211_centos7_cmake_build_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/centos7-cm-build.dockerfile"
self.rm_testdir()
def test_212_centos8_cmake_build_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/centos8-cm-build.dockerfile"
self.rm_testdir()
def test_221_ubuntu16_cmake_build_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/ubuntu16-cm-build.dockerfile"
self.rm_testdir()
def test_222_ubuntu18_cmake_build_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/ubuntu18-cm-build.dockerfile"
self.rm_testdir()
def test_225_ubuntu16_32bit_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/ubuntu16-32bit.dockerfile"
self.rm_testdir()
def test_231_opensuse15_cmake_build_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/opensuse15-cm-build.dockerfile"
def test_251_windows_static_x64_dockerfile(self):
logg.warning(" windows-static-x64 compiles fine but segfaults on linking an .exe")
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/windows-static-x64.dockerfile"
def test_252_windows_shared_x64_dockerfile(self):
logg.warning(" windows-shared-x64 compiles fine but segfaults on linking an .exe")
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/windows-shared-x64.dockerfile"
self.rm_testdir()
def test_301_centos7_automake_sdl2_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/centos7-am-sdl2.dockerfile"
self.rm_testdir()
def test_302_centos8_automake_sdl2_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/centos8-am-sdl2.dockerfile"
self.rm_testdir()
def test_311_centos7_cmake_sdl2_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/centos7-cm-sdl2.dockerfile"
self.rm_testdir()
def test_312_centos8_cmake_sdl2_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/centos8-cm-sdl2.dockerfile"
self.rm_testdir()
def test_321_ubuntu18_cmake_sdl2_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/ubuntu16-cm-sdl2.dockerfile"
self.rm_testdir()
def test_331_opensuse15_cmake_sdl2_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/opensuse15-cm-sdl2.dockerfile"
self.rm_testdir()
def test_411_centos7_cmake_sdl2_destdir_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/centos7-cm-destdir-sdl2.dockerfile"
self.rm_testdir()
def test_412_centos8_cmake_sdl2_destdir_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/centos8-cm-destdir-sdl2.dockerfile"
self.rm_testdir()
def test_421_ubuntu16_azure_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/ubuntu16-azure.dockerfile"
self.rm_testdir()
def test_431_opensuse15_ninja_sdl2_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/opensuse15-nj-sdl2.dockerfile"
self.rm_testdir()
def test_701_centos7_am_docs_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/centos7-am-docs.dockerfile"
self.rm_testdir()
def test_711_centos7_cmake_docs_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname=self.testname()
testdir = self.testdir()
dockerfile="testbuilds/centos7-cm-docs.dockerfile"
self.rm_testdir()
def test_911_centos7_am_cm_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname1=self.testname() + "_am"
testname2=self.testname() + "_cm"
testdir = self.testdir()
self.rm_testdir()
def test_912_centos8_am_cm_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname1=self.testname() + "_am"
testname2=self.testname() + "_cm"
testdir = self.testdir()
self.rm_testdir()
def test_931_centos7_am_cm_sdl2_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname1=self.testname() + "_am"
testname2=self.testname() + "_cm"
testdir = self.testdir()
self.rm_testdir()
def test_932_centos7_am_cm_sdl2_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname1=self.testname() + "_am"
testname2=self.testname() + "_cm"
testdir = self.testdir()
self.rm_testdir()
def test_941_centos7_cm_sdl2_or_destdir_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname1=self.testname() + "_usr"
testname2=self.testname() + "_new"
testdir = self.testdir()
self.rm_testdir()
def test_942_centos7_cm_sdl2_or_destdir_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname1=self.testname() + "_usr"
testname2=self.testname() + "_new"
testdir = self.testdir()
self.rm_testdir()
def test_963_opensuse_cm_or_nj_sdl2_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname1=self.testname() + "_cm"
testname2=self.testname() + "_nj"
testdir = self.testdir()
self.rm_testdir()
def test_977_centos7_am_cm_docs_dockerfile(self):
if not os.path.exists(DOCKER_SOCKET): self.skipTest("docker-based test")
+ self.rm_old()
+ self.rm_testdir()
testname1=self.testname() + "_am"
testname2=self.testname() + "_cm"
testdir = self.testdir()