~ubuntu-branches/ubuntu/saucy/deja-dup/saucy

« back to all changes in this revision

Viewing changes to tests/restore/overdir

  • Committer: Package Import Robot
  • Author(s): Michael Terry
  • Date: 2012-10-30 19:03:03 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20121030190303-w3fatge63ncm5uiw
Tags: 25.1.1-0ubuntu1
* New upstream release
* debian/control:
  - Use libsecret, not libgnome-keyring
  - Switch to valac-0.18
  - Add various deja-dup-backend-* metapackages to make seeding
    different ones easier for flavors
* debian/tests:
  - Add dep8 test to run upstream test suite against system install
* debian/patches/support-new-u1backend.patch:
  - Support new u1backend in duplicity 0.6.20

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
# -*- Mode: Python; indent-tabs-mode: nil; tab-width: 2; coding: utf-8 -*-
3
 
#
4
 
# This file is part of Déjà Dup.
5
 
# For copyright information, see AUTHORS.
6
 
#
7
 
# Déjà Dup is free software; you can redistribute it and/or modify
8
 
# it under the terms of the GNU General Public License as published by
9
 
# the Free Software Foundation; either version 3 of the License, or
10
 
# (at your option) any later version.
11
 
#
12
 
# Déjà Dup is distributed in the hope that it will be useful, but
13
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 
# General Public License for more details.
16
 
#
17
 
# You should have received a copy of the GNU General Public License
18
 
# along with Déjà Dup.  If not, see <http://www.gnu.org/licenses/>.
19
 
 
20
 
import sys
21
 
import os
22
 
sys.path.insert(0, sys.path[0]+'/..')
23
 
import base
24
 
import ldtp
25
 
 
26
 
def test():
27
 
  restoredir = base.get_temp_name('restore')
28
 
  base.setup()
29
 
  base.backup_simple(backend='file', includes=['data/simple'])
30
 
  base.restore_simple(restoredir)
31
 
  # Test restoring everything on top of previous restored files
32
 
  base.restore_simple(restoredir)
33
 
  # Test restoring just one dir on top of previous restored files
34
 
  base.restore_specific(['data/simple/top'], restoredir)
35
 
  return True
36
 
 
37
 
base.run(test)