-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pycbf 0.9.7 does not pass tests out of the box. #55
Comments
I saw that some binary files are used to do some test. Could you explain what is the right way to test thaht cbflib is working. thanks |
I did a mistake during the build of cbflib. I do not have nuweb so I generated the setup.py for Python3 from the m4/setup.py whcih does not contain the thanks |
I last ran all tests under Debian 11 using make tests. Please point me to
a download url for your kit.
…On Tue, Aug 9, 2022, 5:49 AM picca ***@***.***> wrote:
I saw that some binary files are used to do some test. Could you explain
what is the right way to test thaht cbflib is working.
thanks
—
Reply to this email directly, view it on GitHub
<#55 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABB6EAOUZGAVVDLXGJYPKT3VYISSNANCNFSM557VGFJQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
The Debian package of cbflib is here
https://salsa.debian.org/science-team/cbflib
Do you know how to build a Debian package ?
```
apt install git-buildpackage
gbp clone https://salsa.debian.org/science-team/cbflib
cd cbflib && gbp buildpackage
```
Cheers, I will be in hollydays until 29 of August.
|
This Dockerfile runs everything under FROM debian:11
RUN apt-get update && \
apt-get install -y \
build-essential m4 texlive wget git rsync cmake gfortran links \
python2 python-setuptools python2-dev \
python3 python3-setuptools python3-dev python3-matplotlib python3-numpy
# Create a user to build; the CBFlib tarballs encode user ID, so we cannot
# build as root without rewriting the tar calls to "tar --no-same-owner".
RUN useradd -m cbfbuilder
USER cbfbuilder
# Get CBFlib
# NOTE: We want 0.9.7 but the actual tagged commit has various build
# errors e.g. nuweb at least. So get the latest, even though this
# strictly isn't testing the actual release
RUN git clone https://github.com/yayahjb/cbflib /home/cbfbuilder/cbflib
WORKDIR /home/cbfbuilder/cbflib
# Download the test data files explicitly
RUN make $(pwd)/../CBFlib_0.9.7_Data_Files_Input $(pwd)/../CBFlib_0.9.7_Data_Files_Output
# Build NuWeb explicitly (rather than implicitly when running tests)
RUN make $(pwd)/bin/nuweb
RUN make all
# Build other things that "all" doesn't include, but tests do... like pycbf
RUN make $(pwd)/pycbf/_pycbf.so $(pwd)/py2cbf/_py2cbf.so
RUN make tests Albeit with the main branch, not the tagged release, because of various failures (e.g. the built-in nuweb compilation). It passes... most tests. The It's hard to tell definitively otherwise because it appears for the most part that running the tests just runs them, it doesn't actually check they pass; test failures don't actually cause a failed exit code (e.g. the only way to tell the above py2cbf error failed is to grep for
So it does indeed seem to be true that the tests do not pass out-of-the-box, as long as that box is the latest main not the release, and are run on a clean debian 11. |
Hello, I am preparing the cbflib 0.9.7 package for Debian.
I now have a package built with only the Python3 version pf pycbf. I want to add autopkgtest in order to have integration tests which checks that nothing break when a dependency change. So my first attempt was to execute the 4 test of the pycbf directory. But it end-up with this error
This issue cause also troubles when I try to run the dxtbx test suite.
This problem seems to be related to the handling of string/bytes.
Can you reproduce this issue on your system ?
thanks
The text was updated successfully, but these errors were encountered: