Skip to content

Commit

Permalink
Merge pull request #267 from dpmatthews/svn-1.10
Browse files Browse the repository at this point in the history
Enable all tests for svn 1.10
  • Loading branch information
dpmatthews authored May 18, 2021
2 parents 8473820 + 010d415 commit 6a3a348
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 29 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
libdbd-sqlite3-perl \
python-subversion libsvn-perl \
s-nail
[[ ${{matrix.ubuntu}} != "ubuntu-20.04" ]] && sudo pip install 'trac' || true
[[ ${{matrix.ubuntu}} == "ubuntu-16.04" ]] && sudo pip install 'trac==1.2' || true
[[ ${{matrix.ubuntu}} == "ubuntu-18.04" ]] && sudo pip install 'trac' || true
echo "#!/bin/bash" >"${PWD}/bin/gfortran"
echo 'exec gfortran-9 "$@"' >>"${PWD}/bin/gfortran"
chmod +x "${PWD}/bin/gfortran"
Expand Down
6 changes: 3 additions & 3 deletions t/fcm-conflicts/00-tree-add-add.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
. $(dirname $0)/test_header
#-------------------------------------------------------------------------------
check_svn_version
[[ $SVN_MINOR_VERSION == "1.10" ]] && skip_all "Tests not working with svn 1.10"
tests 24
#-------------------------------------------------------------------------------
setup
Expand All @@ -49,14 +48,15 @@ fcm merge --non-interactive $ROOT_URL/branches/dev/Share/add_add >/dev/null
run_pass "$TEST_KEY" fcm conflicts <<__IN__
n
__IN__
file_cmp "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
file_cmp_filtered "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
[info] new_file: in tree conflict.
Locally: added.
Externally: added.
Answer (y) to keep the local file filename.
Answer (n) to keep the external file filename.
Keep the local version?
Enter "y" or "n" (or just press <return> for "n") Resolved conflicted state of 'new_file'
#IF SVN1.8/9 Enter "y" or "n" (or just press <return> for "n") Resolved conflicted state of 'new_file'
#IF SVN1.10 Enter "y" or "n" (or just press <return> for "n") Tree conflict at 'new_file' marked as resolved.
__OUT__
file_cmp "$TEST_KEY.err" "$TEST_KEY.err" </dev/null
#-------------------------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion t/fcm-conflicts/02-tree-delete-edit.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
. $(dirname $0)/test_header
#-------------------------------------------------------------------------------
check_svn_version
[[ $SVN_MINOR_VERSION == "1.10" ]] && skip_all "Tests not working with svn 1.10"
tests 18
#-------------------------------------------------------------------------------
setup
Expand Down
6 changes: 3 additions & 3 deletions t/fcm-conflicts/03-tree-delete-rename.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
. $(dirname $0)/test_header
#-------------------------------------------------------------------------------
check_svn_version
[[ $SVN_MINOR_VERSION == "1.10" ]] && skip_all "Tests not working with svn 1.10"
tests 15
#-------------------------------------------------------------------------------
setup
Expand Down Expand Up @@ -92,15 +91,16 @@ fcm merge --non-interactive $ROOT_URL/branches/dev/Share/del_ren >/dev/null
run_pass "$TEST_KEY" fcm conflicts <<__IN__
y
__IN__
file_cmp "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
file_cmp_filtered "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
[info] pro/hello.pro: in tree conflict.
Locally: deleted.
Externally: renamed to pro/hello.pro.renamed.
Answer (y) to accept the local delete.
Answer (n) to accept the external rename.
Keep the local version?
Enter "y" or "n" (or just press <return> for "n") Reverted 'pro/hello.pro.renamed'
Resolved conflicted state of 'pro/hello.pro'
#IF SVN1.8/9 Resolved conflicted state of 'pro/hello.pro'
#IF SVN1.10 Tree conflict at 'pro/hello.pro' marked as resolved.
__OUT__
file_cmp "$TEST_KEY.err" "$TEST_KEY.err" </dev/null
#-------------------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions t/fcm-conflicts/05-tree-edit-rename.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
. $(dirname $0)/test_header
#-------------------------------------------------------------------------------
check_svn_version
[[ $SVN_MINOR_VERSION == "1.10" ]] && skip_all "Tests not working with svn 1.10"
tests 24
#-------------------------------------------------------------------------------
setup
Expand Down Expand Up @@ -125,7 +124,7 @@ fcm merge --non-interactive $ROOT_URL/branches/dev/Share/ed_ren >/dev/null
run_pass "$TEST_KEY" fcm conflicts <<__IN__
y
__IN__
file_cmp "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
file_cmp_filtered "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
[info] pro/hello.pro: in tree conflict.
Locally: edited.
Externally: renamed to pro/hello.pro.renamed.
Expand All @@ -142,7 +141,8 @@ Enter "y" or "n" (or just press <return> for "n") diff3 pro/hello.pro.working pr
Merge contents (1)
Merge contents (2)
Reverted 'pro/hello.pro.renamed'
Resolved conflicted state of 'pro/hello.pro'
#IF SVN1.8/9 Resolved conflicted state of 'pro/hello.pro'
#IF SVN1.10 Tree conflict at 'pro/hello.pro' marked as resolved.
__OUT__
file_cmp "$TEST_KEY.err" "$TEST_KEY.err" </dev/null
#-------------------------------------------------------------------------------
Expand Down
11 changes: 6 additions & 5 deletions t/fcm-conflicts/07-tree-rename-edit.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
. $(dirname $0)/test_header
#-------------------------------------------------------------------------------
check_svn_version
[[ $SVN_MINOR_VERSION == "1.10" ]] && skip_all "Tests not working with svn 1.10"
tests 18
#-------------------------------------------------------------------------------
setup
Expand Down Expand Up @@ -51,7 +50,7 @@ fcm merge --non-interactive $ROOT_URL/branches/dev/Share/ren_ed >/dev/null
run_pass "$TEST_KEY" fcm conflicts <<__IN__
n
__IN__
file_cmp "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
file_cmp_filtered "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
[info] pro/hello.pro: in tree conflict.
Locally: renamed to pro/hello.pro.renamed.
Externally: edited.
Expand All @@ -68,7 +67,8 @@ Enter "y" or "n" (or just press <return> for "n") diff3 pro/hello.pro.renamed.wo
Merge contents (1)
A pro/hello.pro
D pro/hello.pro.renamed
Resolved conflicted state of 'pro/hello.pro'
#IF SVN1.8/9 Resolved conflicted state of 'pro/hello.pro'
#IF SVN1.10 Tree conflict at 'pro/hello.pro' marked as resolved.
__OUT__
file_cmp "$TEST_KEY.err" "$TEST_KEY.err" </dev/null
#-------------------------------------------------------------------------------
Expand Down Expand Up @@ -106,7 +106,7 @@ fcm merge --non-interactive $ROOT_URL/branches/dev/Share/ren_ed >/dev/null
run_pass "$TEST_KEY" fcm conflicts <<__IN__
y
__IN__
file_cmp "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
file_cmp_filtered "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
[info] pro/hello.pro: in tree conflict.
Locally: renamed to pro/hello.pro.renamed.
Externally: edited.
Expand All @@ -121,7 +121,8 @@ Enter "y" or "n" (or just press <return> for "n") diff3 pro/hello.pro.renamed.wo
2:2a
3:3c
Merge contents (1)
Resolved conflicted state of 'pro/hello.pro'
#IF SVN1.8/9 Resolved conflicted state of 'pro/hello.pro'
#IF SVN1.10 Tree conflict at 'pro/hello.pro' marked as resolved.
__OUT__
file_cmp "$TEST_KEY.err" "$TEST_KEY.err" </dev/null
#-------------------------------------------------------------------------------
Expand Down
23 changes: 12 additions & 11 deletions t/fcm-conflicts/08-tree-rename-rename-diff.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
. $(dirname $0)/test_header
#-------------------------------------------------------------------------------
check_svn_version
[[ $SVN_MINOR_VERSION == "1.10" ]] && skip_all "Tests not working with svn 1.10"
tests 18
#-------------------------------------------------------------------------------
setup
Expand All @@ -33,7 +32,7 @@ init_branch_wc ren_ren $REPOS_URL
export FCM_GRAPHIC_MERGE=fcm-dummy-diff
cd $TEST_DIR/wc
#-------------------------------------------------------------------------------
# Tests fcm conflicts: rename, rename, diff rename, discard local
# Tests fcm conflicts: rename, diff rename, discard local
TEST_KEY=$TEST_KEY_BASE-discard
svn switch -q $ROOT_URL/branches/dev/Share/ctrl
svn rename -q pro/hello.pro pro/hello.pro.renamed-local
Expand All @@ -54,7 +53,7 @@ fcm merge --non-interactive $ROOT_URL/branches/dev/Share/ren_ren >/dev/null
run_pass "$TEST_KEY" fcm conflicts <<__IN__
n
__IN__
file_cmp "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
file_cmp_filtered "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
[info] pro/hello.pro: in tree conflict.
Locally: renamed to pro/hello.pro.renamed-local.
Externally: renamed to pro/hello.pro.renamed-merge.
Expand All @@ -70,11 +69,12 @@ Enter "y" or "n" (or just press <return> for "n") diff3 pro/hello.pro.renamed-me
3:3c
Merge contents (1)
D pro/hello.pro.renamed-local
Resolved conflicted state of 'pro/hello.pro'
#IF SVN1.8/9 Resolved conflicted state of 'pro/hello.pro'
#IF SVN1.10 Tree conflict at 'pro/hello.pro' marked as resolved.
__OUT__
file_cmp "$TEST_KEY.err" "$TEST_KEY.err" </dev/null
#-------------------------------------------------------------------------------
# Tests fcm conflicts: rename, rename, diff rename, discard local (status)
# Tests fcm conflicts: rename, diff rename, discard local (status)
TEST_KEY=$TEST_KEY_BASE-discard-status
run_pass "$TEST_KEY" svn status --config-dir=$TEST_DIR/.subversion/
file_cmp "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
Expand All @@ -84,7 +84,7 @@ A + pro/hello.pro.renamed-merge
__OUT__
file_cmp "$TEST_KEY.err" "$TEST_KEY.err" </dev/null
#-------------------------------------------------------------------------------
# Tests fcm conflicts: rename, rename, diff rename, discard local (cat)
# Tests fcm conflicts: rename, diff rename, discard local (cat)
TEST_KEY=$TEST_KEY_BASE-discard-cat
run_pass "$TEST_KEY" cat pro/hello.pro.renamed-merge
file_cmp "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
Expand All @@ -100,13 +100,13 @@ mkdir $TEST_DIR/wc
svn checkout -q $ROOT_URL/branches/dev/Share/ctrl $TEST_DIR/wc
cd $TEST_DIR/wc
#-------------------------------------------------------------------------------
# Tests fcm conflicts: rename, rename, diff rename, keep local
# Tests fcm conflicts: rename, diff rename, keep local
TEST_KEY=$TEST_KEY_BASE-keep
fcm merge --non-interactive $ROOT_URL/branches/dev/Share/ren_ren >/dev/null
run_pass "$TEST_KEY" fcm conflicts <<__IN__
y
__IN__
file_cmp "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
file_cmp_filtered "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
[info] pro/hello.pro: in tree conflict.
Locally: renamed to pro/hello.pro.renamed-local.
Externally: renamed to pro/hello.pro.renamed-merge.
Expand All @@ -122,19 +122,20 @@ Enter "y" or "n" (or just press <return> for "n") diff3 pro/hello.pro.renamed-lo
3:3c
Merge contents (1)
Reverted 'pro/hello.pro.renamed-merge'
Resolved conflicted state of 'pro/hello.pro'
#IF SVN1.8/9 Resolved conflicted state of 'pro/hello.pro'
#IF SVN1.10 Tree conflict at 'pro/hello.pro' marked as resolved.
__OUT__
file_cmp "$TEST_KEY.err" "$TEST_KEY.err" </dev/null
#-------------------------------------------------------------------------------
# Tests fcm conflicts: rename, rename, diff rename, keep local (status)
# Tests fcm conflicts: rename, diff rename, keep local (status)
TEST_KEY=$TEST_KEY_BASE-keep-status
run_pass "$TEST_KEY" svn status --config-dir=$TEST_DIR/.subversion/
file_cmp "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
M .
__OUT__
file_cmp "$TEST_KEY.err" "$TEST_KEY.err" </dev/null
#-------------------------------------------------------------------------------
# Tests fcm conflicts: rename, rename, diff rename, keep local (cat)
# Tests fcm conflicts: rename, diff rename, keep local (cat)
TEST_KEY=$TEST_KEY_BASE-keep-cat
run_pass "$TEST_KEY" cat pro/hello.pro.renamed-local
file_cmp "$TEST_KEY.out" "$TEST_KEY.out" <<__OUT__
Expand Down
4 changes: 2 additions & 2 deletions t/fcm-conflicts/09-tree-rename-rename-same.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
. $(dirname $0)/test_header
#-------------------------------------------------------------------------------
check_svn_version
[[ $SVN_MINOR_VERSION == "1.10" ]] && skip_all "Tests not working with svn 1.10"
tests 27
#-------------------------------------------------------------------------------
setup
Expand Down Expand Up @@ -113,7 +112,8 @@ Externally: added.
Answer (y) to keep the local file filename.
Answer (n) to keep the external file filename.
Keep the local version?
Enter "y" or "n" (or just press <return> for "n") Resolved conflicted state of 'pro/hello.pro.renamed'
#IF SVN1.8/9 Enter "y" or "n" (or just press <return> for "n") Resolved conflicted state of 'pro/hello.pro.renamed'
#IF SVN1.10 Enter "y" or "n" (or just press <return> for "n") Tree conflict at 'pro/hello.pro.renamed' marked as resolved.
__OUT__
file_cmp "$TEST_KEY.err" "$TEST_KEY.err" </dev/null
#-------------------------------------------------------------------------------
Expand Down

0 comments on commit 6a3a348

Please sign in to comment.