mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Move dmd files into compiler/
This commit is contained in:
parent
20bd0cacbd
commit
6374bb87b7
4579 changed files with 4 additions and 4 deletions
23
compiler/test/dshell/sameenv.d
Normal file
23
compiler/test/dshell/sameenv.d
Normal file
|
@ -0,0 +1,23 @@
|
|||
import dshell;
|
||||
void main()
|
||||
{
|
||||
const envFromExe = shellExpand("$OUTPUT_BASE/envFromExe.txt");
|
||||
const envFromRun = shellExpand("$OUTPUT_BASE/envFromRun.txt");
|
||||
|
||||
run("$DMD -m$MODEL -of$OUTPUT_BASE/printenv$EXE $EXTRA_FILES/printenv.d");
|
||||
run("$OUTPUT_BASE/printenv$EXE", File(envFromExe, "wb"));
|
||||
run("$DMD -m$MODEL -run $EXTRA_FILES/printenv.d", File(envFromRun, "wb"));
|
||||
|
||||
const fromExe = readText(envFromExe).filterCompilerOutput;
|
||||
const fromRun = readText(envFromRun).filterCompilerOutput;
|
||||
if (fromExe != fromRun)
|
||||
{
|
||||
writefln("FromExe:");
|
||||
writeln("-----------");
|
||||
writeln(fromExe);
|
||||
writefln("FromRun:");
|
||||
writeln("-----------");
|
||||
writeln(fromRun);
|
||||
assert(0, "output from exe/run differ");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue