You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2014/05/11 10:14:43 UTC
svn commit: r1593759 -
/subversion/trunk/subversion/tests/cmdline/basic_tests.py
Author: breser
Date: Sun May 11 08:14:43 2014
New Revision: 1593759
URL: http://svn.apache.org/r1593759
Log:
Expand the special path tests.
* subversion/tests/cmdline/basic_tests.py
(special_paths_in_repos): Add some additional problematic characters,
expand it to test files with problematic names in similarly named folders,
add property get/set tests which test PROPFIND/PROPPATCH.
Modified:
subversion/trunk/subversion/tests/cmdline/basic_tests.py
Modified: subversion/trunk/subversion/tests/cmdline/basic_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/basic_tests.py?rev=1593759&r1=1593758&r2=1593759&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/basic_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/basic_tests.py Sun May 11 08:14:43 2014
@@ -2004,6 +2004,7 @@ def special_paths_in_repos(sbox):
"use folders with names like 'c:hi'"
sbox.build(create_wc = False)
+ test_file_source = os.path.join(sbox.repo_dir, 'format')
repo_url = sbox.repo_url
for test_url in [ sbox.repo_url + '/c:hi',
@@ -2011,13 +2012,42 @@ def special_paths_in_repos(sbox):
sbox.repo_url + '/C&',
sbox.repo_url + '/C<',
sbox.repo_url + '/C# hi',
- sbox.repo_url + '/C\\ri',]:
+ sbox.repo_url + '/C\\ri',
+ sbox.repo_url + '/C&',
+ sbox.repo_url + '/C?',
+ sbox.repo_url + '/C+',
+ sbox.repo_url + '/C%']:
+
+ test_file_url = test_url + '/' + test_url[test_url.rindex('/')+1:]
- # do some manipulations on a folder containing a windows drive name.
+ # do some manipulations on a folder which problematic names
svntest.actions.run_and_verify_svn(None, None, [],
'mkdir', '-m', 'log_msg',
test_url)
+ svntest.actions.run_and_verify_svnmucc(None, None, [],
+ '-m', 'log_msg',
+ 'put', test_file_source,
+ test_file_url)
+
+ svntest.actions.run_and_verify_svnmucc(None, None, [],
+ 'propset', '-m', 'log_msg',
+ 'propname', 'propvalue', test_url)
+
+ svntest.actions.run_and_verify_svn(None, 'propvalue', [],
+ 'propget', 'propname', test_url)
+
+ svntest.actions.run_and_verify_svnmucc(None, None, [],
+ 'propset', '-m', 'log_msg',
+ 'propname', 'propvalue', test_file_url)
+
+ svntest.actions.run_and_verify_svn(None, 'propvalue', [],
+ 'propget', 'propname', test_file_url)
+
+ svntest.actions.run_and_verify_svn(None, None, [],
+ 'rm', '-m', 'log_msg',
+ test_file_url)
+
svntest.actions.run_and_verify_svn(None, None, [],
'rm', '-m', 'log_msg',
test_url)