diff options
author | Björn Gustavsson <[email protected]> | 2016-12-09 10:23:38 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2016-12-09 10:23:38 +0100 |
commit | b29787dbcc53b4ab1b5bfedd1ad45708d0f99dc1 (patch) | |
tree | f2fbdc591e1741024a9b1d487860281719442659 /lib/compiler/test | |
parent | 53aa4605b8c23ec1cb7d5a79625db00ebdd63423 (diff) | |
parent | 8b0aff6608c42bf3c04381697b9ab57ffbd93456 (diff) | |
download | otp-b29787dbcc53b4ab1b5bfedd1ad45708d0f99dc1.tar.gz otp-b29787dbcc53b4ab1b5bfedd1ad45708d0f99dc1.tar.bz2 otp-b29787dbcc53b4ab1b5bfedd1ad45708d0f99dc1.zip |
Merge pull request #1273 from bjorng/bjorn/compiler/deterministic/ERL-310
Add option 'deterministic' for reproducible builds
OTP-14087
Diffstat (limited to 'lib/compiler/test')
-rw-r--r-- | lib/compiler/test/compile_SUITE.erl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/compiler/test/compile_SUITE.erl b/lib/compiler/test/compile_SUITE.erl index e2988b18dc..8c09414a52 100644 --- a/lib/compiler/test/compile_SUITE.erl +++ b/lib/compiler/test/compile_SUITE.erl @@ -105,6 +105,14 @@ file_1(Config) when is_list(Config) -> {ok,simple} = compile:file(Simple, [{eprof,beam_z}]), %Coverage + + %% Test option 'deterministic'. + {ok,simple} = compile:file(Simple, [deterministic]), + {module,simple} = c:l(simple), + [{version,_}] = simple:module_info(compile), + true = code:delete(simple), + false = code:purge(simple), + ok = file:set_cwd(Cwd), true = exists(Target), passed = run(Target, test, []), |