Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package FreeCAD for openSUSE:Factory checked in at 2022-02-09 20:39:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/FreeCAD (Old) and /work/SRC/openSUSE:Factory/.FreeCAD.new.1898 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "FreeCAD" Wed Feb 9 20:39:04 2022 rev:34 rq:952284 version:0.19.3 Changes: -------- --- /work/SRC/openSUSE:Factory/FreeCAD/FreeCAD-test.changes 2020-05-07 14:51:36.906093126 +0200 +++ /work/SRC/openSUSE:Factory/.FreeCAD.new.1898/FreeCAD-test.changes 2022-02-09 20:40:03.690499606 +0100 @@ -1,0 +2,7 @@ +Sun Feb 6 17:33:16 UTC 2022 - Stefan Br??ns <stefan.bru...@rwth-aachen.de> + +- Run unittests manually, to make test failures visible between + noisy output +- Bump version + +------------------------------------------------------------------- --- /work/SRC/openSUSE:Factory/FreeCAD/FreeCAD.changes 2022-01-18 00:36:47.777830763 +0100 +++ /work/SRC/openSUSE:Factory/.FreeCAD.new.1898/FreeCAD.changes 2022-02-09 20:40:03.710499654 +0100 @@ -1,0 +2,6 @@ +Sun Feb 6 17:31:23 UTC 2022 - Stefan Br??ns <stefan.bru...@rwth-aachen.de> + +- Pre-generate parsetab.py for ply.yacc in OpenSCAD and FEM Mods: + https://tracker.freecadweb.org/view.php?id=4840 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ FreeCAD-test.spec ++++++ --- /var/tmp/diff_new_pack.uOb35I/_old 2022-02-09 20:40:05.214503251 +0100 +++ /var/tmp/diff_new_pack.uOb35I/_new 2022-02-09 20:40:05.218503261 +0100 @@ -17,13 +17,13 @@ Name: FreeCAD-test -Version: 0.19.0 +Version: 0.19.3 Release: 0 Summary: Meta source package that runs the FreeCAD testsuite when built License: GPL-2.0-or-later AND LGPL-2.0-or-later Group: Productivity/Graphics/CAD URL: http://www.freecadweb.org/ -BuildRequires: FreeCAD +BuildRequires: FreeCAD = %{version} %if 0%{?suse_version} > 1500 BuildRequires: gmsh %endif @@ -36,10 +36,29 @@ %build export LC_ALL="C.utf-8" -file=`mktemp` -if ! FreeCAD --console --write-log --log-file="$file" --run-test 0; then - cat "$file" - exit 1 -fi +export PYTHONPATH=%{_libdir}/FreeCAD/lib +python3 -c "\ +import FreeCAD +import unittest +print(FreeCAD.__unit_test__) +results = {} +for name in FreeCAD.__unit_test__: + suite = unittest.TestSuite() + suite.addTest(unittest.defaultTestLoader.loadTestsFromName(name)) + print(\"Running: {}\".format(name), file=sys.stderr) + r = unittest.TextTestRunner() + res = r.run(suite) + results[name] = res + +totalerrors = 0 +totalfailures = 0 +for [name,res] in results.items(): + print(name) + print(res) + totalerrors += len(res.errors) + totalfailures += len(res.failures) + +exit((totalerrors + totalfailures) > 0) +" %changelog ++++++ FreeCAD.spec ++++++ --- /var/tmp/diff_new_pack.uOb35I/_old 2022-02-09 20:40:05.258503356 +0100 +++ /var/tmp/diff_new_pack.uOb35I/_new 2022-02-09 20:40:05.262503366 +0100 @@ -80,6 +80,7 @@ # Qt5 & python3 BuildRequires: python3-devel BuildRequires: python3-matplotlib +BuildRequires: python3-ply BuildRequires: python3-pybind11-devel BuildRequires: python3-pycxx-devel BuildRequires: python3-pyside2-devel @@ -204,6 +205,26 @@ %install %cmake_install +# create parsetab.py for yacc.ply (FEM) +# https://tracker.freecadweb.org/view.php?id=4840 +pushd %{buildroot}/%{_libdir}/FreeCAD/Mod/Fem +python3 -B femtools/tokrules.py +rm femtools/parser.out +# create parsetab.py for yacc.ply (OpenSCAD) +export PYTHONPATH=%{buildroot}/%{_libdir}/FreeCAD/lib +export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}/FreeCAD/lib +cd ../OpenSCAD +python3 -B -c "\ +import ply.lex as lex +import ply.yacc as yacc +import importCSG +import tokrules +from tokrules import tokens +lex.lex(module=tokrules) +yacc.yacc(module=importCSG,outputdir=\"./\") +" +rm parser.out + %suse_update_desktop_file -r org.freecadweb.FreeCAD Education Engineering # Remove unneeded files