[Commits] Rev 3542: makes mi_test_all.sh & ma_test_all.sh working (MDEV-285) in file:///home/bell/maria/bzr/work-maria-5.5-MDEV-285/

sanja at montyprogram.com sanja at montyprogram.com
Tue Sep 25 13:45:14 EEST 2012


At file:///home/bell/maria/bzr/work-maria-5.5-MDEV-285/

------------------------------------------------------------
revno: 3542
revision-id: sanja at montyprogram.com-20120925104511-okm43niqk8jkf9vc
parent: wlad at montyprogram.com-20120924224654-hsgvavki1lyh6ipz
committer: sanja at montyprogram.com
branch nick: work-maria-5.5-MDEV-285
timestamp: Tue 2012-09-25 13:45:11 +0300
message:
  makes mi_test_all.sh & ma_test_all.sh working (MDEV-285)
-------------- next part --------------
=== modified file 'storage/maria/CMakeLists.txt'
--- a/storage/maria/CMakeLists.txt	2012-05-22 09:04:32 +0000
+++ b/storage/maria/CMakeLists.txt	2012-09-25 10:45:11 +0000
@@ -68,7 +68,7 @@ SET_TARGET_PROPERTIES(aria_dump_log PROP
 MYSQL_ADD_EXECUTABLE(aria_pack maria_pack.c COMPONENT Server)
 TARGET_LINK_LIBRARIES(aria_pack aria)
 
-IF(WITH_UNIT_TESTS AND FALSE)
+IF(WITH_UNIT_TESTS)
   ADD_EXECUTABLE(ma_test1 ma_test1.c)
   TARGET_LINK_LIBRARIES(ma_test1 aria)
 

=== modified file 'storage/maria/ma_test_all.sh'
--- a/storage/maria/ma_test_all.sh	2008-01-08 20:21:28 +0000
+++ b/storage/maria/ma_test_all.sh	2012-09-25 10:45:11 +0000
@@ -7,13 +7,22 @@
 #
 #
 
+PRG='unittest/ma_test_all-t'
+UTST='../../unittest/unit.pl'
+
+if [ ! -x $PRG ] ; then
+  DIR=`dirname $0`
+  PRG="$DIR/unittest/ma_test_all-t"
+  UTST="$DIR/../../unittest/unit.pl"
+fi
+
 if test -n "$1"; then
 
   # unit.pl can't pass options to ma_test_all-t, so if anything
   # was passed as an argument, assume the purpose was to pass
   # them to ma_test_all-t and call it directly
 
-  unittest/ma_test_all-t $@
+  $PRG $@
 else
-  perl ../../unittest/unit.pl run unittest/ma_test_all-t
+  perl $UTST run $PRG
 fi

=== modified file 'storage/myisam/CMakeLists.txt'
--- a/storage/myisam/CMakeLists.txt	2012-05-22 09:04:32 +0000
+++ b/storage/myisam/CMakeLists.txt	2012-09-25 10:45:11 +0000
@@ -46,7 +46,7 @@ TARGET_LINK_LIBRARIES(myisamlog myisam)
 MYSQL_ADD_EXECUTABLE(myisampack myisampack.c COMPONENT Server)
 TARGET_LINK_LIBRARIES(myisampack myisam)
 
-IF(WITH_UNIT_TESTS AND FALSE)
+IF(WITH_UNIT_TESTS)
   ADD_EXECUTABLE(mi_test1 mi_test1.c)
   TARGET_LINK_LIBRARIES(mi_test1 myisam)
 

=== modified file 'storage/myisam/mi_test_all.sh'
--- a/storage/myisam/mi_test_all.sh	2011-10-19 19:45:18 +0000
+++ b/storage/myisam/mi_test_all.sh	2012-09-25 10:45:11 +0000
@@ -99,7 +99,7 @@ if test -f mi_test1$MACH ; then suffix=$
 # check of myisampack / myisamchk
 ./myisampack$suffix --force -s test1
 # Ignore error for index file
-./myisamchk$suffix -es test1 2>&1 >& /dev/null
+./myisamchk$suffix -es test1 2>&1 > /dev/null
 ./myisamchk$suffix -rqs test1
 ./myisamchk$suffix -es test1
 ./myisamchk$suffix -rs test1



More information about the commits mailing list