예제 #1
0
 def test_conan_run_tests(self):
     conan_file = ConanFileMock()
     conan_file.settings = Settings()
     conan_file.should_test = True
     meson = Meson(conan_file)
     with environment_append({"CONAN_RUN_TESTS": "0"}):
         meson.test()
         self.assertIsNone(conan_file.command)
예제 #2
0
파일: meson_test.py 프로젝트: wjt2015/conan
 def partial_build_test(self):
     conan_file = ConanFileMock()
     conan_file.settings = Settings()
     conan_file.should_configure = False
     conan_file.should_build = False
     conan_file.should_test = False
     conan_file.should_install = False
     conan_file.package_folder = os.path.join(self.tempdir, "my_cache_package_folder")
     meson = Meson(conan_file)
     meson.configure()
     self.assertIsNone(conan_file.command)
     meson.build()
     self.assertIsNone(conan_file.command)
     meson.test()
     self.assertIsNone(conan_file.command)
     meson.install()
     self.assertIsNone(conan_file.command)
     meson.meson_test()
     self.assertIsNone(conan_file.command)
     meson.meson_install()
     self.assertIsNone(conan_file.command)