-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/publish-private-indexes
- Loading branch information
Showing
9 changed files
with
93 additions
and
20 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
Submodule den
updated
8 files
+25 −0 | selftest/src/den-selftest.adb | |
+294 −0 | src/den-filesystem.adb | |
+44 −2 | src/den-filesystem.ads | |
+7 −2 | src/den.adb | |
+10 −1 | src/den.ads | |
+6 −0 | src/denc.h | |
+15 −0 | src/unix/denc__unix.cpp | |
+51 −0 | src/windows/denc__windows.cpp |
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.
11 changes: 11 additions & 0 deletions
11
testsuite/tests/cache/softlinks/my_index/index/cr/crate/crate-0.1.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,11 @@ | ||
description = "Example crate" | ||
name = "crate" | ||
version = "0.1.0" | ||
licenses = "GPL-3.0-only" | ||
maintainers = ["[email protected]"] | ||
maintainers-logins = ["mylogin"] | ||
executables=['main'] | ||
|
||
[origin] | ||
url = "file:../../../crate-0.1.0.tgz" | ||
hashes = ["sha256:e246305107429e936610677bf5244d69510341a7df47cfce9e2278c4ad7da947"] |
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.1" |
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,60 @@ | ||
""" | ||
Test proper syncing of softlinks, even bad ones | ||
This test is Unix-only, as Windows' tar cannot recreate the broken links: | ||
crate-0.1.0 | ||
└── crate | ||
├── bin -> subdir/bin | ||
├── broken -> missing | ||
├── lib | ||
│ ├── mock.so -> mock.so.0.0 | ||
│ ├── mock.so.0 -> mock.so.0.0 | ||
│ ├── mock.so.0.0 | ||
│ ├── zzz.so -> mock.so | ||
│ └── zzz.so.0 -> mock.so | ||
├── loop | ||
│ ├── x -> z | ||
│ ├── y -> x | ||
│ └── z -> y | ||
├── order | ||
│ ├── ab -> b | ||
│ ├── af -> d/f | ||
│ ├── b | ||
│ ├── cb -> b | ||
│ ├── d | ||
│ │ └── f | ||
│ └── zf -> d/f | ||
├── self -> self | ||
├── subdir | ||
│ ├── bin | ||
│ │ ├── loop -> ../../subdir | ||
│ │ └── x | ||
│ ├── parent -> .. | ||
│ └── self -> ../subdir | ||
├── that -> this | ||
└── this -> that | ||
""" | ||
|
||
import os | ||
import shutil | ||
import drivers.builds as builds | ||
from drivers.alr import alr_with, init_local_crate, run_alr | ||
|
||
|
||
init_local_crate() | ||
|
||
# Make the crate depend on our troublesome crate and ensure syncing | ||
alr_with("crate") | ||
builds.sync() | ||
|
||
# Ensure that a copy has been made to the cache | ||
if builds.are_shared(): | ||
assert os.path.exists(builds.find_dir("crate")) | ||
|
||
# Cleanup | ||
os.chdir("..") | ||
shutil.rmtree("xxx") | ||
|
||
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,8 @@ | ||
driver: python-script | ||
build_mode: both | ||
control: | ||
- [SKIP, "skip_unix", "Test is Unix-only"] | ||
indexes: | ||
my_index: | ||
in_fixtures: false | ||
compiler_only_index: {} |