Commit graph

19 commits

Author SHA1 Message Date
Anonymous Maarten
8c717107dd
Emit an error when seeing an invalid condition code in a macro (nasm mode) (#316)
Some checks failed
Build / Build - Ubuntu (push) Failing after 4s
Build / Build - MSVC (push) Has been cancelled
Build / Build - macOS (push) Has been cancelled
make-check: check .errwarn file first if yasm failed
2026-07-28 17:44:34 -07:00
Peter Johnson
94ab1135a3 Remove $Id$ and RCSID() usage.
These are useless now that we're using git.
2011-08-19 10:43:16 -07:00
Peter Johnson
b5f0a4008c Fix #184: test -e is not portable (despite being in POSIX); use test -f instead.
svn path=/trunk/yasm/; revision=2226
2009-07-30 02:19:38 +00:00
Peter Johnson
d69ce714c1 Fix #177: Make check fails on CR/LF systems.
The diff on the hexdump output was not using -w.

svn path=/trunk/yasm/; revision=2204
2009-07-18 02:33:10 +00:00
Peter Johnson
00473ca981 Bite the bullet and convert tabs to spaces. Previously yasm's source has
been using a mix of tabs and 4 spaces to indent; this looks horrible if
tab size is ever not 8.  While I debated converting to tab-only indentation
that would have been a far higher impact to the source.

svn path=/trunk/yasm/; revision=1825
2007-04-22 03:32:46 +00:00
Peter Johnson
763687f8bd Unbreak out_test.sh; the previous commit caused an infinite loop.
svn path=/trunk/yasm/; revision=1743
2007-01-28 00:40:36 +00:00
Peter Johnson
bf6743d1d7 Fix #96 by setting the timestamp in the COFF header. VC2005's incremental linker uses the
timestamp to determine if the object file has been updated, so not setting it makes for
bad behavior (the object file gets updated, but when the executable is linked it uses the
older "internal" version).

To keep tests passing, check an environment variable (YASM_TEST_SUITE); if this exists, the
timestamp is set to 0.  Set this environment variable in out_test.sh.

svn path=/trunk/yasm/; revision=1742
2007-01-27 08:42:48 +00:00
Peter Johnson
9c4de0ffd2 Fix quoting error.
svn path=/trunk/yasm/; revision=1686
2006-11-16 07:19:23 +00:00
Peter Johnson
9f0e1eac23 out_test.sh: Fix reporting of non-error.
Patch submitted by: Samuel Thibault <samuel.thibault@ens-lyon.org>

svn path=/trunk/yasm/; revision=1676
2006-10-31 03:56:53 +00:00
Peter Johnson
d754e57ba7 Fix #86 by requiring '-' (e.g. "yasm -") to read from stdin, and reporting
an error if no files are specified (instead of defaulting to stdin).
While the old behavior mimiced GNU AS, the new behavior is far more common
amongst typical compilers (e.g. GCC), including NASM.

While I'm here, add support for '--' (e.g. "yasm -- -f").

svn path=/trunk/yasm/; revision=1659
2006-10-21 04:49:19 +00:00
Peter Johnson
9a1a43039a Actually use $ECHO_C in test shell scripts.
svn path=/trunk/yasm/; revision=1618
2006-09-16 05:48:10 +00:00
Peter Johnson
6aaa48cce1 Make out_test.sh smart about 0-byte errwarn output and don't require a
golden errwarn file in this case.  This allows us to remove around 150
0-byte .errwarn test files.

svn path=/trunk/yasm/; revision=1617
2006-09-16 05:43:41 +00:00
Michael Urman
68340f7ba7 Modify the output for 'make check' to be much less verbose, and thus
much easier to see the bad news when necessary. Thanks go to Peter for
updates to the C tests. Kudos to him having us send most of our tests
through a single shell script!

svn path=/trunk/yasm/; revision=1203
2005-03-16 05:26:35 +00:00
Peter Johnson
1a86c34026 * On most files: re-enable $IdPath$ as $Id$, and enable Id keyword expansion.
svn path=/trunk/yasm/; revision=1137
2004-09-04 01:24:57 +00:00
Peter Johnson
def825542c Convert test_hd.pl to test_hd.c, to remove one Perl dependency.
svn path=/trunk/yasm/; revision=1102
2004-03-14 22:25:18 +00:00
Peter Johnson
1e715b81f8 Put test suite file results into a separate "results" directory.
svn path=/trunk/yasm/; revision=811
2002-11-17 08:34:15 +00:00
Peter Johnson
9b744cb938 Run test input files through standard input instead of as input files to avoid
pathname changing issues when builddir != srcdir (previous workaround worked
for text files, but for more complex objfmts such as coff that embed the source
filename in the binary output file, we need to find a different way).

svn path=/trunk/yasm/; revision=771
2002-10-21 07:38:15 +00:00
Peter Johnson
e4988ea961 Make test scripts more portable by detecting echo line-ending features, using
fewer options for sed, and using a perl script for hexdump.  As a side effect,
hexdumps are more accurate (the hexdump util put * for as many multiples as
were output, whereas the perl script outputs a line for every byte, no matter
what).

svn path=/trunk/yasm/; revision=736
2002-10-04 07:23:11 +00:00
Peter Johnson
7b4d90d981 Create a common out_test.sh test script to be used by a variety of tests.
Rename objfmts/bin/tests/*.bin.hx to *.hex to fit better in the common usage.

svn path=/trunk/yasm/; revision=733
2002-10-03 19:08:13 +00:00
Renamed from modules/objfmts/bin/tests/objfmt_test.sh (Browse further)