Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
7f1f060
run_unittest
the-horo Jul 23, 2025
c63c881
common
the-horo Jul 23, 2025
265dfce
.gitignore
the-horo Jul 23, 2025
8b2ff58
Add test README.md
the-horo Jul 14, 2025
148f0ee
0-init-fail-json
the-horo Jul 23, 2025
56227bb
0-init-fail
the-horo Jul 23, 2025
165c2f5
0-init-interactive
the-horo Jul 23, 2025
9ae1be5
0-init-multi-json
the-horo Jul 23, 2025
83c8bbd
0-init-multi
the-horo Jul 23, 2025
a9be558
0-init-simple
the-horo Jul 13, 2025
afb8460
0-init-simple-json
the-horo Jul 13, 2025
a4fc02f
1-dynLib-simple
the-horo Jul 13, 2025
e6fc4f8
1-exec-simple
the-horo Jul 13, 2025
d81e46a
1-exec-simple-package-json
the-horo Jul 13, 2025
0a4b7d0
extra/1-sourceLib-simple
the-horo Jul 13, 2025
0144389
1-staticLib-simple
the-horo Jul 13, 2025
636c288
2-dynLib-dep
the-horo Jul 13, 2025
29010b3
2-dynLib-with-staticLib-dep
the-horo Jul 13, 2025
2f559fb
2-sourceLib-dep
the-horo Jul 13, 2025
a71c518
2-staticLib-dep
the-horo Jul 13, 2025
da81a66
3-copyFiles
the-horo Jul 14, 2025
3f15f7e
extra/4-describe
the-horo Jul 14, 2025
6ffd176
4-describe-data-1-list
the-horo Jul 23, 2025
26a88e3
4-describe-data-2-dmd
the-horo Jul 15, 2025
1dded98
4-describe-data-3-zero-delim
the-horo Jul 15, 2025
7dd353b
4-describe-import-paths
the-horo Jul 15, 2025
b7e1635
4-describe-json
the-horo Jul 15, 2025
fe29e08
4-describe-string-import-paths
the-horo Jul 15, 2025
a5442be
drop 4-describe-data-check-escape since it's no longer used
the-horo Jul 15, 2025
6e8f891
5-convert
the-horo Jul 15, 2025
4a3d0ef
5-convert-stdout
the-horo Jul 15, 2025
fc8f801
cache-generated-test-config
the-horo Jul 15, 2025
b0c4d95
colored-output
the-horo Jul 15, 2025
4c47f89
cov-ctfe
the-horo Jul 16, 2025
56a2a08
custom-source-main-but487
the-horo Jul 16, 2025
c54b383
custom-unittest
the-horo Jul 16, 2025
ae81c32
issue2012-dc-env
the-horo Jul 16, 2025
9e9563c
ddox
the-horo Jul 16, 2025
8236518
depen-build-settings
the-horo Jul 17, 2025
bd47192
dest-directory
the-horo Jul 17, 2025
2156037
dpath-variable
the-horo Jul 17, 2025
22fde0a
dub-as-a-library-cwd
the-horo Jul 17, 2025
7514cf5
dub-custom-root
the-horo Jul 17, 2025
0912d06
dub_test_root
the-horo Jul 17, 2025
a334367
dustmite-no-redirect
the-horo Jul 17, 2025
fd141b2
d-versions
the-horo Jul 17, 2025
ca558b3
environment-variables
the-horo Jul 17, 2025
d0f4608
feat663-search
the-horo Jul 17, 2025
50163cc
extra/test_registry
the-horo Jul 23, 2025
c8f1810
extra/issue1336-registry
the-horo Jul 23, 2025
5a33a77
fetchzip
the-horo Jul 23, 2025
af4f26e
filesystem-version-with-buildinfo
the-horo Jul 18, 2025
bfef323
frameworks
the-horo Jul 18, 2025
1a7d7d2
frameworks - set targeType to executable in order to invoke the linker
the-horo Jul 18, 2025
7bf50af
git-dependency
the-horo Jul 18, 2025
2119b79
help
the-horo Jul 18, 2025
83fa4e0
ignore-hidden-1
the-horo Jul 18, 2025
2ff52ea
ignore-hidden-2
the-horo Jul 18, 2025
da03a45
ignore-useless-arch-switch
the-horo Jul 18, 2025
ea49972
injected-from-dependency
the-horo Jul 18, 2025
d93f899
interactive-remove
the-horo Jul 19, 2025
5175a0b
issue1003-check-empty-ld-flags
the-horo Jul 19, 2025
7963a37
issue1004-override-config
the-horo Jul 19, 2025
7d47f4b
issue1005-configuration-resolution
the-horo Jul 19, 2025
a20ec83
issue1024-selective-upgrade
the-horo Jul 19, 2025
c274aad
issue1037-better-dependency-messages
the-horo Jul 27, 2025
afbf5ab
issue103-single-file-package
the-horo Jul 19, 2025
b467d21
issue1040-run-with-ver
the-horo Jul 19, 2025
005e96e
issue1053-extra-files-visuald
the-horo Jul 19, 2025
258c5cc
issue1070-init-mistakes-dirs-as-files
the-horo Jul 19, 2025
c48aad2
issue1091-bogus-rebuild
the-horo Jul 19, 2025
02c301d
issue1117-extra-dependency-files
the-horo Jul 19, 2025
c0078ac
issue1136-temp-copy-files
the-horo Jul 19, 2025
e263031
issue1158-stdin-for-single-file
the-horo Jul 19, 2025
d7999c8
extra/issue1416
the-horo Jul 19, 2025
d66756f
issue1180-local-cache-broken
the-horo Jul 19, 2025
99bcad9
issue1194-warn-wrong-subconfig
the-horo Jul 19, 2025
a02c358
issue1262-version-inheritance
the-horo Jul 19, 2025
4a4dec8
issue1262-version-inheritance-diamond
the-horo Jul 19, 2025
2b50bb3
issue1277
the-horo Jul 19, 2025
a2d30e8
issue130-unicode-СНАЯАСТЕЯЅ
the-horo Jul 19, 2025
3964926
issue1350-transitive-none-deps
the-horo Jul 19, 2025
ca248bf
issue1372-ignore-files-in-hidden-dirs
the-horo Jul 19, 2025
cb000d5
issue1396-pre-post-run-commands
the-horo Jul 19, 2025
66feb48
issue1401-file-system-pkg-supplier
the-horo Jul 19, 2025
9be7ea8
issue1408-inherit-linker-files
the-horo Jul 19, 2025
f4c1a12
issue1416-maven-repo-pkg-supplier
the-horo Jul 19, 2025
c076bf6
issue1427-betterC
the-horo Jul 19, 2025
2702ba0
issue1447-build-settings-vars
the-horo Jul 19, 2025
f5bd1fc
issue1474-generate-source
the-horo Jul 19, 2025
0243b4d
issue1477-subpackage-visuald-paths
the-horo Jul 19, 2025
a93ce11
issue1504-envvar-in-path
the-horo Jul 20, 2025
8f15f18
issue1505-single-file-package-dynamic-library
the-horo Jul 20, 2025
3cf0b6e
issue1524-maven-upgrade-dependency-tree
the-horo Jul 20, 2025
800ae21
issue1531-toolchain-requirements
the-horo Jul 20, 2025
60c6d55
issue1551-var-escaping
the-horo Jul 20, 2025
596d87e
issue1556-fetch-and-build-pkgs
the-horo Jul 20, 2025
fbe4c42
issue1567-fetch-sub-package
the-horo Jul 20, 2025
317cedd
issue1574-addcommand
the-horo Jul 20, 2025
fe61007
issue1636-betterC-dub-test
the-horo Jul 20, 2025
3ed6bbc
issue1645-dflags-build
the-horo Jul 20, 2025
ab40611
issue1651-custom-dub-init-type
the-horo Jul 20, 2025
8f48cc0
issue1691-build-subpkg
the-horo Jul 20, 2025
511f6a4
issue1739-project-settings-file
the-horo Jul 20, 2025
dc39741
issue1773-lint
the-horo Jul 20, 2025
b4a63ce
issue1775
the-horo Jul 20, 2025
8187b15
issue1788-incomplete-string-import-override
the-horo Jul 20, 2025
66c5aca
issue1856-build-unittest
the-horo Jul 20, 2025
e944968
issue1867-lowmem
the-horo Jul 21, 2025
4dc066e
issue2046-ignored-optional-with-path
the-horo Jul 21, 2025
32eefa1
issue2051_running_unittests_from_dub_single_file_packages_fails
the-horo Jul 21, 2025
2be132f
issue2085-target-none-visuald
the-horo Jul 21, 2025
ca40a6a
issue2086-copyfiles-subpackage-targetpath
the-horo Jul 21, 2025
c629616
issue2190-unset-TEMP
the-horo Jul 21, 2025
74a478e
issue2192-environment-variables
the-horo Jul 21, 2025
349abf2
issue2234-copy-read-only-files
the-horo Jul 21, 2025
abb740d
issue2258-dynLib-exe-dep
the-horo Jul 21, 2025
847cfa5
issue2262-exact-cached-version-match
the-horo Jul 22, 2025
d847455
issue2348-postbuildcommands
the-horo Jul 22, 2025
634a888
issue2377-dynLib-dep-extra-files
the-horo Jul 22, 2025
f5e2e65
issue2377-dynLib-dep-extra-files: don't check for *exp files on windows
the-horo Jul 27, 2025
52264a5
issue2448
the-horo Jul 22, 2025
6c48a16
issue2452
the-horo Jul 22, 2025
14ca17e
issue2574-mistyping-commands
the-horo Jul 22, 2025
39b6ea7
issue2587-subpackage-dependency-resolution
the-horo Jul 22, 2025
58dc9fe
issue2650-deprecated-modules
the-horo Jul 22, 2025
d554368
issue2684-recipe-file
the-horo Jul 22, 2025
11da4c9
issue2698-cimportpaths-broken-with-dmd-ldc
the-horo Jul 22, 2025
d543aba
issue2840-build-collision
the-horo Jul 22, 2025
d2a2074
issue346-redundant-flags
the-horo Jul 22, 2025
08321cd
issue361-optional-deps
the-horo Jul 23, 2025
cff4b0c
issue502-root-import
the-horo Jul 23, 2025
6eeb1c3
issue564-invalid-upgrade-dependency
the-horo Jul 23, 2025
7571792
issue586-subpack-dep
the-horo Jul 26, 2025
95d9c7b
issue613-dynlib-pic
the-horo Jul 26, 2025
71df286
issue616-describe-vs-generate-commands
the-horo Jul 26, 2025
bc03832
issue672-upgrade-optional
the-horo Jul 27, 2025
f1e73cd
issue674-concurrent-dub
the-horo Jul 26, 2025
3b20511
issue686-multiple-march
the-horo Jul 26, 2025
ff3c84b
issue754-path-selection-fail
the-horo Jul 26, 2025
9bba315
issue777-bogus-path-dependency
the-horo Jul 26, 2025
64d1dff
issue782-gtkd-pkg-config
the-horo Jul 26, 2025
7e78c68
issue813-fixed-dependency
the-horo Jul 26, 2025
156529e
issue813-pure-sub-dependency
the-horo Jul 26, 2025
dee67f6
issue820-extra-fields-after-convert
the-horo Jul 27, 2025
e908118
issue838-custom-cache-paths
the-horo Jul 26, 2025
08363ff
issue877-auto-fetch-package-on-run
the-horo Jul 26, 2025
c8d0cc1
issue884-init-defer-file-creation
the-horo Jul 26, 2025
c692f1d
issue895-local-configuration
the-horo Jul 27, 2025
f8bfc78
issue923-subpackage-deps
the-horo Jul 27, 2025
bd1264d
issue934-path-dep
the-horo Jul 26, 2025
8de5f4a
issue959-path-based-subpack-dep
the-horo Jul 26, 2025
5f5b1ce
issue97-targettype-none
the-horo Jul 26, 2025
54364fb
issue97-targettype-none-nodeps
the-horo Jul 26, 2025
1fcc73b
issue97-targettype-none-onerecipe
the-horo Jul 26, 2025
d1ffe38
issue990-download-optional-selected
the-horo Jul 26, 2025
88cad92
mutex-main-1
the-horo Jul 26, 2025
404e2ed
mutex-main-2
the-horo Jul 26, 2025
9f15559
mutex-main-3
the-horo Jul 26, 2025
646a842
path-subpackage-ref
the-horo Jul 26, 2025
545e64a
pr1549-dub-exe-var
the-horo Jul 26, 2025
e8877f9
pr2642-cache-db
the-horo Jul 26, 2025
124e793
pr2644-describe-artifact-path
the-horo Jul 26, 2025
f99ba63
pr2647-build-deep
the-horo Jul 26, 2025
26712f0
removed-dub-obj
the-horo Jul 26, 2025
32fb917
sdl-package-simple
the-horo Jul 26, 2025
0d6b5fc
single-file-sdl-default-name
the-horo Jul 26, 2025
0b87bf0
subpackage-common-with-sourcefile-globbing
the-horo Jul 26, 2025
8f355e8
subpackage-ref
the-horo Jul 26, 2025
1afe284
test-upgrade-subpackages
the-horo Jul 26, 2025
d624d8f
test-version-opt
the-horo Jul 26, 2025
bf38945
timeout
the-horo Jul 26, 2025
e561a1c
unittest-cov-ctfe
the-horo Jul 26, 2025
e81b0e1
use-c-sources
the-horo Jul 26, 2025
335101a
version-filters
the-horo Jul 26, 2025
1720315
version-filters-diamond
the-horo Jul 26, 2025
2b37c57
version-filters-none
the-horo Jul 26, 2025
e633e2c
version-filters-source-dep
the-horo Jul 26, 2025
8d7689d
version-spec
the-horo Jul 26, 2025
c2f957e
win32_default
the-horo Jul 26, 2025
8bb8fe6
Drop test/version-filters.sh
the-horo Jul 26, 2025
107390d
test/run-unittest.*: Forward to run_unittest
the-horo Jul 27, 2025
3e69c05
CI
the-horo Jul 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
39 changes: 23 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ jobs:
- { dc: ldc-master, do_test: true }
# Test on ARM64
- { os: macOS-14, dc: ldc-latest, do_test: true }
- { os: ubuntu-24.04, dc: gdc-13, do_test: false } # ice when building tests
- { os: ubuntu-24.04, dc: gdc-14, do_test: true }
exclude:
# Error with those versions:
# ld: multiple errors: symbol count from symbol table and dynamic symbol table differ in [.../dub.o]; address=0x0 points to section(2) with no content in '[...]/osx/lib/libphobos2.a[3177](config_a68_4c3.o)'
Expand All @@ -96,13 +98,31 @@ jobs:
- name: '[Linux] Install dependencies'
if: runner.os == 'Linux'
run: |
sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev netcat
sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev netcat-openbsd

