$(CMD) >>$@ 2>$(ERRFILE); \
if test -s $(ERRFILE); then cat err.txt >>$@; else rm -f $(ERRFILE); fi
diff.txt: 1.txt
- @-diff 0.txt 1.txt >$@ 2>&1
+ @-diff -c 0.txt 1.txt >$@ 2>&1
report.txt: diff.txt
@echo -n "$(UNITNAME): Test " >$@; \
if test ! -s $^; then echo -n "Success " >>$@; rm -f $^; else echo -n "Failure " >>$@; fi; \
$(CMD) >>$@ 2>$(ERRFILE); \
if test -s $(ERRFILE); then cat err.txt >>$@; else rm -f $(ERRFILE); fi
diff.txt: 1.txt
- @-diff 0.txt 1.txt >$@ 2>&1
+ @-diff -c 0.txt 1.txt >$@ 2>&1
report.txt: diff.txt
@echo -n "$(UNITNAME): Test " >$@; \
if test ! -s $^; then echo -n "Success " >>$@; rm -f $^; else echo -n "Failure " >>$@; fi; \
YACASL2DIR=../../../..
UNITNAME = `pwd | xargs basename`
-OBJFILE = $(UNITNAME).o
+OBJFILE = a.o
CASL2 = $(YACASL2DIR)/casl2
COMET2 = $(YACASL2DIR)/comet2
CMD = $(COMET2) $(COMET2FLAG) $(OBJFILE)
done
$(LOGFILE):
@for target in $(TESTS); do \
- cat <$$target/report.txt >>$(LOGFILE) 2>/dev/null || echo "Failure:" $$target "no report" >>$(LOGFILE); \
+ if test -s $^; then cat <$$target/report.txt >>$(LOGFILE); else echo "Failure:" $$target "no report" >>$(LOGFILE); fi; \
done
report: $(LOGFILE)
@success=`grep "Success" $(LOGFILE) | wc -l`; \
cleanall: clean
@rm -f 0.txt $(OBJFILE)
$(OBJFILE): $(CASL2) $(ASFILE)
- @$(CASL2) $(CASL2FLAG) -O$(OBJFILE) $(ASFILE) 2>$(ERRFILE)
+ @$(CASL2) $(CASL2FLAG) -O $(ASFILE) 2>$(ERRFILE)
0.txt 1.txt: $(COMET2) $(OBJFILE)
@echo $(CMD) >$@; \
$(CMD) >>$@ 2>$(ERRFILE); \
if test -s $(ERRFILE); then cat err.txt >>$@; else rm -f $(ERRFILE); fi
diff.txt: 1.txt
- @-diff 0.txt 1.txt >$@ 2>&1
+ @-diff -c 0.txt 1.txt >$@ 2>&1
report.txt: diff.txt
@echo -n "$(UNITNAME): Test " >$@; \
if test ! -s $^; then echo -n "Success " >>$@; rm -f $^; else echo -n "Failure " >>$@; fi; \
-../../../../comet2 abs_call.o
+../../../../comet2 a.o
12
12
1
-../../../../comet2 adda0.o
+../../../../comet2 a.o
-../../../../comet2 adda1.o
+../../../../comet2 a.o
-../../../../comet2 adda_overflow.o
+../../../../comet2 a.o
-../../../../comet2 addl.o
+../../../../comet2 a.o
-../../../../comet2 addl_overflow.o
+../../../../comet2 a.o
-../../../../comet2 and0.o
+../../../../comet2 a.o
-../../../../comet2 and1.o
+../../../../comet2 a.o
-../../../../comet2 and2.o
+../../../../comet2 a.o
-../../../../comet2 and3.o
+../../../../comet2 a.o
-../../../../comet2 binout.o
+../../../../comet2 a.o
0
1
100111001101
-../../../../comet2 call0.o
+../../../../comet2 a.o
-../../../../comet2 call1.o
+../../../../comet2 a.o
-../../../../comet2 call2.o
+../../../../comet2 a.o
-../../../../comet2 count_call.o
+../../../../comet2 a.o
0
1
1
-../../../../comet2 cpa1.o
+../../../../comet2 a.o
-../../../../comet2 dc_overflow.o
+../../../../comet2 a.o
-../../../../comet2 dc_spc.o
+../../../../comet2 a.o
-../../../../comet2 divl0_call.o
+../../../../comet2 a.o
--------------------
100
0
-../../../../comet2 divl1_call.o
+../../../../comet2 a.o
--------------------
100
0
-../../../../comet2 ds_0.o
+../../../../comet2 a.o
-../../../../comet2 fib_outl.o
+../../../../comet2 a.o
0
1
1
-../../../../comet2 floatedit.o
+../../../../comet2 a.o
input error!
input error!
input error!
+++ /dev/null
-../../../../comet2 hanoi.o
-from A to C
-from A to B
-from C to B
-from A to C
-from B to A
-from B to C
-from A to C
+++ /dev/null
-include ../CMD.mk # YACASL2DIR, CASL2
-ASDIR = $(YACASL2DIR)/as/FUNC
-ASFILE = $(ASDIR)/hanoi.casl
-include ../TEST.mk
-../../../../comet2 hello.o
+../../../../comet2 a.o
Hello, World!
-../../../../comet2 iotest.o
+../../../../comet2 a.o
LET'S START. TYPE IN
YOU TYPED
aaaaaaaaaaaaaaaaaaaa
-../../../../comet2 lad0.o
+../../../../comet2 a.o
-../../../../comet2 lad1.o
+../../../../comet2 a.o
-../../../../comet2 lad2.o
+../../../../comet2 a.o
-../../../../comet2 lad3.o
+../../../../comet2 a.o
-../../../../comet2 ld0.o
+../../../../comet2 a.o
-../../../../comet2 ld1.o
+../../../../comet2 a.o
-../../../../comet2 ld2.o
+../../../../comet2 a.o
-../../../../comet2 ld3.o
+../../../../comet2 a.o
-../../../../comet2 ld4.o
+../../../../comet2 a.o
-../../../../comet2 ld5.o
+../../../../comet2 a.o
-../../../../comet2 ld_loop.o
+../../../../comet2 a.o
-../../../../comet2 literal_spc.o
+../../../../comet2 a.o
-../../../../comet2 literalstr.o
+../../../../comet2 a.o
-../../../../comet2 minim_call.o
+../../../../comet2 a.o
-39
-../../../../comet2 -M640 mula1_call.o
+../../../../comet2 -M640 a.o
--------------------
0
0
-../../../../comet2 mull0_call.o
+../../../../comet2 a.o
--------------------
0
0
-../../../../comet2 mull1_call.o
+../../../../comet2 a.o
--------------------
0
0
-../../../../comet2 out0.o
+../../../../comet2 a.o
0
-../../../../comet2 out1.o
+../../../../comet2 a.o
aaaa
bc
asqwerty111111.
-../../../../comet2 outa_call.o
+../../../../comet2 a.o
0
1
2
-../../../../comet2 outb_call.o
+../../../../comet2 a.o
0000000000000000
0000000000000001
0000000000000010
-../../../../comet2 outd_q15_call.o
+../../../../comet2 a.o
0.999969482421875
0.5
0.25
-../../../../comet2 outl_call.o
+../../../../comet2 a.o
0
1
2
-../../../../comet2 ptn1.o
+../../../../comet2 a.o
1111111111100000
-../../../../comet2 ptn2.o
+../../../../comet2 a.o
0000000000011111
-../../../../comet2 ptn3.o
+../../../../comet2 a.o
0000000000100000
-../../../../comet2 ptn4.o
+../../../../comet2 a.o
1111100000011111
-../../../../comet2 pushpop.o
+../../../../comet2 a.o
-../../../../comet2 rev_call.o
+../../../../comet2 a.o
12345
54321
-../../../../comet2 sla2.o
+../../../../comet2 a.o
-../../../../comet2 sra2.o
+../../../../comet2 a.o
-../../../../comet2 sra3.o
+../../../../comet2 a.o
-../../../../comet2 sra4.o
+../../../../comet2 a.o
-../../../../comet2 st0.o
+../../../../comet2 a.o
-../../../../comet2 st1.o
+../../../../comet2 a.o
-../../../../comet2 -T sum_10_T.o
+../../../../comet2 -T a.o
Executing machine codes
#0000: Register::::
-../../../../comet2 -tdh sum_10_h.o
+../../../../comet2 -tdh a.o
Usage: ../../../../comet2 [-tTdh] [-M <memorysize>] [-C <clocks>] FILE
-../../../../comet2 -s sum_10_opterr.o
+../../../../comet2 -s a.o
../../../../comet2: invalid option -- s
Usage: ../../../../comet2 [-tTdh] [-M <memorysize>] [-C <clocks>] FILE
-../../../../comet2 -t sum_10_t.o
+../../../../comet2 -t a.o
Executing machine codes
#0000: Register::::
-../../../../comet2 -td sum_10_td.o
+../../../../comet2 -td a.o
Executing machine codes
#0000: Register::::
-../../../../comet2 sum_call.o
+../../../../comet2 a.o
65341
-../../../../comet2 summary.o
+../../../../comet2 a.o
*
* * * *
* * * * * * *
-../../../../comet2 svc2.o
+../../../../comet2 a.o
0
-../../../../comet2 svc2_out.o
+../../../../comet2 a.o
abcd
-../../../../comet2 xor0.o
+../../../../comet2 a.o
-../../../../comet2 xor1.o
+../../../../comet2 a.o
-../../../../comet2 xor3.o
+../../../../comet2 a.o
-../../../../comet2 xor4.o
+../../../../comet2 a.o
-../../../../comet2 xor5.o
+../../../../comet2 a.o
$(TESTSH): ../HEX.txt
@xargs -n1 echo "$(DUMPWORD) $(DUMPWORDFLAG) " <$^ >$@
diff.txt: 1.txt
- @-diff 0.txt 1.txt >$@ 2>&1
+ @-diff -c 0.txt 1.txt >$@ 2>&1
report.txt: diff.txt
@echo -n "$(UNITNAME): Test " >$@; \
if test ! -s $^; then echo -n "Success " >>$@; rm -f $^; else echo -n "Failure " >>$@; fi; \
0.txt 1.txt: a.out
@./a.out >$@ 2>&1
diff.txt: 1.txt
- @-diff 0.txt 1.txt >$@ 2>&1
+ @-diff -c 0.txt 1.txt >$@ 2>&1
report.txt: diff.txt
@echo -n "$(UNITNAME): Test " >$@; \
if test ! -s $^; then echo -n "Success " >>$@; rm -f $^; else echo -n "Failure " >>$@; fi; \