1*44054Sbostic#! /bin/csh -f 2*44054Sbostic 3*44054Sbostic# 4*44054Sbostic# runtest <dbx> <testname> 5*44054Sbostic# 6*44054Sbostic# Run dbx (with no environment so that stack addresses 7*44054Sbostic# have consistent values). 8*44054Sbostic# 9*44054Sbostic# The first three lines of dbx output are ignored because 10*44054Sbostic# they contain version specific information. 11*44054Sbostic# 12*44054Sbostic# This program is assumed to be running from within 13*44054Sbostic# one of the language-specific test subdirectories. 14*44054Sbostic# 15*44054Sbostic 16*44054Sbosticif (-e $2.in) then 17*44054Sbostic ../noenv $1 $2.x < $2.in |& tail +3 18*44054Sbosticelse 19*44054Sbostic ../noenv $1 $2.x < $2.`machine`.in |& tail +3 20*44054Sbosticendif 21