Skip to content

Commit

Permalink
Merge pull request #4409 from braddr/noconf
Browse files Browse the repository at this point in the history
explicitly select no conf file for testing
  • Loading branch information
andralex committed Feb 13, 2015
2 parents e7a18f6 + 63faf3e commit 115eafd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
13 changes: 11 additions & 2 deletions test/Makefile
Expand Up @@ -108,13 +108,22 @@ export EXE=.exe
export OBJ=.obj
export DSEP=\\
export SEP=$(subst /,\,/)

DRUNTIME_PATH=..\..\druntime
PHOBOS_PATH=..\..\phobos
export DFLAGS=-I$(DRUNTIME_PATH)\import -I$(PHOBOS_PATH)
export LIB=$(PHOBOS_PATH)
else
export ARGS=-inline -release -gc -O -unittest -fPIC
export DMD=../src/dmd
export EXE=
export OBJ=.o
export DSEP=/
export SEP=/

DRUNTIME_PATH=../../druntime
PHOBOS_PATH=../../phobos
export DFLAGS=-I$(DRUNTIME_PATH)/import -I$(PHOBOS_PATH) -L-L$(PHOBOS_PATH)/generated/$(OS)/release/$(MODEL)
endif

ifeq ($(OS),osx)
Expand Down Expand Up @@ -221,6 +230,6 @@ start_fail_compilation_tests: $(RESULTS_DIR)/.created $(RESULTS_DIR)/d_do_test$(
$(RESULTS_DIR)/d_do_test$(EXE): d_do_test.d $(RESULTS_DIR)/.created
@echo "Building d_do_test tool"
@echo "OS: $(OS)"
$(QUIET)$(DMD) -m$(MODEL) -unittest -run d_do_test.d -unittest
$(QUIET)$(DMD) -m$(MODEL) -od$(RESULTS_DIR) -of$(RESULTS_DIR)$(DSEP)d_do_test$(EXE) d_do_test.d
$(QUIET)$(DMD) -conf= -m$(MODEL) -unittest -run d_do_test.d -unittest
$(QUIET)$(DMD) -conf= -m$(MODEL) -od$(RESULTS_DIR) -of$(RESULTS_DIR)$(DSEP)d_do_test$(EXE) d_do_test.d

6 changes: 3 additions & 3 deletions test/d_do_test.d
Expand Up @@ -522,7 +522,7 @@ int main(string[] args)
string objfile = output_dir ~ envData.sep ~ test_name ~ "_" ~ to!string(i) ~ envData.obj;
toCleanup ~= objfile;

string command = format("%s -m%s -I%s %s %s -od%s -of%s %s%s", envData.dmd, envData.model, input_dir,
string command = format("%s -conf= -m%s -I%s %s %s -od%s -of%s %s%s", envData.dmd, envData.model, input_dir,
reqArgs, c, output_dir,
(testArgs.mode == TestMode.RUN ? test_app_dmd : objfile),
(testArgs.mode == TestMode.RUN ? "" : "-c "),
Expand All @@ -538,15 +538,15 @@ int main(string[] args)
string newo= result_path ~ replace(replace(filename, ".d", envData.obj), envData.sep~"imports"~envData.sep, envData.sep);
toCleanup ~= newo;

string command = format("%s -m%s -I%s %s %s -od%s -c %s", envData.dmd, envData.model, input_dir,
string command = format("%s -conf= -m%s -I%s %s %s -od%s -c %s", envData.dmd, envData.model, input_dir,
reqArgs, c, output_dir, filename);
compile_output ~= execute(fThisRun, command, testArgs.mode != TestMode.FAIL_COMPILE, result_path);
}

if (testArgs.mode == TestMode.RUN)
{
// link .o's into an executable
string command = format("%s -m%s %s %s -od%s -of%s %s", envData.dmd, envData.model, envData.required_args,
string command = format("%s -conf= -m%s %s %s -od%s -of%s %s", envData.dmd, envData.model, envData.required_args,
testArgs.requiredArgsForLink, output_dir, test_app_dmd, join(toCleanup, " "));
version(Windows) command ~= " -map nul.map";

Expand Down

0 comments on commit 115eafd

Please sign in to comment.