]> j8takagi.net Git Repository - YACASL2.git/commitdiff
システムテストを修正 v0.1p22
authorj8takagi <j8takagi@nifty.com>
Sat, 5 Mar 2011 04:03:43 +0000 (13:03 +0900)
committerj8takagi <j8takagi@nifty.com>
Sat, 5 Mar 2011 04:03:43 +0000 (13:03 +0900)
test/system/casl2/Test.mk
test/system/comet2/Test.mk
test/system/comet2/opt_opterr/0.txt
test/system/comet2/opt_opterr/cmd
test/system/dumpword/Test.mk

index 11d40650ff543b58809558151006d9c51f2316eb..ac0fbb75c9660e693fcdd739d1f7536291ff46a0 100644 (file)
@@ -49,7 +49,7 @@ define exec_cmd
     if test ! -x $1; then $(CHMOD) u+x $1; fi
     ./$1 >>$2 2>$3
     if test -s $3; then $(CAT) $3 >>$2; fi
-    $(SED) -i '' -e "s%$(CURRDIR)%\$$PWD%g" $2
+    $(CP) $2 $2.tmp && $(SED) -e "s%$(CURRDIR)%\$$PWD%g" $2.tmp >$2 && $(RM) $2.tmp
     $(call rm_null,$3)
 endef
 
index 11d40650ff543b58809558151006d9c51f2316eb..ac0fbb75c9660e693fcdd739d1f7536291ff46a0 100644 (file)
@@ -49,7 +49,7 @@ define exec_cmd
     if test ! -x $1; then $(CHMOD) u+x $1; fi
     ./$1 >>$2 2>$3
     if test -s $3; then $(CAT) $3 >>$2; fi
-    $(SED) -i '' -e "s%$(CURRDIR)%\$$PWD%g" $2
+    $(CP) $2 $2.tmp && $(SED) -e "s%$(CURRDIR)%\$$PWD%g" $2.tmp >$2 && $(RM) $2.tmp
     $(call rm_null,$3)
 endef
 
index 68ca826e57a041808062fcf5fb2b8973c21a8bd3..b4b0041b0c5be0c938cb648e7740348d92c0e139 100644 (file)
@@ -1,2 +1 @@
-comet2: invalid option -- z
 Usage: ../../../../comet2 [-tTdh] [-M <MEMORYSIZE>] [-C <CLOCKS>] FILE
index 6b9a8893dc249ebd4215a296b6148fc31e450a59..4ba1f0679aa54e29d2a38674250555633d7d6f60 100755 (executable)
@@ -1,3 +1,3 @@
 ../../../../casl2 -O ../../../../as/sum_10.casl
-../../../../comet2 -z a.o 2>&1
+../../../../comet2 -z a.o 2>&1 | tail -1 1>&2
 rm -f a.o
index 11d40650ff543b58809558151006d9c51f2316eb..ac0fbb75c9660e693fcdd739d1f7536291ff46a0 100644 (file)
@@ -49,7 +49,7 @@ define exec_cmd
     if test ! -x $1; then $(CHMOD) u+x $1; fi
     ./$1 >>$2 2>$3
     if test -s $3; then $(CAT) $3 >>$2; fi
-    $(SED) -i '' -e "s%$(CURRDIR)%\$$PWD%g" $2
+    $(CP) $2 $2.tmp && $(SED) -e "s%$(CURRDIR)%\$$PWD%g" $2.tmp >$2 && $(RM) $2.tmp
     $(call rm_null,$3)
 endef