-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'alire/master' into feat/archive-downloa…
…d-command
- Loading branch information
Showing
5 changed files
with
157 additions
and
18 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
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,43 @@ | ||
""" | ||
Test the concise mode of the --tree switch. Repeating dependencies are | ||
substituted by a "..." ellipsis. | ||
""" | ||
|
||
import os | ||
import re | ||
from drivers.alr import run_alr, alr_with, init_local_crate | ||
from drivers.asserts import assert_eq, assert_match | ||
|
||
# Prepare a crate in which dependencies appear twice, so their dependencies in | ||
# turn can be elided. | ||
|
||
init_local_crate("yyy") | ||
alr_with("hello") | ||
os.chdir("..") | ||
init_local_crate("xxx") | ||
alr_with("hello") | ||
alr_with("yyy", path="../yyy") | ||
|
||
# Check the concise tree | ||
assert_eq("""\ | ||
xxx=0.1.0-dev | ||
+-- hello=1.0.1 (*) | ||
| +-- libhello=1.0.0 (^1.0) | ||
+-- yyy=0.1.0-dev (*) | ||
+-- hello=1.0.1 (*) | ||
+-- ...\ | ||
""", | ||
run_alr("with", "--tree").out.strip()) | ||
|
||
# Check the regular tree | ||
assert_match(".*" + re.escape("""\ | ||
xxx=0.1.0-dev | ||
+-- hello=1.0.1 (*) | ||
| +-- libhello=1.0.0 (^1.0) | ||
+-- yyy=0.1.0-dev (*) | ||
+-- hello=1.0.1 (*) | ||
+-- libhello=1.0.0 (^1.0)\ | ||
"""), | ||
run_alr("-v", "with", "--tree", quiet=False).out.strip()) | ||
|
||
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,5 @@ | ||
driver: python-script | ||
build_mode: both | ||
indexes: | ||
basic_index: | ||
in_fixtures: true |