summaryrefslogtreecommitdiff
path: root/librsync/isprefix.test
blob: 646088c4823b23ed737522d16dacc226cf4666f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh -pe

# librsync test case.
# Copyright (C) 2000 by Martin Pool

# Test the map_ptr input routines, by extracting chunks of a file
# using a known-good Python implementation, and also by passing the
# same parameters to the hsmapread driver.

# Id: isprefix.test,v 1.2 2001/03/05 07:09:37 mbp Exp 

run_test isprefix.driver foo foobar
run_test isprefix.driver '' foobar
run_test isprefix.driver foobar foobar
run_test isprefix.driver f f
run_test isprefix.driver '' ''
run_test isprefix.driver f foobar

run_test isprefix.driver ! foobar foo
run_test isprefix.driver ! goo foo
run_test isprefix.driver ! foo ''
run_test isprefix.driver ! f g