File:  [CSRG BSD Unix] / 43BSDTahoe / lib / old_compiler / dbx / tests / check
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:57 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe

#! /bin/csh -f

#
# check <test output> <expected output>
#
# Check to see if test output matches expected output.
# If not, run diff and ask if differences are "ok".  If so,
# install new output as expected output.
#

cmp -s $1 $2
if ($status != 0) then
    diff $1 $2
    echo -n "ok? "
    if ($< != y) then
	exit 1
    endif
    mv $1 $2
endif
exit 0

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.