-
-
Notifications
You must be signed in to change notification settings - Fork 238
Refactor integration tests #3064
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 emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
b7f3ec4
576da19
ba2ff96
0311978
8cb16ab
a25064d
3e2ef6d
c169d69
1732fe7
e45478a
63bf5eb
4a4e939
c52e7b0
27dc82e
bb65fc3
cad3c65
dcb2633
9575f01
4492b71
6e369bf
db333c1
477cd60
2c87f9b
96eec4f
2d4741e
4137c09
af16a54
a95566c
574fd65
8512c01
571e8eb
ca758e5
f734b36
50ec4f2
361d05e
dfd6e32
5cd8ba2
6faf0ae
0bdb2b3
85f5f19
c87efd3
918dea8
fc38ce4
eee872e
2711bdf
0cef8e8
6d9af7b
93e2408
e3c180c
c2891f1
fa32f9a
34ec142
8768427
583d3ed
afb915e
111b084
cfefaf8
2f7adbc
4453ddf
435caa6
1842af0
6f25f44
622d2c3
625af2a
04d6c75
c91d9f8
23758a0
4d05d93
78ee315
b2e8d62
ded0dba
1e79f95
39925c5
1818f44
b3e6457
b5017f5
03ed829
04b128d
7c973c5
54de124
0af3966
6df6651
ae14697
910154f
48094ff
87539b1
dc1f51e
4d30c5a
55f3263
3a38f9f
eefaa8e
8d154ab
0c9be98
ca7f69a
72fc2d5
b79352a
d7c7e5f
22fd99a
8c435ff
1db75b6
4a600aa
a3a7f25
e7362c7
0980f4a
c437991
d6e418d
a2113c8
b7827ec
653b28e
0853bdb
4b0bf19
a48eda0
b3d0c96
be18fcc
47b5b0a
326d8c0
a530043
42babaa
f39966f
4a5229f
e24b935
0851fe6
2a624a9
8bd5a7a
c35ee5e
5614ba1
cf96484
a4cf258
e9c2b97
8d823b0
b971c50
a6b86b8
5ac89c0
9b2c6b0
e938542
4a04d21
154693f
009707e
7ae9175
02b478b
2d33039
708c458
1b80958
fa0b47f
ed6fdef
34d8b1c
cff46f9
21bdbdd
ed2739d
677f9a6
7b07e44
5ed7b14
3aca29f
0d0e106
c52d4c2
0af4446
c4014a6
35647b4
f9d9eee
7963053
c520b36
1898a21
7f904fe
a838c2b
4dcba07
c0d029e
5a65476
8933c00
1d80c2d
0fd1355
1da2f19
4a6b9a3
8cea7b9
5be9655
81a9ccf
cf3b530
797f5ec
0c18d25
2edc99f
aca5241
f423ea6
41bb118
8a2263f
d999723
82f8f7a
4a51966
50b329a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,68 +2,15 @@ | |
| *.lib | ||
| *.so | ||
| *.dll | ||
|
|
||
| 1-exec-simple/exec-simple | ||
| 1-staticLib-simple/__test__library__ | ||
| 2-dynLib-dep/dynlib-dep | ||
| 2-sourceLib-dep/sourcelib-dep | ||
| 2-staticLib-dep/staticlib-dep | ||
| custom-unittest/custom-unittest | ||
| path-subpackage-ref/test | ||
| subpackage-ref/test | ||
| subpackage-common-with-sourcefile-globbing/mypackage* | ||
| version-spec/**/CMakeLists.txt | ||
| version-spec/**/foo.cmake | ||
| version-spec/**/foo | ||
|
|
||
| /test_registry | ||
| /issue_2051_running_unittests_from_dub_single_file_packages_fails | ||
| /run-unittest | ||
|
|
||
| test.log | ||
| custom-source-main-bug487/custom-source-main-bug487 | ||
| 3-copyFiles/bin/ | ||
| ignore-hidden-1/ignore-hidden-1 | ||
| ignore-hidden-2/ignore-hidden-2 | ||
| expected-import-path-output | ||
| expected-string-import-path-output | ||
| expected-describe-data-1-list-output | ||
| expected-describe-data-2-dmd-output | ||
| expected-issue616-output | ||
| describe-project/dummy.dat | ||
| describe-project/dummy-dep1.dat | ||
| */main/main | ||
| */*test-library | ||
| */*test-application | ||
| */exec-simple | ||
| issue1474/ext/fortytwo.d | ||
| issue2452/ext/fortytwo.d | ||
|
|
||
| cov-ctfe/test | ||
| issue1003-check-empty-ld-flags/issue1003-empty-ld-flags | ||
| issue1053-extra-files-visuald/LICENSE.txt | ||
| issue1053-extra-files-visuald/README.txt | ||
| issue1053-extra-files-visuald/extra_files.sln | ||
| issue1117-extra-dependency-files/test | ||
| issue1396-pre-post-run-commands/test | ||
| issue1396-pre-post-run-commands/test.txt | ||
| issue1477-subpackage-visuald-paths/library_subpackage_a.sln | ||
| issue1477-subpackage-visuald-paths/sub/subpackage_a/subpackage_a.sln | ||
| issue1504-envvar-in-path/test | ||
| issue1773-lint/report.json | ||
| issue2085-target-none-visuald/root.sln | ||
| issue2086-copyfiles-subpackage-targetpath/sub/sub | ||
| issue2086-copyfiles-subpackage-targetpath/sub/to_be_deployed.txt | ||
| issue2262-exact-cached-version-match/testproj | ||
| issue361-optional-deps/cmp.tmp | ||
| issue838-custom-cache-paths/test | ||
| issue97-targettype-none/a/issue97-targettype-none_a | ||
| issue97-targettype-none/b/issue97-targettype-none_b | ||
| issue990-download-optional-selected/b | ||
| output-1504.txt | ||
| version-filters-diamond/version-filters-diamond | ||
| version-filters-none/version-filters-none | ||
| version-filters-source-dep/version-filters-source-dep | ||
| version-filters/version-filters | ||
| version-spec/newfoo/foo-test-application | ||
| version-spec/oldfoo/foo-test-application | ||
| */* | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's fine for this PR as the state of things wasn't great but we should really find a better solution. This |
||
| !*/dub.json | ||
| !*/dub.sdl | ||
| !*/package.json | ||
| !*/run.d | ||
| !*/run.sh | ||
| !*/source | ||
| !*/.gitignore | ||
| !*/test.config | ||
| !extra/* | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| name "0-init-fail-json" | ||
| dependency "common" path="../common" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import std.file : exists, remove; | ||
| import std.path : buildPath; | ||
| import std.process : environment, spawnProcess, wait; | ||
|
|
||
| import common; | ||
|
|
||
| void main() | ||
| { | ||
| enum packname = "0-init-fail-pack"; | ||
| immutable deps = ["logger", "PACKAGE_DONT_EXIST"]; // would be very unlucky if it does exist... | ||
|
|
||
| if (!spawnProcess([dub, "init", "-n", packname] ~ deps ~ [ "-f", "json"]).wait) | ||
| die("Init with unknown non-existing dependency expected to fail"); | ||
|
|
||
| const filepath = buildPath(packname, "dub.json"); | ||
| if (filepath.exists) | ||
| { | ||
| remove(packname); | ||
| die(filepath, " was not created"); | ||
| } | ||
| } |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| name "0-init-fail" | ||
| dependency "common" path="../common" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import std.file : exists, remove; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should really combine the init-fail and init-fail-json tests, but this can be done in another PR. |
||
| import std.path : buildPath; | ||
| import std.process : environment, spawnProcess, wait; | ||
|
|
||
| import common; | ||
|
|
||
| void main() | ||
| { | ||
| enum packname = "0-init-fail-pack"; | ||
| immutable deps = ["logger", "PACKAGE_DONT_EXIST"]; // would be very unlucky if it does exist... | ||
|
|
||
| if (!spawnProcess([dub, "init", "-n", packname] ~ deps).wait) | ||
| die("Init with unknown non-existing dependency expected to fail"); | ||
|
|
||
| const filepath = buildPath(packname, "dub.sdl"); | ||
| if (filepath.exists) | ||
| { | ||
| remove(packname); | ||
| die(filepath ~ " was not created"); | ||
| } | ||
| } | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| !/exp | ||
| !/exp/* |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| name "0-init-interactive" | ||
| dependency "common" path="../common" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| name "0-init-interactive" | ||
| name "new-package" | ||
| description "desc" | ||
| authors "author" | ||
| copyright "copy" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also link so that the next guy can tell at a glance if it has been fixed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this only fails in CI, so maybe fixed with more recent gdc-14