~dexter/fakechroot/natty

« back to all changes in this revision

Viewing changes to test/t/symlink.t

  • Committer: piotr.roszatycki at gmail
  • Date: 2010-09-12 18:21:38 UTC
  • mfrom: (0.1.7 upstream)
  • Revision ID: piotr.roszatycki@gmail.com-20100912182138-dpjazxgvcscsgd7e
* New upstream release:
  - All Debian patches were applied upstream.
  - Fixed getsockname(2) and getpeername(2) functions and bug when
    "host 127.0.0.1" is called. Closes: #596435.
  - Fixed canonicalize_file_name(3) function and bug when "man-db" command
    is called.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
srcdir=${srcdir:-.}
4
4
. $srcdir/common.inc
 
5
. $srcdir/readlink.inc
5
6
 
6
7
prepare 18
7
8
 
24
25
        test "$t" = "something" || not
25
26
        ok "$chroot rel-symlink is" $t
26
27
 
27
 
        t=`$srcdir/$chroot.sh testtree /bin/readlink $chroot-rel-symlink 2>&1`
 
28
        t=`$srcdir/$chroot.sh testtree $readlink $chroot-rel-symlink 2>&1`
28
29
        test "$t" = "$chroot-file" || not
29
30
        ok "$chroot rel-symlink links to" $t
30
31
 
42
43
        test "$t" = "something" || not
43
44
        ok "$chroot abs-symlink is" $t
44
45
 
45
 
        t=`$srcdir/$chroot.sh testtree /bin/readlink $chroot-abs-symlink 2>&1`
 
46
        t=`$srcdir/$chroot.sh testtree $readlink $chroot-abs-symlink 2>&1`
46
47
        test "$t" = "/$chroot-file" || not
47
48
        ok "$chroot abs-symlink links to" $t
48
49