diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2020-08-27 13:01:57 -0700 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2020-08-27 13:06:08 -0700 |
commit | bf79786e894ad16519e5374291205ebe71da07b8 (patch) | |
tree | 0039a1e4e04cee69c2c3d124aac70555c953e2b1 /travis | |
parent | 7497737aa2ee4cd2e4a8f2f6bafde7719980b488 (diff) | |
download | nasm-bf79786e894ad16519e5374291205ebe71da07b8.tar.gz nasm-bf79786e894ad16519e5374291205ebe71da07b8.tar.xz nasm-bf79786e894ad16519e5374291205ebe71da07b8.zip |
Add option to create reproducible output
We need the ability to produce consistent output for our own tests,
anyway, so make this a user-accessible feature. This was requested in
BR 3392635.
This obsoletes the NASM_TEST_RUN environment variable; simply use the
normal NASMENV environment variable instead.
The .obj tests in travis needed to be updated in order to remove the
rather pointless suffix " CONST" from the NASM signatures.
Reported-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'travis')
-rwxr-xr-x | travis/nasm-t.py | 2 | ||||
-rw-r--r-- | travis/test/alonesym-obj.obj.t | bin | 1161 -> 1155 bytes | |||
-rw-r--r-- | travis/test/br3392643.obj.t | bin | 349 -> 343 bytes | |||
-rw-r--r-- | travis/test/elif.o.t | bin | 230 -> 224 bytes | |||
-rw-r--r-- | travis/test/obj.o.t | bin | 480 -> 474 bytes |
5 files changed, 1 insertions, 1 deletions
diff --git a/travis/nasm-t.py b/travis/nasm-t.py index 02b145db..2470ad45 100755 --- a/travis/nasm-t.py +++ b/travis/nasm-t.py @@ -340,7 +340,7 @@ def exec_nasm(desc): opts = [args.nasm] + prepare_run_opts(desc) nasm_env = os.environ.copy() - nasm_env['NASM_TEST_RUN'] = 'y' + nasm_env['NASMENV'] = '--reproducible' desc_env = desc.get('environ') if desc_env: diff --git a/travis/test/alonesym-obj.obj.t b/travis/test/alonesym-obj.obj.t Binary files differindex 99ec34c4..aa25a5c9 100644 --- a/travis/test/alonesym-obj.obj.t +++ b/travis/test/alonesym-obj.obj.t diff --git a/travis/test/br3392643.obj.t b/travis/test/br3392643.obj.t Binary files differindex de1dafbb..28fbb387 100644 --- a/travis/test/br3392643.obj.t +++ b/travis/test/br3392643.obj.t diff --git a/travis/test/elif.o.t b/travis/test/elif.o.t Binary files differindex 60336dcd..89787192 100644 --- a/travis/test/elif.o.t +++ b/travis/test/elif.o.t diff --git a/travis/test/obj.o.t b/travis/test/obj.o.t Binary files differindex a91f3ad1..b3607882 100644 --- a/travis/test/obj.o.t +++ b/travis/test/obj.o.t |