summaryrefslogtreecommitdiff
path: root/test/tests/inject/date
blob: 9510436aef17db10db6c2296ca7ae961d19ed9fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
. functions

inj() { injectfield date 'to: nobody' "$@"; }

echo "Checking that inject inserts a date line."
test -n "`inj`"

echo "Checking that inject preserves an existing date line."
inj "date: foo" | grep '^ foo$' >/dev/null

echo "Checking that inject does not add more date lines."
test 1 -eq `inj "date: foo" | wc -l`