Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
#! /usr/bin/perl |
| 2 |
|
| 3 |
# Test for bug #1: sfetch/SSI path bug. |
| 4 |
# sfetch can't follow paths out of current directory if it's using |
| 5 |
# an SSI index. |
| 6 |
# Reported by Zhirong. |
| 7 |
# SRE, Wed Mar 6 21:07:47 2002 |
| 8 |
|
| 9 |
use testsuite; |
| 10 |
|
| 11 |
testsuite::description("bug-1-sfetch-path", "sfetch/SSI path bug"); |
| 12 |
$tmp = testsuite::tempname(); |
| 13 |
$tmpdir = testsuite::tempname(); |
| 14 |
mkdir $tmpdir, 0700; |
| 15 |
|
| 16 |
testsuite::run("../shuffle -i --dna -n 10 -t 100 > $tmp"); |
| 17 |
testsuite::run("../sindex $tmp > /dev/null"); |
| 18 |
testsuite::run("../sfetch -d $tmp randseq5 > /dev/null"); |
| 19 |
|
| 20 |
testsuite::run("../shuffle -i --dna -n 10 -t 100 > $tmpdir/foo"); |
| 21 |
testsuite::run("../sindex $tmpdir/foo > /dev/null"); |
| 22 |
testsuite::run("../sfetch -d $tmpdir/foo randseq5 > /dev/null"); |
| 23 |
|
| 24 |
testsuite::run("cp $tmp $tmpdir/"); |
| 25 |
testsuite::run("cp $tmp.ssi $tmpdir/"); |
| 26 |
testsuite::run("../sfetch -d $tmpdir/$tmp randseq5 > /dev/null"); |
| 27 |
|
| 28 |
system("rm -rf $tmpdir"); |
| 29 |
testsuite::done(); |