path: root/travis
diff options
authorH. Peter Anvin (Intel) <hpa@zytor.com>2020-08-27 13:01:57 -0700
committerH. Peter Anvin (Intel) <hpa@zytor.com>2020-08-27 13:06:08 -0700
commitbf79786e894ad16519e5374291205ebe71da07b8 (patch)
tree0039a1e4e04cee69c2c3d124aac70555c953e2b1 /travis
parent7497737aa2ee4cd2e4a8f2f6bafde7719980b488 (diff)
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')
-rw-r--r--travis/test/alonesym-obj.obj.tbin1161 -> 1155 bytes
-rw-r--r--travis/test/br3392643.obj.tbin349 -> 343 bytes
-rw-r--r--travis/test/elif.o.tbin230 -> 224 bytes
-rw-r--r--travis/test/obj.o.tbin480 -> 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
index 99ec34c4..aa25a5c9 100644
--- a/travis/test/alonesym-obj.obj.t
+++ b/travis/test/alonesym-obj.obj.t
Binary files differ
diff --git a/travis/test/br3392643.obj.t b/travis/test/br3392643.obj.t
index de1dafbb..28fbb387 100644
--- a/travis/test/br3392643.obj.t
+++ b/travis/test/br3392643.obj.t
Binary files differ
diff --git a/travis/test/elif.o.t b/travis/test/elif.o.t
index 60336dcd..89787192 100644
--- a/travis/test/elif.o.t
+++ b/travis/test/elif.o.t
Binary files differ
diff --git a/travis/test/obj.o.t b/travis/test/obj.o.t
index a91f3ad1..b3607882 100644
--- a/travis/test/obj.o.t
+++ b/travis/test/obj.o.t
Binary files differ