X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=tests%2F10-function-tail.sh;fp=tests%2F10-function-tail.sh;h=2eb690fddaeb9ec5ee73ded974608279e0ebdbbd;hb=580298444204f92785a7ac78c4529e95e3cba40d;hp=0000000000000000000000000000000000000000;hpb=c3304e1ddf82ea319623c20a1d736d0cd743e377;p=goals.git diff --git a/tests/10-function-tail.sh b/tests/10-function-tail.sh new file mode 100755 index 0000000..2eb690f --- /dev/null +++ b/tests/10-function-tail.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +# Goals test. +# Copyright (C) 2020 Richard W.M. Jones +# Copyright (C) 2020 Red Hat Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +set -e + +goals -f 10-function-tail.gl > 10-function-tail.out +diff -u 10-function-tail.out 10-function-tail.expected +rm 10-function-tail.out