Exemplo n.º 1
0
    def test(self):
        if self.is_emscripten():
            self.run('node bin/test.js')
            return

        if not tools.cross_building(self.settings):
            self.run("cd bin && .%stest" % os.sep)
        assert os.path.exists(
            os.path.join(self.deps_cpp_info["zlib"].rootpath, "LICENSE"))
Exemplo n.º 2
0
 def test(self):
     if tools.cross_building(self.settings):
         return
     bt = self.settings.build_type
     self.run('ctest --output-on-error -C %s' % bt, run_environment=True)
     if not self.options["boost"].without_python:
         os.chdir("bin")
         sys.path.append(".")
         import hello_ext
         hello_ext.greet()
Exemplo n.º 3
0
 def test(self):
     if tools.cross_building(self.settings):
         return
     bt = self.settings.build_type
     re = RunEnvironment(self)
     with tools.environment_append(re.vars):
         if platform.system() == "Darwin":
             lpath = os.environ["DYLD_LIBRARY_PATH"]
             self.run('DYLD_LIBRARY_PATH=%s ctest --output-on-error -C %s' %
                      (lpath, bt))
         else:
             self.run('ctest --output-on-error -C %s' % bt)
         if self.options["boost"].python:
             os.chdir("bin")
             sys.path.append(".")
             import hello_ext
             hello_ext.greet()
Exemplo n.º 4
0
 def test(self):
     if tools.cross_building(self.settings):
         return
     self.run(os.path.join("bin", "lambda_exe"), run_environment=True)
     if self.options["boost"].header_only:
         return
     if not self.options["boost"].without_random:
         self.run(os.path.join("bin", "random_exe"), run_environment=True)
     if not self.options["boost"].without_regex:
         self.run(os.path.join("bin", "regex_exe"), run_environment=True)
     if not self.options["boost"].without_test:
         self.run(os.path.join("bin", "test_exe"), run_environment=True)
     if not self.options["boost"].without_coroutine:
         self.run(os.path.join("bin", "coroutine_exe"), run_environment=True)
     if not self.options["boost"].without_chrono:
         self.run(os.path.join("bin", "chrono_exe"), run_environment=True)
     if not self.options["boost"].without_python:
         os.chdir("bin")
         sys.path.append(".")
         import hello_ext
         hello_ext.greet()
Exemplo n.º 5
0
 def test(self):
     if not tools.cross_building(self.settings):
         self.run("cd bin && .%stest" % os.sep)
     assert os.path.exists(os.path.join(self.deps_cpp_info["zlib"].rootpath, "LICENSE"))
Exemplo n.º 6
0
 def test(self):
     if not tools.cross_building(self.settings):
         self.run("cd bin && .%sexample" % os.sep)