1#!/bin/sh 2# 3# ${project trunk_name} - ${project trunk_description} 4# Copyright (C) ${date %Y} ${copyright_owner} 5# 6# This program is free software; you can redistribute it and/or modify 7# it under the terms of the GNU General Public License as published by 8# the Free Software Foundation; either version 3 of the License, or (at 9# your option) any later version. 10# 11# This program is distributed in the hope that it will be useful, 12# but WITHOUT ANY WARRANTY; without even the implied warranty of 13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14# General Public License for more details. 15# 16# You should have received a copy of the GNU General Public License 17# along with this program. If not, see <http://www.gnu.org/licenses/>. 18# 19 20TEST_SUBJECT="fill me in" 21. test_prelude 22 23cat > test.in << 'fubar' 24Hello, World! 25fubar 26if test $$? -ne 0; then no_result; fi 27 28cat > test.ok << 'fubar' 29Hello, World! 30fubar 31if test $$? -ne 0; then no_result; fi 32 33command-to-be-tested -? < test.in > test.out 34if test $$? -ne 0; then fail; fi 35 36diff test.ok test.out 37if test $$? -ne 0; then fail; fi 38 39# 40# The things tested here, worked. 41# No other guarantees are made. 42# 43pass 44 45# vim: set ts=8 sw=4 et : 46