From: j8takagi Date: Fri, 15 Feb 2019 14:54:54 +0000 (+0900) Subject: comet2monitorのテストを追加 X-Git-Tag: v0.5p5~3 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dd437b8524fb3182a6f8ef92f122407a5f34925;p=YACASL2.git comet2monitorのテストを追加 --- diff --git a/monitor/break.monitor b/monitor/break.monitor new file mode 100644 index 0000000..353a5d9 --- /dev/null +++ b/monitor/break.monitor @@ -0,0 +1,15 @@ +l as/sample/sum_10.o +d a 0 #18 +t a +b a #7 +c +c +c +c +c +c +c +c +c +c +c diff --git a/monitor/continue_hello.monitor b/monitor/continue_hello.monitor new file mode 100644 index 0000000..b11ad2b --- /dev/null +++ b/monitor/continue_hello.monitor @@ -0,0 +1,4 @@ +l as/sample/hello.o +d a 0 #22 +T a +c diff --git a/monitor/continue_sum10.monitor b/monitor/continue_sum10.monitor new file mode 100644 index 0000000..c387b82 --- /dev/null +++ b/monitor/continue_sum10.monitor @@ -0,0 +1,4 @@ +l as/sample/sum_10.o +d a 0 #18 +T a +c diff --git a/monitor/help.monitor b/monitor/help.monitor index a7b15f7..a1e2647 100644 --- a/monitor/help.monitor +++ b/monitor/help.monitor @@ -1,2 +1 @@ ? - diff --git a/monitor/revert_hello.monitor b/monitor/revert_hello.monitor new file mode 100644 index 0000000..22f5dd7 --- /dev/null +++ b/monitor/revert_hello.monitor @@ -0,0 +1,3 @@ +l as/sample/hello.o +d a 0 #18 +r 0 #22 diff --git a/test/system/Makefile b/test/system/Makefile index 26c5f55..1667d25 100644 --- a/test/system/Makefile +++ b/test/system/Makefile @@ -1,5 +1,5 @@ # 複数の子ディレクトリーでmakeを実行 -CMD = casl2_opt casl2_cmd casl2_err comet2_smoke comet2_opt comet2_cmd comet2_err casl2rev dumpword +CMD = casl2_opt casl2_cmd casl2_err comet2_smoke comet2_opt comet2_cmd comet2_err casl2rev dumpword comet2monitor define make_dirs $(foreach d,$1,$(MAKE) -sC $d $2) endef diff --git a/test/system/comet2monitor/Define.mk b/test/system/comet2monitor/Define.mk new file mode 120000 index 0000000..286e789 --- /dev/null +++ b/test/system/comet2monitor/Define.mk @@ -0,0 +1 @@ +/home/kazubito/yacasl2/test/Template/Define.mk \ No newline at end of file diff --git a/test/system/comet2monitor/Makefile b/test/system/comet2monitor/Makefile new file mode 120000 index 0000000..91e7c2e --- /dev/null +++ b/test/system/comet2monitor/Makefile @@ -0,0 +1 @@ +/home/kazubito/yacasl2/test/Template/Group.mk \ No newline at end of file diff --git a/test/system/comet2monitor/Test.mk b/test/system/comet2monitor/Test.mk new file mode 120000 index 0000000..ce1a5da --- /dev/null +++ b/test/system/comet2monitor/Test.mk @@ -0,0 +1 @@ +/home/kazubito/yacasl2/test/Template/Test.mk \ No newline at end of file diff --git a/test/system/comet2monitor/help/0.txt b/test/system/comet2monitor/help/0.txt new file mode 100644 index 0000000..cae706c --- /dev/null +++ b/test/system/comet2monitor/help/0.txt @@ -0,0 +1,15 @@ +COMET II machine code monitor. Type ? for help. +(comet2 monitor) ? +b[reak] -- Manipulate Breakpoints. See details, `b ?'. +c[ontinue] -- Continue running your program. +d[ump] -- Display memory dump. `d[ump] a[uto]/n[oauto]' set auto/noauto display. +l[oad] -- Load object from a file to the memory. `l[oad]
' if address is omitted, load to address 0. +n[ext] -- Go next instruction. +q[uit] -- Quit running your program. +reset -- Reset the system. +r[everse] -- Disassemble memory. `r[everse] . +s[ave] -- Save object from the memory to a file. `s[ave] [ []]' if and is omitted, save the whole memory. if is omitted, save the memory after . +t[race] -- Display CPU register. `t[race] a[uto]/n[oauto]' set auto/noauto display. +T[race] -- Display CPU register as logical value. `t[race] a[uto]/n[oauto]' set auto/noauto display. +?/h[elp] -- Display this help. +(comet2 monitor) \ No newline at end of file diff --git a/test/system/comet2monitor/help/Makefile b/test/system/comet2monitor/help/Makefile new file mode 100644 index 0000000..b6dac59 --- /dev/null +++ b/test/system/comet2monitor/help/Makefile @@ -0,0 +1,2 @@ +include ../Define.mk +include ../Test.mk diff --git a/test/system/comet2monitor/help/cmd b/test/system/comet2monitor/help/cmd new file mode 100755 index 0000000..98598c1 --- /dev/null +++ b/test/system/comet2monitor/help/cmd @@ -0,0 +1 @@ +cd ../../../.. && ./comet2monitor