# Compiler to test with
- name: Prepare compiler
uses: dlang-community/setup-dlang@v1
uses: dlang-community/setup-dlang@v2
with:
compiler: ${{ matrix.dc }}
dub: latest # gdc doesn't come with dub

- name: Set environment variables
shell: bash
run: |
for name in DC DMD; do
var=${!name}
var=$(basename "${var}")
var=${var%.exe} # strip the extension
export "${name}=${var}"
tee -a ${GITHUB_ENV} <<<"${name}=${var}"
done

if [[ "${{ startsWith(matrix.compiler, 'gdc') }}" ]]; then
# build fails with gdmd without this
tee -a ${GITHUB_ENV} <<<"DFLAGS=-q,-Wno-error -allinst"
tee -a ${GITHUB_ENV} <<<"DC=${DMD}"
fi

# Checkout the repository
- name: Checkout
Expand All @@ -115,7 +135,6 @@ jobs:
run: |
dub build --compiler=${{ env.DC }}
if [[ ${{ matrix.do_test }} == 'true' ]]; then
dub run --compiler=${{ env.DC }} --single test/issue2051_running_unittests_from_dub_single_file_packages_fails.d
./scripts/ci/ci.sh
fi

Expand All @@ -127,19 +146,7 @@ jobs:
dub build --compiler=${{ env.DC }}
if [[ ${{ matrix.do_test }} == 'true' ]]; then
dub test --compiler=${{ env.DC }}
dub run --compiler=${{ env.DC }} --single test/issue2051_running_unittests_from_dub_single_file_packages_fails.d
dub --single test/run-unittest.d

