mirror of
https://github.com/dlang/tools.git
synced 2025-04-27 13:40:22 +03:00
Merge pull request #333 from marler8997/rdmdRelativeCompilers
support relative compiler filenames in rdmd_test merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
This commit is contained in:
commit
9a03b14dd9
2 changed files with 7 additions and 2 deletions
|
@ -99,7 +99,7 @@ clean:
|
|||
$(ROOT)/tests_extractor: tests_extractor.d
|
||||
mkdir -p $(ROOT)
|
||||
DFLAGS="$(DFLAGS)" $(DUB) build \
|
||||
--single $< --force --compiler=$(abspath $(DMD)) $(DUBFLAGS) \
|
||||
--single $< --force --compiler=$(DMD) $(DUBFLAGS) \
|
||||
&& mv ./tests_extractor $@
|
||||
|
||||
################################################################################
|
||||
|
@ -110,7 +110,7 @@ test_tests_extractor: $(ROOT)/tests_extractor
|
|||
$< -i ./test/tests_extractor/ascii.d | diff - ./test/tests_extractor/ascii.d.ext
|
||||
$< -i ./test/tests_extractor/iteration.d | diff - ./test/tests_extractor/iteration.d.ext
|
||||
|
||||
RDMD_TEST_COMPILERS = $(abspath $(DMD))
|
||||
RDMD_TEST_COMPILERS = $(DMD)
|
||||
RDMD_TEST_EXECUTABLE = $(ROOT)/rdmd
|
||||
RDMD_TEST_DEFAULT_COMPILER = $(basename $(DMD))
|
||||
|
||||
|
|
|
@ -105,6 +105,11 @@ void main(string[] args)
|
|||
// run the test suite for each specified test compiler
|
||||
foreach (testCompiler; testCompilerList.split(','))
|
||||
{
|
||||
// if compiler is a relative filename it must be converted
|
||||
// to absolute because this test changes directories
|
||||
if (testCompiler.canFind!isDirSeparator || testCompiler.exists)
|
||||
testCompiler = buildNormalizedPath(testCompiler.absolutePath);
|
||||
|
||||
runTests(rdmdApp, testCompiler, model);
|
||||
if (concurrencyTest)
|
||||
runConcurrencyTest(rdmdApp, testCompiler, model);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue