#!/bin/sh

# $Id: sed,v 1.1 2000/04/13 08:45:34 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