On 08/23/2016 03:14 PM, Jacob Carlborg wrote:
On 2016-08-23 19:55, Andrei Alexandrescu wrote:
Why does "dub test" rebuild the library? It should just re-run
unittests. -- Andrei

Rebuilds it with unit tests enabled? You can the "--verbose" and/or the
"--vverbose" to see exactly the commands that Dub are running.

It does this with every run per --verbose (it should not rebuild the test program):

Using dub registry url 'http://code.dlang.org/'
Refreshing local packages (refresh existing: true)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/andrei/.dub/packages/local-packages.json
Determined package version using GIT: checkedint_andralex 0.0.2
Refreshing local packages (refresh existing: false)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/andrei/.dub/packages/local-packages.json
Checking for missing dependencies.
Refreshing local packages (refresh existing: false)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/andrei/.dub/packages/local-packages.json
Checking for upgrades.
Using cached upgrade results...
Generating test runner configuration '__test__library__' for 'library' (library). Get module name from path: /home/andrei/d/dub/checkedint_andralex/source/checkedint.d
Refreshing local packages (refresh existing: false)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/andrei/.dub/packages/local-packages.json Generate target checkedint_andralex (executable /home/andrei/d/dub/checkedint_andralex __test__library__)
Performing "unittest" build using dmd for x86_64.
File '../../../../../tmp/dub_test_root-8422d71d-ca6f-4781-9307-b7ff54bb0b8f.d' modified, need rebuild.
checkedint_andralex 0.0.2: building configuration "__test__library__"...
dmd -c -of.dub/build/__test__library__-unittest-linux.posix-x86_64-dmd_2072-0DDE52948EB4C282B88B8F001B09B726/__test__library__.o -debug -g -unittest -w -version=VibeCustomMain -version=Have_checkedint_andralex -Isource/ ../../../../../tmp/dub_test_root-8422d71d-ca6f-4781-9307-b7ff54bb0b8f.d source/checkedint.d -vcolumns
Linking...
dmd -of.dub/build/__test__library__-unittest-linux.posix-x86_64-dmd_2072-0DDE52948EB4C282B88B8F001B09B726/__test__library__ .dub/build/__test__library__-unittest-linux.posix-x86_64-dmd_2072-0DDE52948EB4C282B88B8F001B09B726/__test__library__.o -L--no-as-needed -g Copying target from /home/andrei/d/dub/checkedint_andralex/.dub/build/__test__library__-unittest-linux.posix-x86_64-dmd_2072-0DDE52948EB4C282B88B8F001B09B726/__test__library__ to /home/andrei/d/dub/checkedint_andralex
Running ./__test__library__
All unit tests have been run successfully.



Andrei


Reply via email to