aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2014-03-03 22:18:40 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2014-03-03 22:18:40 +0200
commitcc88964b933be916e93771fe54c7bbd8d6d7af6a (patch)
tree740a2208a89add1b50e7c0cb8b20ee71acf7e6e0
parent221e390d04a2ba01a1e4e1514bdb95faef0145a9 (diff)
downloadvcsync-cc88964b933be916e93771fe54c7bbd8d6d7af6a.tar.gz
vcsync-cc88964b933be916e93771fe54c7bbd8d6d7af6a.tar.bz2
Add two more SVN tests.
-rw-r--r--tests/Makefile.am2
-rw-r--r--tests/svncom01.at44
-rw-r--r--tests/svncom02.at41
-rw-r--r--tests/testsuite.at2
4 files changed, 89 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 21da634..4814146 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -51,6 +51,8 @@ TESTSUITE_AT = \
gitpush02.at\
namedconf00.at\
svncom00.at\
+ svncom01.at\
+ svncom02.at\
svnimp.at\
testsuite.at
diff --git a/tests/svncom01.at b/tests/svncom01.at
new file mode 100644
index 0000000..37c82a7
--- /dev/null
+++ b/tests/svncom01.at
@@ -0,0 +1,44 @@
+# This file is part of Vcsync testsuite. -*- Autotest -*-
+# Copyright (C) 2014 Sergey Poznyakoff
+#
+# Vcsync is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# Vcsync is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Vcsync. If not, see <http://www.gnu.org/licenses/>.
+
+AT_SETUP([add files])
+AT_KEYWORDS([svn svncom svncom01])
+
+AT_CHECK([
+AT_VCS_PREREQ(CVS)
+cwd=$(pwd)
+SVN_COM_INIT
+cd test
+echo 'new file' > dir/newfile
+SVNCMD add -q dir/newfile
+SVNCMD commit -m 'add file' > /dev/null
+cd ..
+echo "Home dir"
+find home/test -not -path '*/.svn/*' | sort
+],
+[0],
+[Home dir
+home/test
+home/test/.svn
+home/test/README
+home/test/dir
+home/test/dir/file.html
+home/test/dir/newfile
+home/test/index.html
+])
+
+AT_CLEANUP
+
diff --git a/tests/svncom02.at b/tests/svncom02.at
new file mode 100644
index 0000000..7bb3aae
--- /dev/null
+++ b/tests/svncom02.at
@@ -0,0 +1,41 @@
+# This file is part of Vcsync testsuite. -*- Autotest -*-
+# Copyright (C) 2014 Sergey Poznyakoff
+#
+# Vcsync is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# Vcsync is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Vcsync. If not, see <http://www.gnu.org/licenses/>.
+
+AT_SETUP([remove files])
+AT_KEYWORDS([svn svncom svncom02])
+
+AT_CHECK([
+AT_VCS_PREREQ(CVS)
+cwd=$(pwd)
+SVN_COM_INIT
+cd test
+SVNCMD remove -q dir/file.html
+SVNCMD commit -m 'remove file' > /dev/null
+cd ..
+echo "Home dir"
+find home/test -not -path '*/.svn/*' | sort
+],
+[0],
+[Home dir
+home/test
+home/test/.svn
+home/test/README
+home/test/dir
+home/test/index.html
+])
+
+AT_CLEANUP
+
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 509062e..978d0d1 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -167,6 +167,8 @@ AT_BANNER([SVN])
m4_include([svnimp.at])
m4_include([svncom00.at])
+m4_include([svncom01.at])
+m4_include([svncom02.at])
AT_BANNER([GIT])
m4_include([gitimp.at])

Return to:

Send suggestions and report system problems to the System administrator.