From: Lars Schneider <redacted>
Hi,
this mini series enables SVN tests on Linux. Installing the Perl SVN libraries
was not that straight forward on OSX and therefore I skipped it (plus the OS X
tests take quite some time already).
The most notable change is the rename of two SVN test cases. I did that to
identify tests that need to run sequentially using prove [1]. Is this an
acceptable pattern? If yes, then I will document it in t/README.
Thanks,
Lars
[1] https://github.com/Perl-Toolchain-Gang/Test-Harness/pull/5
Lars Schneider (2):
travis-ci: enable Git SVN tests t91xx on Linux
travis-ci: enable sequential test execution for t9113 and 9126
.travis.yml | 4 +++-
...-svn-dcommit-new-file.sh => t9113-git-svn-dcommit-new-file.seq.sh} | 0
...ctory.sh => t9126-git-svn-follow-deleted-readded-directory.seq.sh} | 0
3 files changed, 3 insertions(+), 1 deletion(-)
rename t/{t9113-git-svn-dcommit-new-file.sh => t9113-git-svn-dcommit-new-file.seq.sh} (100%)
rename t/{t9126-git-svn-follow-deleted-readded-directory.sh => t9126-git-svn-follow-deleted-readded-directory.seq.sh} (100%)
--
2.5.1
From: Lars Schneider <redacted>
Install the "git-svn" package to make the Perl SVN libraries available
to the Git SVN tests on Travis-CI Linux build machines.
Signed-off-by: Lars Schneider <redacted>
---
.travis.yml | 1 +
1 file changed, 1 insertion(+)
From: Lars Schneider <redacted>
Enable t9113 and 9126 by defining the SVNSERVER_PORT. Since both tests
open the same port during execution, they cannot run in parallel. Add
a ".seq.sh" suffix to the test files and teach "prove" to run them
sequentially.
Signed-off-by: Lars Schneider <redacted>
---
.travis.yml | 3 ++-
...t-svn-dcommit-new-file.sh => t9113-git-svn-dcommit-new-file.seq.sh} | 0
...ectory.sh => t9126-git-svn-follow-deleted-readded-directory.seq.sh} | 0
3 files changed, 2 insertions(+), 1 deletion(-)
rename t/{t9113-git-svn-dcommit-new-file.sh => t9113-git-svn-dcommit-new-file.seq.sh} (100%)
rename t/{t9126-git-svn-follow-deleted-readded-directory.sh => t9126-git-svn-follow-deleted-readded-directory.seq.sh} (100%)
@@ -29,9 +29,10 @@ env:-LINUX_P4_VERSION="16.1"-LINUX_GIT_LFS_VERSION="1.2.0"-DEFAULT_TEST_TARGET=prove--GIT_PROVE_OPTS="--timer --jobs 3 --state=failed,slow,save"+-GIT_PROVE_OPTS="--timer --jobs 3 --state=failed,slow,save --rules='seq=*.seq.*' --rules='par=**'"-GIT_TEST_OPTS="--verbose --tee"-GIT_TEST_CLONE_2GB=YesPlease+-SVNSERVE_PORT=3690# t9810 occasionally fails on Travis CI OS X# t9816 occasionally fails with "TAP out of sequence errors" on Travis CI OS X-GIT_SKIP_TESTS="t9810 t9816"
diff --git a/t/t9113-git-svn-dcommit-new-file.sh b/t/t9113-git-svn-dcommit-new-file.seq.shsimilarity index 100%rename from t/t9113-git-svn-dcommit-new-file.shrename to t/t9113-git-svn-dcommit-new-file.seq.shdiff --git a/t/t9126-git-svn-follow-deleted-readded-directory.sh b/t/t9126-git-svn-follow-deleted-readded-directory.seq.shsimilarity index 100%rename from t/t9126-git-svn-follow-deleted-readded-directory.shrename to t/t9126-git-svn-follow-deleted-readded-directory.seq.sh
--
2.5.1
From: Eric Wong <hidden> Date: 2016-06-16 02:19:31
larsxschneider@gmail.com wrote:
Enable t9113 and 9126 by defining the SVNSERVER_PORT. Since both tests
open the same port during execution, they cannot run in parallel. Add
a ".seq.sh" suffix to the test files and teach "prove" to run them
sequentially.
Interesting, I guess I forgot the problem because had some
rules in config.mak to serialize them for many years, now :x
Anyways, how about making the tests run on separate ports and
not worry about serializing them at all? Maybe there was a
reason we didn't do this years ago, but I forget...
But probably the best (but I guess more difficult) option is to
get svnserve+apache to do socket activation off a random port
bound by a parent process at startup.