# FIXME: DMD fails a few tests on Windows; remove them for now
if [[ '${{ matrix.dc }}' = dmd* ]]; then
# DLL support is lacking
rm -rf test/{1-dynLib-simple,2-dynLib-dep,2-dynLib-with-staticLib-dep}
# Unicode in paths too
rm -rf test/issue130-unicode-СНА*
# ImportC probably requires set-up MSVC environment variables
rm -rf test/use-c-sources
fi
test/run-unittest.sh
dub run --root test/run_unittest -- -v
fi
shell: bash

Expand Down
5 changes: 2 additions & 3 deletions scripts/ci/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -v -e -o pipefail

vibe_ver=$(jq -r '.versions | .["vibe-d"]' < dub.selections.json)
dub fetch vibe-d@$vibe_ver # get optional dependency
dub test --compiler=${DC} -c library-nonet
dub test --compiler=${DC} -c library-nonet --build=unittest

export DMD="$(command -v $DMD)"

Expand All @@ -18,5 +18,4 @@ else
dub test --compiler=${DC} -b unittest-cov
./build.d
fi
DUB=`pwd`/bin/dub DC=${DC} dub --single ./test/run-unittest.d
DUB=`pwd`/bin/dub DC=${DC} test/run-unittest.sh
dub run --root test/run_unittest -- -v
2 changes: 2 additions & 0 deletions test/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,5 @@ version-filters-source-dep/version-filters-source-dep
version-filters/version-filters
version-spec/newfoo/foo-test-application
version-spec/oldfoo/foo-test-application

!new_tests/*
36 changes: 0 additions & 36 deletions test/0-init-fail-json.script.d

This file was deleted.

18 changes: 0 additions & 18 deletions test/0-init-fail.sh

This file was deleted.

5 changes: 0 additions & 5 deletions test/0-init-interactive.default_name.dub.sdl

This file was deleted.

47 changes: 0 additions & 47 deletions test/0-init-interactive.sh

This file was deleted.

27 changes: 0 additions & 27 deletions test/0-init-multi-json.sh

This file was deleted.

28 changes: 0 additions & 28 deletions test/0-init-multi.sh

This file was deleted.

16 changes: 0 additions & 16 deletions test/0-init-simple-json.sh

This file was deleted.

16 changes: 0 additions & 16 deletions test/0-init-simple.sh

This file was deleted.

4 changes: 0 additions & 4 deletions test/1-exec-simple-package-json/package.json

This file was deleted.

1 change: 0 additions & 1 deletion test/2-dynLib-dep/.no_build_windows

This file was deleted.

7 changes: 0 additions & 7 deletions test/2-sourceLib-dep/dub.json

This file was deleted.

Loading
Loading