projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring TEST.mk
[YACASL2.git]
/
test
/
integration
/
casl2
/
opt_opterr
/
Makefile
diff --git
a/test/integration/casl2/opt_opterr/Makefile
b/test/integration/casl2/opt_opterr/Makefile
index
8167bdf
..
4e2f24e
100644
(file)
--- a/
test/integration/casl2/opt_opterr/Makefile
+++ b/
test/integration/casl2/opt_opterr/Makefile
@@
-1,6
+1,10
@@
-# 無効な-zオプションで、1から10まで加算する
sum_10
.caslを実行
+# 無効な-zオプションで、1から10まで加算する
opt
.caslを実行
include ../CMD.mk # YACASL2DIR, CASL2
include ../CMD.mk # YACASL2DIR, CASL2
-include ../
sum_10_s/CMD.mk
# ASDIR, ASFILE
+include ../
opt_s/CMD.mk
# ASDIR, ASFILE
CASL2FLAG = -z
CASL2FLAG = -z
+MAINTARGET_OVERRIDE = 1
CMD = $(CASL2) $(CASL2FLAG) $(ASFILE)
include ../TEST.mk
CMD = $(CASL2) $(CASL2FLAG) $(ASFILE)
include ../TEST.mk
+0.txt 1.txt:
+ @$(CMD) >>$@ 2>$(ERR_FILE); \
+ if test -s $(ERR_FILE); then tail -1 $(ERR_FILE) >>$@; else rm -f $(ERR_FILE); fi