diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.gitignore b/.gitignore index 2d5a451..d2660f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ +/lxml-4.9.1.tar.gz +/lxml-4.9.2.tar.gz /lxml-4.9.2-no-isoschematron.tar.gz diff --git a/plans/etree-fromstring.py b/plans/etree-fromstring.py new file mode 100644 index 0000000..b400cc0 --- /dev/null +++ b/plans/etree-fromstring.py @@ -0,0 +1,7 @@ +import lxml.etree as et +s = 'ac' +x = et.fromstring(s) +t = x.find('bar').text +print(t) +if t != 'abc': + raise Exception() diff --git a/plans/smoke.fmf b/plans/smoke.fmf new file mode 100644 index 0000000..3ac2b3d --- /dev/null +++ b/plans/smoke.fmf @@ -0,0 +1,12 @@ +summary: Basic smoke test +discover: + how: shell + tests: + - name: /smoke/import-python-module + test: | + python3.11 -c 'import importlib as il; print(il.import_module("lxml"))' + - name: /smoke/etree-fromstring + test: | + python3.11 plans/etree-fromstring.py +execute: + how: tmt