This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: enable Ada test suite


I've committed the ACATS test suite as discussed under PR ada/5909,
under gcc/testsuite/ada/acats

I apparently screwed things up a little, since there are extra CVS/CVS
directories created in the repository, under testsuite/ada/acats/*.
If someone with ssh access to the GCC repository could remove these extra
directories, that'd be great.
I apologize for the inconvenience, my script had an unexpected side effect...

I've also added a file gcc/testsuite/README.ada explaining the contents and
basics of how the test suite works.

The remaining piece to actually enable the test suite follows, OK ?

In the gcc/ directory:
--
2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>

	PR ada/5909
	* Makefile.in (check-ada): enable Ada test suite if Ada language
	enabled.
--
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1185
diff -u -c -3 -p -r1.1185 Makefile.in
*** Makefile.in	27 Oct 2003 00:26:42 -0000	1.1185
--- Makefile.in	27 Oct 2003 11:34:29 -0000
*************** site.exp: ./config.status Makefile
*** 3224,3229 ****
--- 3224,3230 ----
  
  CHECK_TARGETS = check-gcc @check_languages@
  
+ check-ada : check-gnat
  check-c++ : check-g++
  check-f77 : check-g77
  check-java :
*************** check-g++ check-gcc check-g77 check-objc
*** 3259,3264 ****
--- 3260,3274 ----
  	   TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWD_COMMAND}` ; \
  	    export TCL_LIBRARY ; fi ; \
  	$(RUNTEST) --tool $* $(RUNTESTFLAGS))
+ 
+ ACATSDIR = $(TESTSUITEDIR)/ada/acats
+ 
+ check-gnat:
+ 	test -d $(ACATSDIR) || mkdir -p $(ACATSDIR)
+ 	testdir=`cd ${srcdir}/${ACATSDIR}; ${PWD_COMMAND}`; \
+ 	export testdir; cd $(ACATSDIR); $${testdir}/run_acats $(CHAPTERS)
+ 
+ .PHONY: check-gnat
  
  check-consistency: testsuite/site.exp
  	-rootme=`${PWD_COMMAND}`; export rootme; \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]