Mailinglist Archive: opensuse-packaging (192 mails)
| < Previous | Next > |
Re: [opensuse-packaging] Question about a self test
- From: Nelson Marques <nmo.marques@xxxxxxxxx>
- Date: Wed, 20 Apr 2011 19:06:55 +0000
- Message-id: <BANLkTi=7j9WHfGQRdFGziYfStBvN5s4VTQ@mail.gmail.com>
Hi,
Most of the stuff for unity also has those pesky tests that require a
real runtime environment to build. I would disable it for packaging,
that's what I did for Unity.
NM
On Wed, Apr 20, 2011 at 7:03 PM, Greg Freemyer <greg.freemyer@xxxxxxxxx> wrote:
--
Nelson Marques
/* As cicatrizes lembram-nos de onde estivemos, mas não ditam para onde vamos */
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
Most of the stuff for unity also has those pesky tests that require a
real runtime environment to build. I would disable it for packaging,
that's what I did for Unity.
NM
On Wed, Apr 20, 2011 at 7:03 PM, Greg Freemyer <greg.freemyer@xxxxxxxxx> wrote:
All,
I'm packaging a python program that has an included self test.
If I manually build, install, test on my workstation, the test runs to
completion.
If I try it online at OBS, I get a failure. What do I need to have in
the specfile for it to run?
The specfile code is:
===
%build
export CFLAGS="%{optflags}"
python setup.py build
cd test
python test_pyrit.py
===
I also tried to call the self test at the end of the install stanza.
Same results.
The log shows:
===
+ cd test
+ python test_pyrit.py
Traceback (most recent call last):
File "test_pyrit.py", line 41, in <module>
import cpyrit.config
ImportError: No module named cpyrit.config
error: Bad exit status from /var/tmp/rpm-tmp.3DeLZI (%build)
===
Thanks
Greg
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
--
Nelson Marques
/* As cicatrizes lembram-nos de onde estivemos, mas não ditam para onde vamos */
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
| < Previous | Next > |