On Mon, Jan 20, 2020 at 03:00:30PM -0500, Chris Bennett wrote:
> On Mon, Jan 20, 2020 at 04:15:42PM +0100, Jeremie Courreges-Anglas wrote:
> > On Sun, Jan 19 2020, Chris Bennett <cpb_po...@bennettconstruction.us> wrote:
> > > This tests perl module versions to see which is higher version.
> > >
> > > I have set TEST_POD and RELEASE_TESTING.
> > >
> > > Unless there is some objection, I will set release and author testing
> > > in future Perl ports also. The mechanism is there. It seems worthwhile
> > > to use it, unless this places too big a burden on bulk builds?
> > >
> > > Comments?
> > 
> > It's not our job to do release and documentation testing.  Please leave
> > this out of the Makefile.
> > 
> 
> Honestly, I picked submitting this simple port exactly to bring up that
> question.
> 
> What I am seeing in the ports tree, just looking at devel/p5-* are,
> for example.
> 
> devel/p5-Mock-Config (and several others just under devel)
> has MAKE_ENV += RELEASE_TESTING=Yes TEST_POD=Yes
> 
> devel/p5-YAML         
> has TEST_ENV +=  AUTHOR_TESTING=1
> 
> When I submitted p5-PGObject,
> https://marc.info/?l=openbsd-ports&m=157645754310168&w=2
> 
> I got a response:
> 
> This could use "MAKE_ENV=TEST_POD=yes RELEASE_TESTING=''"
> so that tests work the same no matter the environment.
> 
> Other than that, OK afresh1@ if someone wants to import.
> ---------
> 
> I don't know what to make of the RELEASE_TESTING='' part.


This specifically *disables* release testing, no matter whether someone
decided to set it in their local environment.  It's mostly documenting
that we are choosing not to run those tests so that in the future folks
don't try.  I usually find that if the release testing Just Works, I
prefer to enable it.



> So I don't see a clear answer on what is right, wrong or ambivalent.
> I'm going to at least do this testing myself before submitting, since
> these are new vs updated ports.
> But what should or shouldn't end up in the tests in the Makefile
> I submit?

There is a lot of personal preference there.  My preference is to make
the ports tree not do something different depending on the environment
as it makes problems easier to understand.



> > Is this library useful for other (upcoming or existing) ports?
> 
> Yes, this is for upcoming LedgerSMB port.
> It is in the required section of the cpanfile.
> 
> https://github.com/ledgersmb/LedgerSMB/blob/master/cpanfile
> 
> Thanks,
> Chris Bennett
> 
> 
> 

-- 
andrew - http://afresh1.com

Real programmers don't document.
          If it was hard to write, it should be hard to understand.

Reply via email to