[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-build-dev
Subject:    Re: RFR: JDK-8239860 Add support for testing the configure script
From:       Erik Joelsson <erik.joelsson () oracle ! com>
Date:       2020-02-24 15:37:52
Message-ID: bc7de6b1-9a39-73f6-4b62-e75c9b2b4fb3 () oracle ! com
[Download RAW message or body]

Looks good.

/Erik

On 2020-02-24 05:15, Magnus Ihse Bursie wrote:
> We've been sorely lacking a way to test the configure script, leading 
> to just pre-checkin adhoc testing.
>
> Here is a simple framework for running unit tests of functions in our 
> configure script. The initial tests included are more to be considered 
> placeholders.
>
> I put the assert function in util.m4 and not test.m4, since I think it 
> can be useful to add asserts not only in test code. I presume this 
> simple assert function will grow into a family as the need to assert 
> other things than string equality arises.
>
> test-configure.sh is essentially a stripped-down version of the main 
> make/autoconf/configure script. I've used the custom extension 
> mechanism to hook in the unit testing framework in configure.ac.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8239860
> WebRev: 
> http://cr.openjdk.java.net/~ihse/JDK-8239860-add-testing-of-configure/webrev.01
>
> /Magnus
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic