Hi all,
Last week of time I was worked for creating two script files which used to
convert test from the source files. One script for the svn users and the
other script for git users. Here I used my experience on test/code
separation by manually.
You can find the scripts in,
git -
https://github.com/ganathr/ofbiz/blob/trunk/old2new-svn.shsvn -
https://github.com/ganathr/ofbiz/blob/trunk/old2new-svn.shIn creating these scripts I used Adam's script which he suppose to test/code
separation.
Beyond his script I thought of not to have the test folder in the tests,
which is already in the src/test folder. In doing this I had to do some path
fixing, package renaming etc. in some files. You can see those changes in
the middle and the latter part of the script. Other than that I had to
manually do some changes to some files which you can see in the first half
of the script.
In creating different script for svn and git was a bit challenge for me.
First I created the git script and use to convert the current apache/ofbiz
trunk to test/code separated version. After test/code separating the trunk I
try to build it and after fixing some partial errors in the code by fixing
the script, I was able to build it. Then try to run the test cases and all
the test cases passed except the current trunk test failure.
Then I worked on the svn script and I had to do some major changes to the
git script to make it possible to separate tests and code in the under
subversion. This helped me to understand the difference between git and svn.
After came up with a good script I try to build the code and run the test
cases. The trunk build successfully and all the test passed (Here I used
older version of the svn trunk).
You can try them out and let me know the results for your infrastructure.
--
thanks
Ganath