0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-07-24 10:25:42 -04:00

19 Commits

Author SHA1 Message Date
Cyrill Gorcunov
c2ea414eb3 nasm-t: do not strip newlines from output
Currently we strip newlines from files on read and write
procedures for better diff output, but as being pointed
by hpa@ this makes quite inconvenient to work with tests
in a manual mode.

Thus lets left outputs as is. We have to update all tests
with template outputs since by default output streams are
ending with newline.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-09-18 01:07:53 +03:00
Cyrill Gorcunov
2f8a50d11e nasm-t: add fixme about data reading
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-09-18 00:49:11 +03:00
Cyrill Gorcunov
f77ec1c803 nasm-t: no need to strip json files
The json library can handle newlines by self.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-09-18 00:49:11 +03:00
Cyrill Gorcunov
463600ac22 travis: nasm-t -- fix --error option
Write "expected" or "over" if requested.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-09-06 20:02:53 +03:00
H. Peter Anvin (Intel)
bf79786e89 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>
2020-08-27 13:06:08 -07:00
Cyrill Gorcunov
512c93dc42 travis: nasm-t -- add ability to specify error
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 19:11:52 +03:00
Cyrill Gorcunov
4b3ac4eefd travis: nasm-t -- add ability to disable test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 16:36:10 +03:00
Cyrill Gorcunov
63ccbf4f5f travis: nasm-t -- add ability to generate new tests
Just to not fill descriptor by hands every time.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-08-25 16:36:06 +03:00
Cyrill Gorcunov
33b5d21fbd test: nasm-t -- Make read buffer up to 4M
Need to implement read on demand but later.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2018-12-15 22:56:18 +03:00
Cyrill Gorcunov
e7da0b5455 test: nasm-t -- Reverse the comparision order
Comparing new and old data is inconvenient since
it rathe shows the reverse diff. Use straight
direction instead.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2018-12-15 12:02:37 +03:00
Cyrill Gorcunov
763cad619d test: nasm-t -- Move data reading out of cmp_std
Since the only purpose of cmp_std
is to compare outputs.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2018-12-15 12:00:16 +03:00
Cyrill Gorcunov
85261a2b57 test: Use NASM_TEST_RUN environment
To placate false positives in outputs which
writes nasm comment an signature into binary
form.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2018-11-24 17:06:57 +03:00
Cyrill Gorcunov
0f26c1ec54 test: nasm-t -- Add ability to pass environ variables to test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2018-11-11 21:43:46 +03:00
Cyrill Gorcunov
f2710ca114 test: nasm-t -- Skip descriptors without description
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2018-11-11 21:43:46 +03:00
Cyrill Gorcunov
7bb272d0b5 test: nasm-t -- Rework data read procedure
Actually it is still blockable, just tune it
the way to make riprel pass. Need to redesign
for handling big slabs of data.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2018-11-11 21:43:45 +03:00
Cyrill Gorcunov
502556c63d test: nasm-t -- Sort tests by name
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2018-11-11 21:43:45 +03:00
Cyrill Gorcunov
750bc50aa8 test: nasm-t -- Write text data in utf8 form
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2018-11-11 21:43:45 +03:00
Cyrill Gorcunov
dcf3937e92 test: nasm-t -- Use new syntax for update
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2018-10-17 23:36:43 +03:00
Cyrill Gorcunov
5453388940 test: travis -- Add initial support
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2018-10-17 21:40:14 +03:00