-
Notifications
You must be signed in to change notification settings - Fork 986
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some tests names and autotools v2 tests (#8299)
* fix autotools v2 test * rename tests * simplify test * minor changes * move to integration
- Loading branch information
Showing
5 changed files
with
30 additions
and
45 deletions.
There are no files selected for viewing
43 changes: 0 additions & 43 deletions
43
conans/test/functional/conan_v2/build_helpers/autotools.py
This file was deleted.
Oops, something went wrong.
File renamed without changes.
30 changes: 30 additions & 0 deletions
30
conans/test/integration/conan_v2/build_helpers/test_autotools.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import textwrap | ||
|
||
from conans.test.utils.conan_v2_tests import ConanV2ModeTestCase | ||
|
||
|
||
class AutotoolsBuildHelperTestCase(ConanV2ModeTestCase): | ||
conanfile = textwrap.dedent(""" | ||
from conans import ConanFile, AutoToolsBuildEnvironment, tools | ||
class Pkg(ConanFile): | ||
settings = "os", "arch", "{}" | ||
def run(cmd, *args, **kwargs): | ||
pass | ||
def build(self): | ||
autotools = AutoToolsBuildEnvironment(self) | ||
autotools.configure() | ||
autotools.make() | ||
""") | ||
|
||
def test_no_build_type(self): | ||
t = self.get_client() | ||
t.save({"conanfile.py": self.conanfile.format("compiler")}) | ||
t.run("create . pkg/0.1@user/testing", assert_error=True) | ||
self.assertIn("Conan v2 incompatible: build_type setting should be defined.", t.out) | ||
|
||
def test_no_compiler(self): | ||
t = self.get_client() | ||
t.save({"conanfile.py": self.conanfile.format("build_type")}) | ||
t.run("create . pkg/0.1@user/testing", assert_error=True) | ||
self.assertIn("Conan v2 incompatible: compiler setting should be defined.", t.out) |
File renamed without changes.
2 changes: 0 additions & 2 deletions
2
...unctional/conan_v2/build_helpers/meson.py → ...tion/conan_v2/build_helpers/test_meson.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters