-
-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9848 from marler8997/dtests
Start replacing bash tests with D
- Loading branch information
Showing
18 changed files
with
537 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import dshell; | ||
void main() | ||
{ | ||
Vars.set("deps_file", "$OUTPUT_BASE/compile.deps"); | ||
run("$DMD -m$MODEL -deps=$deps_file -Idshell/imports -o- $EXTRA_FILES/$TEST_NAME.d"); | ||
Vars.deps_file | ||
.grep("^$TEST_NAME.*${TEST_NAME}_default") | ||
.grep("private") | ||
.enforceMatches("Default import protection in dependency file should be 'private'"); | ||
Vars.deps_file | ||
.grep("^$TEST_NAME.*${TEST_NAME}_public") | ||
.grep("public") | ||
.enforceMatches("Public import protection in dependency file should be 'public'"); | ||
Vars.deps_file | ||
.grep("^$TEST_NAME.*${TEST_NAME}_private") | ||
.grep("private") | ||
.enforceMatches("Private import protection in dependency file should be 'private'"); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import dshell; | ||
void main() | ||
{ | ||
Vars.set("libname", "$OUTPUT_BASE/a$LIBEXT"); | ||
|
||
run("$DMD -m$MODEL -I$EXTRA_FILES -of$libname -c $EXTRA_FILES/mul9377a.d $EXTRA_FILES/mul9377b.d -lib"); | ||
run("$DMD -m$MODEL -I$EXTRA_FILES -of$OUTPUT_BASE/a$EXE $EXTRA_FILES/multi9377.d $libname"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import dshell; | ||
void main() | ||
{ | ||
if (OS != "linux") | ||
{ | ||
writefln("Skipping shared library test on %s.", OS); | ||
return; | ||
} | ||
|
||
run("$DMD -m$MODEL -of$OUTPUT_BASE/a$EXE -defaultlib=libphobos2.so $EXTRA_FILES/test_shared.d"); | ||
run("$OUTPUT_BASE/a$EXE", stdout, [ | ||
"LD_LIBRARY_PATH" : "../../phobos/generated/"~OS~"/release/"~MODEL | ||
]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.