PageRenderTime 14ms CodeModel.GetById 2ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/config/Make-test.mk

https://code.google.com/
Makefile | 29 lines | 27 code | 2 blank | 0 comment | 6 complexity | 2562ef4f4f15034ddcdd5f0c7ccc874e MD5 | raw file
 1DEJATOOL = `pwd`/$(PROJECT)
 2RUNTESTFLAGS =
 3RUNTESTDEFAULTFLAGS = --all --tool $(PROJECT) --srcdir $$srcdir/testsuite 
 4EXPECT = /usr/bin/expect
 5RUNTEST = /usr/bin/runtest
 6srcdir = $(top_srcdir)
 7
 8check: site.exp
 9	@srcdir=`cd $(srcdir) && pwd`; export srcdir; \
10        EXPECT=$(EXPECT); export EXPECT; \
11        if [ -x $(RUNTEST) ]; then \
12            $(RUNTEST) $(RUNTESTDEFAULTFLAGS) $(RUNTESTFLAGS); exit 0; \
13        else \
14  	    echo "Could not find $(RUNTEST).  Is dejagnu installed?" 1>&2; :;\
15        fi
16
17site.exp: Makefile
18	@echo 'Making a new site.exp file...'
19	@test ! -f site.bak || rm -f site.bak
20	@echo '## these variables are automatically generated by make ##' > $@-t
21	@echo '# Do not edit here.  If you wish to override these values' >> $@-t
22	@echo '# edit the last section' >> $@-t
23	@echo 'set tool $(DEJATOOL)' >> $@-t
24	@echo 'set srcdir $(srcdir)' >> $@-t
25	@echo 'set objdir' `pwd` >> $@-t
26	@echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t
27	@test ! -f site.exp || sed '1,/^## All variables above are.*##/ d' site.exp >> $@-t
28	@test ! -f site.exp || mv site.exp site.bak
29	@mv $@-t site.exp