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

Re: gem2deb running tests during build




On July 8, 2018 10:01:36 PM GMT+05:30, Samuel Henrique <samueloph@debian.org> wrote:
>Hello Manas,
>
>Try to skip the test , using export DH_RUBY_IGNORE_TESTS = all and
>checking
>> it in sbuild if its running well.
>>
>
>Thank you, that solved. But i'm just wondering now, what would be the
>better approach, to ignore tests or to override the build target and
>prepare the environment to run the tests?

We should try to run the tests and if it is very hard, then only we should ignore it.

>The process of "preparing the environment" consist of:
>
>>     mkdir -p /tmp/fakehome/.wpscan
>>     # unzip before tests because tests need data
>>     unzip -o data.zip -d /tmp/fakehome/.wpscan/
>>     HOME=/tmp/fakehome RUBYLIB=$(CURDIR)/lib ruby
>debian/ruby-tests.rb
>>

Add override_dh_auto_test target to rules and add these commands.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.


Reply to: