debug_test revision 1.1
11.1Sblymn#!/bin/sh 21.1Sblymn# 31.1Sblymn# Set up the environment to run the test frame. Option flags: 41.1Sblymn# 51.1Sblymn# -c : Set up curses tracing, assumes the curses lib has been built with 61.1Sblymn# debug enabled. Default trace mask traces input, can be overridden 71.1Sblymn# by setting the trace mask in the environment before calling the 81.1Sblymn# script. 91.1Sblymn# -s : Specify the slave command. Defaults to "../slave/slave" 101.1Sblymn# -v : Enable verbose output 111.1Sblymn# 121.1SblymnBASEDIR="/usr/tests/lib/libcurses" 131.1SblymnCHECK_PATH="${BASEDIR}/check_files/" 141.1Sblymnexport CHECK_PATH 151.1SblymnINCLUDE_PATH="${BASEDIR}/tests/" 161.1Sblymnexport INCLUDE_PATH 171.1Sblymn# 181.1SblymnSLAVE="${BASEDIR}/slave" 191.1Sblymn# 201.1SblymnARGS="" 211.1Sblymn# 221.1Sblymnwhile /usr/bin/true 231.1Sblymndo 241.1Sblymn case $1 in 251.1Sblymn -c) 261.1Sblymn CURSES_TRACE_FILE="/tmp/ctrace" 271.1Sblymn if [ "X$CURSES_TRACE_MASK" = "X" ]; then 281.1Sblymn CURSES_TRACE_MASK=0x00000082 291.1Sblymn fi 301.1Sblymn export CURSES_TRACE_FILE 311.1Sblymn export CURSES_TRACE_MASK 321.1Sblymn ;; 331.1Sblymn 341.1Sblymn -s) 351.1Sblymn SLAVE=$2 361.1Sblymn shift 371.1Sblymn ;; 381.1Sblymn 391.1Sblymn -v) 401.1Sblymn ARGS="-v" 411.1Sblymn ;; 421.1Sblymn 431.1Sblymn *) 441.1Sblymn break 451.1Sblymn ;; 461.1Sblymn esac 471.1Sblymn 481.1Sblymn shift 491.1Sblymndone 501.1Sblymn# 511.1Sblymnexec ${BASEDIR}/director ${ARGS} -s ${SLAVE} ${INCLUDE_PATH}/$@ 52