8000 test for #18371 by AbrilRBS · Pull Request #18382 · conan-io/conan · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

test for #18371 #18382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related e 8000 mails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions test/integration/remote/test_local_recipes_index.py
8000
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def test_export_patches(self):
from conan import ConanFile
from conan.tools.files import export_conandata_patches, apply_conandata_patches
class Zlib(ConanFile):
name = "zlib"
name = "{name}"
exports_sources = "*.cpp"
def export_sources(self):
export_conandata_patches(self)
Expand All @@ -270,13 +270,23 @@ def source(self):
""")
save_files(recipes_folder,
{"zlib/config.yml": zlib_config,
"zlib/all/conanfile.py": zlib,
"zlib/all/conanfile.py": zlib.format(name="zlib"),
"zlib/all/conandata.yml": conandata_yml,
"zlib/all/patches/patch1": patch,
"zlib/all/main.cpp": "\n"})
client = TestClient(light=True)
client.run(f"remote add local '{folder}'")
client.run("install --requires=zlib/0.1 --build=missing -vv")
"zlib/all/main.cpp": "\n",
"zlib-ng/config.yml": zlib_config,
"zlib-ng/all/conanfile.py": zlib.format(name="zlib-ng"),
"zlib-ng/all/conandata.yml": conandata_yml,
"zlib-ng/all/patches/patch1": patch,
"zlib-ng/all/main.cpp": "\n"}
)
client = TestClient(default_server_user=True, light=True)
zlib_ng_path = os.path.join(recipes_folder, "zlib-ng", "all")
client.run(f'create "{zlib_ng_path}" --version=0.1')
client.run("upload zlib-ng/0.1:* -r=default -c")
client.run("remove zlib-ng/0.1 -c")
client.run(f"remote add local '{folder}' --index 0")
client.run("install --output-folder=. --requires=zlib-ng/0.1 --requires=zlib/0.1 --build=missing -vv")
assert "zlib/0.1: Copied 1 file: patch1" in client.out
assert "zlib/0.1: Apply patch (file): patches/patch1" in client.out

Expand Down
Loading
0