[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE:rules file and build directory




On 15 Jul 2015 9:03 am, "PICCA Frederic-Emmanuel" <frederic-emmanuel.picca@synchrotron-soleil.fr> wrote:
>
> >> In order to run the tests in my package I first have to build them (they
> >> are not built by the 'all' target). This requires a non-standard target
> >> (build-tests) of the upstream Makefile to be invoked.
> >> I have two solutions how I can deal with this:
> >> 1.) I change to the build directory (the directory where the rules
> >>     file invokes the upstream build system) and run 'make build-tests'
> >>     from within rules.
> >> 2.) Find a simple way how to call a custom target of the upstream
> >>     build system from within 'rules'.
>
>
> In fact I just checked in the debhelper.
> the dh_auto_test  target call the first running test , check target
>
> so if you add a make chech target, it will be executer by dh
>
>
> Now if you want to customize the target
>
> just
>
> override_du_auto_test:
>         <cmd du run the tests>
>
>
> Cheers
>
> Fred
>
> --
> To UNSUBSCRIBE, email to debian-mentors-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] A2A20EC3B8560D408356CAC2FC148E53B217733D@SUN-DAG3.synchrotron-soleil.fr">https://lists.debian.org/[🔎] A2A20EC3B8560D408356CAC2FC148E53B217733D@SUN-DAG3.synchrotron-soleil.fr
>

I second what Fred said.

The override on dh_auto_test exists for specific use cases where upstream deviates from what dh can automatically detect wrt the test suite.

Ghis


Reply to: