Discussion:
Run shelve tests in subversion 1.9
wuzhouhui
2018-03-11 10:20:30 UTC
Permalink
I am backporting 'svn shelve' subcommand into Subversion 1.9, and now I want
to do some tests. If I copy shelve_tests.py from Subversion-1.10 to
Subversion-1.9/subversion/tests/cmdline/shelve_tests.py, and run 'make check',
but shelve_tests.py doesn't executed.

So my question is how to run shelve_tests.py in Subversion 1.9 when 'make
check'?
Branko Čibej
2018-03-11 10:29:12 UTC
Permalink
Post by wuzhouhui
I am backporting 'svn shelve' subcommand into Subversion 1.9,
Why are you doing this? Subversion 1.10 will be released in a couple
weeks; the first release candidate is available, with all the shelving
support. Why not use that, instead of backporting something that we'll
never support?
Post by wuzhouhui
and now I want
to do some tests. If I copy shelve_tests.py from Subversion-1.10 to
Subversion-1.9/subversion/tests/cmdline/shelve_tests.py, and run 'make check',
but shelve_tests.py doesn't executed.
So my question is how to run shelve_tests.py in Subversion 1.9 when 'make
check'?
Most likely you forgot to make the file executable.

-- Brane
wuzhouhui
2018-03-11 11:15:19 UTC
Permalink
I customize Subversion 1.9 for my own use. It is much easier to backport
shelve from 1.10 than upgrade to 1.10.
Post by Branko Čibej
Post by wuzhouhui
I am backporting 'svn shelve' subcommand into Subversion 1.9,
Why are you doing this? Subversion 1.10 will be released in a couple
weeks; the first release candidate is available, with all the shelving
support. Why not use that, instead of backporting something that we'll
never support?
Post by wuzhouhui
and now I want
to do some tests. If I copy shelve_tests.py from Subversion-1.10 to
Subversion-1.9/subversion/tests/cmdline/shelve_tests.py, and run 'make check',
but shelve_tests.py doesn't executed.
So my question is how to run shelve_tests.py in Subversion 1.9 when 'make
check'?
Most likely you forgot to make the file executable.
-- Brane
wuzhouhui
2018-03-11 11:51:23 UTC
Permalink
Post by wuzhouhui
I customize Subversion 1.9 for my own use. It is much easier to backport
shelve from 1.10 than upgrade to 1.10.
Post by Branko Čibej
Post by wuzhouhui
I am backporting 'svn shelve' subcommand into Subversion 1.9,
Why are you doing this? Subversion 1.10 will be released in a couple
weeks; the first release candidate is available, with all the shelving
support. Why not use that, instead of backporting something that we'll
never support?
Post by wuzhouhui
and now I want
to do some tests. If I copy shelve_tests.py from Subversion-1.10 to
Subversion-1.9/subversion/tests/cmdline/shelve_tests.py, and run 'make check',
but shelve_tests.py doesn't executed.
So my question is how to run shelve_tests.py in Subversion 1.9 when 'make
check'?
Most likely you forgot to make the file executable.
The file is executable.
Post by wuzhouhui
Post by Branko Čibej
-- Brane
Daniel Shahaf
2018-03-11 18:52:05 UTC
Permalink
Post by wuzhouhui
Post by Branko Čibej
Post by wuzhouhui
I am backporting 'svn shelve' subcommand into Subversion 1.9, and now I want
to do some tests. If I copy shelve_tests.py from Subversion-1.10 to
Subversion-1.9/subversion/tests/cmdline/shelve_tests.py, and run 'make check',
but shelve_tests.py doesn't executed.
So my question is how to run shelve_tests.py in Subversion 1.9 when 'make
check'?
Most likely you forgot to make the file executable.
The file is executable.
What happens when you run 'python2 ./shelve_tests.py'?

(I don't think our infrastructure cares whether the +x bit is set.)
Philip Martin
2018-03-11 20:21:55 UTC
Permalink
Post by wuzhouhui
Post by Branko Čibej
Most likely you forgot to make the file executable.
The file is executable.
You probably need to rerun gen-make.py.

gen-make.py is responsible for adding the new file to TEST_PROGRAMS in
build-outputs.mk
--
Philip
wuzhouhui
2018-03-11 23:57:12 UTC
Permalink
Post by Philip Martin
Post by wuzhouhui
Post by Branko Čibej
Most likely you forgot to make the file executable.
The file is executable.
You probably need to rerun gen-make.py.
gen-make.py is responsible for adding the new file to TEST_PROGRAMS in
build-outputs.mk
After adding shelve_tests.py in build-outputs.mk, 'make check' runs shelve tests
successfully!

Thanks!
Post by Philip Martin
--
Philip
Continue reading on narkive:
Search results for 'Run shelve tests in subversion 1.9' (Questions and Answers)
14
replies
how is George w Bush doing as president?
started 2006-05-31 15:02:36 UTC
politics
Loading...