-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix use of canary file during
alr install
- Loading branch information
Showing
10 changed files
with
68 additions
and
7 deletions.
There are no files selected for viewing
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
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
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
Binary file not shown.
Binary file added
BIN
+296 Bytes
testsuite/tests/install/independent/my_index/crates/crate/crate2.tgz
Binary file not shown.
10 changes: 10 additions & 0 deletions
10
testsuite/tests/install/independent/my_index/index/cr/crate1/crate1-1.0.0.toml
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,10 @@ | ||
description = "Sample crate" | ||
name = "crate1" | ||
version = "1.0.0" | ||
licenses = [] | ||
maintainers = ["[email protected]"] | ||
maintainers-logins = ["someone"] | ||
|
||
[origin."case(os)"."..."] | ||
url = "file:../../../crates/crate/crate1.tgz" | ||
hashes = ["sha256:d35efed8325f646652f533fa4094d580cf28bccc9cc1d85751738b446bbed37a"] |
10 changes: 10 additions & 0 deletions
10
testsuite/tests/install/independent/my_index/index/cr/crate2/crate2-1.0.0.toml
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,10 @@ | ||
description = "Sample crate" | ||
name = "crate2" | ||
version = "1.0.0" | ||
licenses = [] | ||
maintainers = ["[email protected]"] | ||
maintainers-logins = ["someone"] | ||
|
||
[origin."case(os)"."..."] | ||
url = "file:../../../crates/crate/crate2.tgz" | ||
hashes = ["sha256:8a814f2f0683b3b4db10a1c1e08e951d81de0deff2fa0f70a29295e45184b795"] |
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 @@ | ||
version = "1.2" |
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,23 @@ | ||
""" | ||
Test installation of two independent crates with `alr install` to verify that | ||
our deployment system doesn't introduce any conflicts. | ||
""" | ||
|
||
from drivers.alr import run_alr, init_local_crate | ||
from drivers.asserts import assert_eq, assert_match, assert_installed | ||
from subprocess import run | ||
|
||
import os | ||
|
||
|
||
PREFIX=os.path.join(os.getcwd(), "install") | ||
PREFIX_ARG=f"--prefix={PREFIX}" | ||
|
||
# Install both crates one after the other, shouldn't fail | ||
run_alr("install", PREFIX_ARG, "crate1") | ||
run_alr("install", PREFIX_ARG, "crate2") | ||
|
||
# Check contents of the prefix | ||
assert_installed(PREFIX, ["crate1=1.0.0", "crate2=1.0.0"]) | ||
|
||
print('SUCCESS') |
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,4 @@ | ||
driver: python-script | ||
indexes: | ||
my_index: | ||
in_fixtures: false |