diff mbox

[11/11] pkg/debian: run tests before creating packages

Message ID 1458590679-31835-1-git-send-email-anders.roxell@linaro.org
State Accepted
Commit 182298b57c3d67ffecbf676a88220e3716a4e112
Headers show

Commit Message

Anders Roxell March 21, 2016, 8:04 p.m. UTC
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 pkg/debian/rules | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Ricardo Salveti March 22, 2016, 9:53 p.m. UTC | #1
On Mon, Mar 21, 2016 at 5:04 PM, Anders Roxell <anders.roxell@linaro.org> wrote:
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
>  pkg/debian/rules | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/pkg/debian/rules b/pkg/debian/rules
> index 663bcdd..c155a5e 100755
> --- a/pkg/debian/rules
> +++ b/pkg/debian/rules
> @@ -13,6 +13,13 @@ include /usr/share/dpkg/default.mk
>  override_dh_autoreconf:
>         dh_autoreconf ./bootstrap
>
> +override_dh_auto_test:
> +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
> +       dh_auto_configure -- --enable-static --enable-test-vald \
> +               --enable-test-cpp --enable-test-helper
> +       $(MAKE) check
> +endif
> +
>  override_dh_auto_configure:
>         dh_auto_configure -- --enable-static
>
> --
> 2.1.4

The change itself is good, but I got one failure which might just be a
side effect of using trunk:

FAIL: ../../../test/validation/traffic_mngr/traffic_mngr_main

  Test: traffic_mngr_test_shaper ...FAILED
    1. traffic_mngr.c:1630  - pkts_rcvd_in_order == pkts_sent

Did you get that as well?

Thanks,
Anders Roxell March 23, 2016, 4:50 p.m. UTC | #2
On 22 March 2016 at 22:53, Ricardo Salveti <ricardo.salveti@linaro.org> wrote:
> On Mon, Mar 21, 2016 at 5:04 PM, Anders Roxell <anders.roxell@linaro.org> wrote:
>> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
>> ---
>>  pkg/debian/rules | 7 +++++++
>>  1 file changed, 7 insertions(+)
>>
>> diff --git a/pkg/debian/rules b/pkg/debian/rules
>> index 663bcdd..c155a5e 100755
>> --- a/pkg/debian/rules
>> +++ b/pkg/debian/rules
>> @@ -13,6 +13,13 @@ include /usr/share/dpkg/default.mk
>>  override_dh_autoreconf:
>>         dh_autoreconf ./bootstrap
>>
>> +override_dh_auto_test:
>> +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
>> +       dh_auto_configure -- --enable-static --enable-test-vald \
>> +               --enable-test-cpp --enable-test-helper
>> +       $(MAKE) check
>> +endif
>> +
>>  override_dh_auto_configure:
>>         dh_auto_configure -- --enable-static
>>
>> --
>> 2.1.4
>
> The change itself is good, but I got one failure which might just be a
> side effect of using trunk:
>
> FAIL: ../../../test/validation/traffic_mngr/traffic_mngr_main
>
>   Test: traffic_mngr_test_shaper ...FAILED
>     1. traffic_mngr.c:1630  - pkts_rcvd_in_order == pkts_sent
>
> Did you get that as well?

No I didn't get that, strange.
Did you try to run "./bootstrap && ./configure --enable-test-vald &&
make check"?

Cheers,
Anders
Ricardo Salveti March 23, 2016, 7:53 p.m. UTC | #3
On Mon, Mar 21, 2016 at 5:04 PM, Anders Roxell <anders.roxell@linaro.org> wrote:
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
>  pkg/debian/rules | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/pkg/debian/rules b/pkg/debian/rules
> index 663bcdd..c155a5e 100755
> --- a/pkg/debian/rules
> +++ b/pkg/debian/rules
> @@ -13,6 +13,13 @@ include /usr/share/dpkg/default.mk
>  override_dh_autoreconf:
>         dh_autoreconf ./bootstrap
>
> +override_dh_auto_test:
> +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
> +       dh_auto_configure -- --enable-static --enable-test-vald \
> +               --enable-test-cpp --enable-test-helper
> +       $(MAKE) check
> +endif
> +
>  override_dh_auto_configure:
>         dh_auto_configure -- --enable-static
>
> --
> 2.1.4

Reviewed-by: Ricardo Salveti <ricardo.salveti@linaro.org>
Ricardo Salveti March 23, 2016, 7:54 p.m. UTC | #4
On Wed, Mar 23, 2016 at 1:50 PM, Anders Roxell <anders.roxell@linaro.org> wrote:
> On 22 March 2016 at 22:53, Ricardo Salveti <ricardo.salveti@linaro.org> wrote:
>> On Mon, Mar 21, 2016 at 5:04 PM, Anders Roxell <anders.roxell@linaro.org> wrote:
>>> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
>>> ---
>>>  pkg/debian/rules | 7 +++++++
>>>  1 file changed, 7 insertions(+)
>>>
>>> diff --git a/pkg/debian/rules b/pkg/debian/rules
>>> index 663bcdd..c155a5e 100755
>>> --- a/pkg/debian/rules
>>> +++ b/pkg/debian/rules
>>> @@ -13,6 +13,13 @@ include /usr/share/dpkg/default.mk
>>>  override_dh_autoreconf:
>>>         dh_autoreconf ./bootstrap
>>>
>>> +override_dh_auto_test:
>>> +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
>>> +       dh_auto_configure -- --enable-static --enable-test-vald \
>>> +               --enable-test-cpp --enable-test-helper
>>> +       $(MAKE) check
>>> +endif
>>> +
>>>  override_dh_auto_configure:
>>>         dh_auto_configure -- --enable-static
>>>
>>> --
>>> 2.1.4
>>
>> The change itself is good, but I got one failure which might just be a
>> side effect of using trunk:
>>
>> FAIL: ../../../test/validation/traffic_mngr/traffic_mngr_main
>>
>>   Test: traffic_mngr_test_shaper ...FAILED
>>     1. traffic_mngr.c:1630  - pkts_rcvd_in_order == pkts_sent
>>
>> Did you get that as well?
>
> No I didn't get that, strange.
> Did you try to run "./bootstrap && ./configure --enable-test-vald &&
> make check"?

Fails as well, so approving the packaging change, and will track this
separately.

Thanks,
diff mbox

Patch

diff --git a/pkg/debian/rules b/pkg/debian/rules
index 663bcdd..c155a5e 100755
--- a/pkg/debian/rules
+++ b/pkg/debian/rules
@@ -13,6 +13,13 @@  include /usr/share/dpkg/default.mk
 override_dh_autoreconf:
 	dh_autoreconf ./bootstrap
 
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	dh_auto_configure -- --enable-static --enable-test-vald \
+		--enable-test-cpp --enable-test-helper
+	$(MAKE) check
+endif
+
 override_dh_auto_configure:
 	dh_auto_configure -- --enable-static