ref: da6fca55d37c4e21f589dce2575b6da527382b4e
parent: ce102b50f7bdb2abb095b01b92882a90744f6490
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Mar 12 17:40:51 EDT 2018
[tests/nm] Add moretests for z80
--- /dev/null
+++ b/tests/nm/execute/0006-z80-o.sh
@@ -1,0 +1,33 @@
+#!/bin/sh
+
+set -e
+
+tmp1=`mktemp`
+tmp2=`mktemp`
+#trap "rm -f $tmp1 $tmp2" 0 2 3
+
+nm -t o z80.out > $tmp1
+
+cat <<! > $tmp2
+0000000000000000 b .bss
+0000000000000000 d .data
+0000000000000000 t .text
+0000000000000001 B averylongbss
+0000000000000001 D averylongdata
+0000000000000001 T averylongtext
+0000000000000000 B bss1
+0000000000000002 b bss3
+0000000000000012 C bss4
+0000000000000022 C bss5
+0000000000000000 D data1
+0000000000000002 d data3
+0000000000000012 C data4
+0000000000000022 C data5
+0000000000000000 T text1
+0000000000000002 t text3
+0000000000000012 C text4
+0000000000000022 C text5
+ U text6
+!
+
+diff $tmp1 $tmp2
--- /dev/null
+++ b/tests/nm/execute/0007-z80-d.sh
@@ -1,0 +1,33 @@
+#!/bin/sh
+
+set -e
+
+tmp1=`mktemp`
+tmp2=`mktemp`
+trap "rm -f $tmp1 $tmp2" 0 2 3
+
+nm -t d z80.out > $tmp1
+
+cat <<! > $tmp2
+0000000000000000 b .bss
+0000000000000000 d .data
+0000000000000000 t .text
+0000000000000001 B averylongbss
+0000000000000001 D averylongdata
+0000000000000001 T averylongtext
+0000000000000000 B bss1
+0000000000000002 b bss3
+0000000000000010 C bss4
+0000000000000018 C bss5
+0000000000000000 D data1
+0000000000000002 d data3
+0000000000000010 C data4
+0000000000000018 C data5
+0000000000000000 T text1
+0000000000000002 t text3
+0000000000000010 C text4
+0000000000000018 C text5
+ U text6
+!
+
+diff $tmp1 $tmp2
--- /dev/null
+++ b/tests/nm/execute/0008-z80-x.sh
@@ -1,0 +1,33 @@
+#!/bin/sh
+
+set -e
+
+tmp1=`mktemp`
+tmp2=`mktemp`
+trap "rm -f $tmp1 $tmp2" 0 2 3
+
+nm -t x z80.out > $tmp1
+
+cat <<! > $tmp2
+0000000000000000 b .bss
+0000000000000000 d .data
+0000000000000000 t .text
+0000000000000001 B averylongbss
+0000000000000001 D averylongdata
+0000000000000001 T averylongtext
+0000000000000000 B bss1
+0000000000000002 b bss3
+000000000000000a C bss4
+0000000000000012 C bss5
+0000000000000000 D data1
+0000000000000002 d data3
+000000000000000a C data4
+0000000000000012 C data5
+0000000000000000 T text1
+0000000000000002 t text3
+000000000000000a C text4
+0000000000000012 C text5
+ U text6
+!
+
+diff $tmp1 $tmp2