On Tue, Jul 06, 2010 at 04:52:39PM +0100, Julien Cristau wrote:

[...]
> > /build/buildd-libept_1.0.1-ia64-wbAihS/libept-1.0.1/ept/apt/apt.test.h: 
> > 117: assertion `record.find("Package: sp") != string::npos' failed;
> > (6/10) Apt: ......--> FAILED: (6/13) rawRecord (caught signal 6)
[...]
> I've been unable to reproduce the failures locally, but the package was
> retried on some arches and failed again.  I'm not really comfortable
> patching the tests without understanding why they failed or at least
> reproducing the failure...

I can look into it on the 13th of July.

If someone would like to look at it before the 13th while I'm away,
adding "cerr << record" before line 117 would show what did apt find
instead of sp.

It could be possible to test the libept test environment using apt only.
Currently, things are set up with these commands:

  mkdir -p test-env/etc test-env/state/lists/partial
                   test-env/cache test-env/debtags
                   test-env/cache/archives/partial test-env/desktop
  sed -e s,i386,${ARCH}, < ${datadir}/packagelist > 
test-env/state/lists/${listfile}
  cp -a ${datadir}/etc/sources.list test-env/etc/
  sed -e s,i386,${ARCH}, < ${datadir}/dpkg-status > test-env/dpkg-status
  cp -a ${datadir}/desktop/*.desktop test-env/desktop/
  cp ${datadir}/debtags/package-tags test-env/debtags/test.tag
  cp ${datadir}/debtags/vocabulary test-env/debtags/test.voc
  mkdir -p test-env/debtags/empty
  mkdir -p test-env/debtags/user
  mkdir -p test-env/xapian/
  mkdir -p test-env/popcon/
  mkdir -p test-env/popcon/empty
  cp -a ${datadir}/popcon/all-popcon-results.txt.gz test-env/popcon/
  cp -a ${datadir}/popcon/popularity-contest test-env/popcon/

And these custom apt settings:

  _config->Set("Initialized", 1);
  _config->Set("Dir", TEST_ENV_DIR);
  _config->Set("Dir::Cache", "cache");
  _config->Set("Dir::State", "state");
  _config->Set("Dir::Etc", "etc");
  _config->Set("Dir::State::status", TEST_ENV_DIR "dpkg-status");

So with a bit of fiddling and several -o options passed to apt, it
should be possible to run "apt-get update" and "apt-cache show sp" to
see if the bug is reproduced with libapt alone.


Ciao,

Enrico

-- 
GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini <enr...@enricozini.org>

Attachment: signature.asc
Description: Digital signature

Reply via email to