mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-21 09:19:31 +08:00
733cbb3197
Using hidden files are rather antisocial, and rather pointless in this particular context. Change .stdout and .stderr to simply stdout and stderr. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
33 lines
753 B
Perl
Executable File
33 lines
753 B
Perl
Executable File
#!/usr/bin/perl
|
|
|
|
@list = ('', 'ZMACRO', 'NMACRO', 'TMACRO', '1', '+1', '1 2', '1,2',
|
|
'foo', 'foo bar', '%', '+foo', '<<');
|
|
@tests = ('token', 'empty');
|
|
|
|
print ";Testname=test; Arguments=-fbin -oiftoken.txt; Files=stdout stderr iftoken.txt"
|
|
print "%define ZMACRO\n";
|
|
print "%define NMACRO 1\n";
|
|
print "%define TMACRO 1 2\n";
|
|
|
|
foreach $x (@list) {
|
|
print "\tdb 'N \"$x\":'\n";
|
|
foreach $t (@tests) {
|
|
print "%if$t $x\n";
|
|
print "\tdb ' $t'\n";
|
|
print "%else\n";
|
|
print "\tdb ' n$t'\n";
|
|
print "%endif\n";
|
|
}
|
|
print "\tdb 10\n";
|
|
|
|
print "\tdb 'C \"$x\":'\n";
|
|
foreach $t (@tests) {
|
|
print "%if$t $x ; With a comment!\n";
|
|
print "\tdb ' $t'\n";
|
|
print "%else\n";
|
|
print "\tdb ' n$t'\n";
|
|
print "%endif\n";
|
|
}
|
|
print "\tdb 10\n";
|
|
}
|