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


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


desc
@@


1.1
log
@Initial revision
@
text
@#!/bin/sh

# $Id: grep,v 1.5 2000/04/13 08:32:33 phil Exp $
# Copyright (c) 1999 James R. Van Zandt <jrv@@vanzandt.mv.com>
# This program is distributed under the terms of the GNU General
# Public License

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

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

. ${DEBIANTEST_LIB:-/usr/lib/debian-test/lib}/functions.sh

test_simple() {
  test "feeble" = `echo -e "this\nis\na\nfeasible\ntest" | sed 's/easi/ee/' | grep 'fee'`
}

runtest "Simple substitution"   test_simple@
