Skip to content
  • Marko Makela's avatar
    e3488700
    Re-apply most part of r8740, which was reverted in r8741. · e3488700
    Marko Makela authored
    We will not rename the tests in --suite=innodb yet, because
    some of the test names may occur in QA tracking systems,
    and the tests are tracked by name.
    
    Bug#19458208 73623: REMOVE REDUNDANCY FROM INNODB TEST FILE NAMES
    
    Most files were renamed by the following Bourne Again shell (bash)
    script that removes the test suite name prefix and replaces - with _
    in test names:
    
    for s in mysql-test/suite/*innodb*
    do
    	S="${s##*/}"
    	for t in "$s/t/$S"[-_]*.test
    	do
    		ST="${t%/t/*}"
    		St="${t#*/t/}"
    		TT="${t#*/t/$S?}"
    		T="${St%.test}"
    		U="$(echo "${TT%.test}"|tr - _)"
    		bzr mv $ST/t/{$T,$U}-master.opt
    		bzr mv $ST/r/{$T,$U}.result
    		bzr mv $ST/t/{$T,$U}.test
    	done
    done
    
    Some further cleanup was performed manually. Some suites contained
    tests that started with innodb_, not with the full suite name.
    
    Approved by Sunny Bains and Erlend Dahl
    e3488700
    Re-apply most part of r8740, which was reverted in r8741.
    Marko Makela authored
    We will not rename the tests in --suite=innodb yet, because
    some of the test names may occur in QA tracking systems,
    and the tests are tracked by name.
    
    Bug#19458208 73623: REMOVE REDUNDANCY FROM INNODB TEST FILE NAMES
    
    Most files were renamed by the following Bourne Again shell (bash)
    script that removes the test suite name prefix and replaces - with _
    in test names:
    
    for s in mysql-test/suite/*innodb*
    do
    	S="${s##*/}"
    	for t in "$s/t/$S"[-_]*.test
    	do
    		ST="${t%/t/*}"
    		St="${t#*/t/}"
    		TT="${t#*/t/$S?}"
    		T="${St%.test}"
    		U="$(echo "${TT%.test}"|tr - _)"
    		bzr mv $ST/t/{$T,$U}-master.opt
    		bzr mv $ST/r/{$T,$U}.result
    		bzr mv $ST/t/{$T,$U}.test
    	done
    done
    
    Some further cleanup was performed manually. Some suites contained
    tests that started with innodb_, not with the full suite name.
    
    Approved by Sunny Bains and Erlend Dahl
Loading