From: "Berger, Daniel" Date: 2004-05-25T22:17:00+09:00 Subject: Re: Autogenerating test targets with mkmf > -----Original Message----- > From: nobu.nokada@softhome.net [mailto:nobu.nokada@softhome.net] > Sent: Monday, May 24, 2004 10:17 PM > To: ruby-core@ruby-lang.org > Subject: Re: Autogenerating test targets with mkmf > > > Hi, > > At Tue, 25 May 2004 12:48:09 +0900, > Daniel Berger wrote in [ruby-core:02945]: > > I mentioned this on ruby-talk but no one responded, so perhaps it's > > more appropriate here. A long time ago I suggested the notion of > > autogenerating test targets with mkmf along the lines of Perl's > > Makemaker module. In other words "make test" would > automatically run a > > test.rb file and/or any tc_* files under the 'test' > > directory (or whatever). > > Like this? > > test: $(DLLIB) > $(RUBY) -rtest/unit -e "$$:.unshift(Dir.pwd)" \ > -e "exit Test::Unit::AutoRunner.run" $(srcdir)/test > > -- > Nobu Nakada Looks good, though I think it should be limited to tc_*.rb files under 'test'. Regards, Dan