return True
+@unittest.skipUnless(
+ os.environ.get("PYSAM_LINKING_TESTS", None),
+ "enable linking tests by setting PYSAM_LINKING_TESTS environment variable")
class TestLinking(unittest.TestCase):
package_name = "link_with_rpath"
"cd {} && rm -rf build && python setup.py install".format(self.workdir),
shell=True)
+
+@unittest.skipUnless(
+ os.environ.get("PYSAM_LINKING_TESTS", None),
+ "enable linking tests by setting PYSAM_LINKING_TESTS environment variable")
class TestLinkWithRpath(TestLinking):
package_name = "link_with_rpath"
"cd {} && python test_module.py".format(os.path.join(self.workdir, "tests"))))
+@unittest.skipUnless(
+ os.environ.get("PYSAM_LINKING_TESTS", None),
+ "enable linking tests by setting PYSAM_LINKING_TESTS environment variable")
class TestLinkWithoutRpath(TestLinking):
package_name = "link_without_rpath"