~ubuntu-branches/ubuntu/trusty/duplicity/trusty

« back to all changes in this revision

Viewing changes to debian/tests/full-cycle-u1

  • Committer: Package Import Robot
  • Author(s): Michael Terry
  • Date: 2011-12-06 14:15:01 UTC
  • mfrom: (1.9.4)
  • Revision ID: package-import@ubuntu.com-20111206141501-nvfaaauqivpwyb7f
Tags: 0.6.17-0ubuntu1
* New upstream release
* debian/patches/06_use_passphrase.dpatch,
  debian/patches/07_large_rackspace_list.dpatch,
  debian/patches/08_check_volumes.dpatch:
  - Dropped, applied upstream
* debian/rules:
  - Run new upstream test suite during build
* debian/control:
  - Add rdiff as a build-dep to run above test suite
* debian/patches/06testfixes.dpatch:
  - Fix a few tests to not fail erroneously
* debian/patches/07fixincresume.dpatch:
  - Fix a bug with resuming an incremental backup that would result in
    a bogus error.  Also patches in a test for it.
* debian/tests/full-cycle-local:
  - New DEP-8 test script that backs up locally, restores, and checks files
* debian/tests/full-cycle-u1:
  - New DEP-8 test script that does the same as above, but to Ubuntu One
* debian/tests/control:
  - Start of DEP-8 test suite.  Only enable above full-cycle-local test
    for automatic execution.  The other is for manual testing right now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
if [ -z "$TMPDIR" ]; then
 
5
  TMPDIR=/tmp/adt
 
6
  rm -rf $TMPDIR
 
7
  mkdir -p $TMPDIR
 
8
fi
 
9
 
 
10
export XDG_CACHE_HOME=$TMPDIR/cache
 
11
export PASSPHRASE=test
 
12
 
 
13
# clean up from any previous run
 
14
python -c '
 
15
import ubuntuone.couch.auth as auth
 
16
volume = "https://one.ubuntu.com/api/file_storage/v1/volumes/~/duplicity-test"
 
17
print auth.request(volume, http_method="DELETE")
 
18
'
 
19
 
 
20
cp -r /bin $TMPDIR/source
 
21
duplicity $TMPDIR/source u1+http://duplicity-test
 
22
rm -r $XDG_CACHE_HOME
 
23
duplicity u1+http://duplicity-test $TMPDIR/restore
 
24
diff -p $TMPDIR/source $TMPDIR/restore
 
25
 
 
26
echo "PASSED"