projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CASL2LIBの状態が不正になっていたのを修正
[YACASL2.git]
/
test
/
system
/
casl2
/
Define_test.mk
diff --git
a/test/system/casl2/Define_test.mk
b/test/system/casl2/Define_test.mk
index
78394cb
..
c3508ca
100644
(file)
--- a/
test/system/casl2/Define_test.mk
+++ b/
test/system/casl2/Define_test.mk
@@
-16,11
+16,10
@@
endef
# テスト実行の経過時間を、ファイルに出力して表示
# 引数は、テスト名、コマンドファイル、出力ファイル
# テスト実行の経過時間を、ファイルに出力して表示
# 引数は、テスト名、コマンドファイル、出力ファイル
-# 用例: $(call time_cmd,
name,
file_cmd,file_out)
+# 用例: $(call time_cmd,file_cmd,file_out)
define time_cmd
define time_cmd
- $(call chk_file_notext,$2)
- $(CHMOD) u+x $2
- $(TIME) -f"$1: %E" -o $3 ./$2 >$(DEV_NULL) 2>&1
+ if test ! -x $1; then $(CHMOD) u+x $1; fi
+ ($(TIME) ./$1 1>$(DEV_NULL) 2>$(DEV_NULL)) 2>&1 | $(GREP) '^real' >$2
endef
# テスト実行コマンド。引数は、コマンドファイル、出力ファイル、エラーファイル
endef
# テスト実行コマンド。引数は、コマンドファイル、出力ファイル、エラーファイル
@@
-28,8
+27,7
@@
endef
# エラー発生時は、エラー出力を出力ファイルとエラーファイルに保存。
# 用例: $(call exec_cmd,file_cmd,file_out,file_err)
define exec_cmd
# エラー発生時は、エラー出力を出力ファイルとエラーファイルに保存。
# 用例: $(call exec_cmd,file_cmd,file_out,file_err)
define exec_cmd
- $(call chk_file_notext,$1)
- $(CHMOD) u+x $1
+ if test ! -x $1; then $(CHMOD) u+x $1; fi
./$1 >>$2 2>$3
if test -s $3; then $(CAT) $3 >>$2; fi
$(call rm_null,$3)
./$1 >>$2 2>$3
if test -s $3; then $(CAT) $3 >>$2; fi
$(call rm_null,$3)
@@
-63,7
+61,6
@@
endef
# 引数は、対象ファイル群、出力ファイル
# 用例: $(call report_files,list_file_target,file_out)
define report_files
# 引数は、対象ファイル群、出力ファイル
# 用例: $(call report_files,list_file_target,file_out)
define report_files
- $(call chk_file_ext,$2)
$(foreach tfile,$1,$(call report_file,$(tfile),$2))
endef
$(foreach tfile,$1,$(call report_file,$(tfile),$2))
endef