[Debian-pan-maintainers] Progress Report
RAHLI Oussama
oussama.rahli at synchrotron-soleil.fr
Fri Aug 2 16:53:15 BST 2024
Hello everyone,
This week, with the help of Mr. PICCA, we created integration tests for the orange-canvas-core and toontag projects. For toontag:
TestRunner : This test compiles test.cpp files using 'g++' with the specified libraries and then runs the generated binaries.
Content of TestRunner script:
#!/bin/sh -e
echo "Testing C++ library"
CXXFLAGS=-DNEWCPPSTD
INCLUDE_DIRS=-Itag
LIBS="-ltoontag $(pkgconf --libs lapack)"
export CXXFLAGS
for f in test/*.cpp; do
#echo "g++ -o ${f%.cpp} $CFLAGS -Isrc -Ibuild $f $LIBS -lm"
echo "g++ -o "${f%.cpp}" $INCLUDE_DIRS $f $LIBS"
g++ -o "${f%.cpp}" -DNEWCPPSTD=1 $INCLUDE_DIRS $f $LIBS
echo "Run ${f%.cpp}"
./"${f%.cpp}"
done
For orange-canvas-core:
Python : This test checks Python test files using all available versions of Python detected by py3versions and then runs the tests with 'pytest'.
Content of Python script:
#!/bin/sh -ex
for py in $(py3versions -r 2>/dev/null); do
echo "Testing with $py: ";
$py -m pytest --pyargs orangecanvas -k "not test_iconengine"
done
Best regards,
Oussama RAHLI
Student at INSA Rennes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-pan-maintainers/attachments/20240802/ac15ad41/attachment.htm>
More information about the Debian-pan-maintainers
mailing list