head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	98.09.16.23.56.17;	author phil;	state Exp;
branches;
next	1.1;

1.1
date	98.09.16.23.39.39;	author phil;	state Exp;
branches;
next	;


desc
@@


1.2
log
@*** empty log message ***
@
text
@#!/bin/sh

# $Id: grep,v 1.1 1998/09/16 23:39:39 phil Exp phil $
# Copyright (c) 1998  Philip Hands <phil@@hands.com>
# This program is distributed under the terms of the GPL.

# Example test script, for use with the debian-test package, for
# testing that grep is vaugly functional.

# check that grep is installed
test -e /bin/grep || exit 0

. ${DEBIANTEST_LIB}/functions.sh

test_simple() {
  test "feeble" = `echo -e "this\nis\na\nfeeble\ntest" | grep 'fee'`
}

test_bo() {
  test "10:feeble" = `echo -e "this\nis\na\nfeeble\ntest" | grep -b 'fee'`
}

runtest "Simple substring"                     test_simple
runtest "Simple substring, with byte offset"   test_bo 
@


1.1
log
@Initial revision
@
text
@d3 3
a5 3
# $Id:$
# Copyright 1998 (c) Philip Hands <phil@@hands.com>
# Distributed under the terms of the GPL.
@
