📄 general.in
字号:
# -*-Perl-*-# $Id: general.in,v 1.4 2004/06/27 02:05:39 rockyb Exp $$description = "The following checks general debugger operation.\n";$details = "check debugger operations: print, examine, break\n";return -1 if !"@HAVE_READLINE@";# TEST #1# -------open(MAKEFILE,"> $makefile");# The Contents of the MAKEFILE ...print MAKEFILE <<\EOF;# Test #1 test Makefile for testing debugger operationFOO=barBAZ=$(FOO)all: foofoo: baz @echo hi > /dev/null @exit 5baz: @echo ho > /dev/nullEOF# END of Contents of MAKEFILEclose(MAKEFILE);$debug_cmdfile = "$testpath.dbg";open(DBG_CMDS,"> $debug_cmdfile");# The Contents of the DEBUG COMMAND FILE ...print DBG_CMDS <<\EOF;# This is a comment.print MAKEexamine $(BAZ)list foobreak foostepcontinuelist foowherequitEOF# END of Contents of DEBUG COMMAND FILEclose(DBG_CMDS);&run_make_with_options($makefile,"--debugger --basename-filenames", &get_logfile, 0, $debug_cmdfile);# Create the answer to what should be produced by this Makefile$answer = 'work/debugger/general.mk:5: foomakedb<0> work/debugger/general.mk:5: foomakedb<1> (null):0 MAKE = $(MAKE_COMMAND)work/debugger/general.mk:5: foomakedb<2> barwork/debugger/general.mk:5: foomakedb<3> foo: baz# Implicit rule search has not been done.# File does not exist.# File has not been updated.# commands to execute (from `work/debugger/general.mk\', line 6): @echo hi > /dev/null @exit 5 work/debugger/general.mk:5: foomakedb<4> Breakpoint on target foo set.work/debugger/general.mk:5: foomakedb<5> work/debugger/general.mk:8: bazmakedb<6> work/debugger/general.mk:6: foomakedb<7> foo: baz# Implicit rule search has not been done.# Implicit/static pattern stem: `\'# File does not exist.# File has not been updated.# automatic# @ := foo# automatic# % := # automatic# * := # automatic# + := baz# automatic# | := # automatic# < := baz# automatic# ^ := baz# automatic# ? := baz# variable set hash-table stats:# Load=8/32=25%, Rehash=0, Collisions=1/12=8%# commands to execute (from `work/debugger/general.mk\', line 6): @echo hi > /dev/null @exit 5 work/debugger/general.mk:6: foomakedb<8> =>#0 foo at work/debugger/general.mk:6 #1 all at work/debugger/general.mk:4work/debugger/general.mk:6: foomakedb<9> ';# COMPARE RESULTS&compare_output($answer,&get_logfile(1));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -