Skip to content

integrate qucs tests into qucs package#389

Merged
guitorri merged 42 commits intoQucs:masterfrom
felix-salfelder:qucs-test
Jan 25, 2016
Merged

integrate qucs tests into qucs package#389
guitorri merged 42 commits intoQucs:masterfrom
felix-salfelder:qucs-test

Conversation

@felix-salfelder
Copy link
Copy Markdown
Member

currently some tests are not included with qucs. including these tests will increase test coverage.

with this, make check will run all tests we have, not just few of them.

- add SUFFIXES for .h->.moc.cpp rule
- add various _HEADERS
- distribute qucs.qrc
- add several qrc files
- add more filter headers
- sort out qm rule
- add translation files to dist
using MAINTAINER_MODE does not work, if it it not enabled.
remove maintainer mode condition.
rename --with-mkadms to --with-admsxml.
this is required to generate qucsdefs.h.
still don't advertise unless DEBUG (for some reason).
autotools does this. dont try manually.
(perhaps autotools could not do this back then...)
also editing an xml file. unsure, what this is about.
(does not work yet, need to fix docbuild first)
this works around MAINTAINER_MODE, which is no longer used
use one of them in $srcdir sanity check in configure.ac
qucs-doc conditional only affects toplevel Makefile.am
- set AC_CONFIG_AUX_DIR, so automake will not guess (wrongly)
- dont mention autogen in output
- AM_PROG_AR. required according to automake output (-Wall)
@felix-salfelder felix-salfelder force-pushed the qucs-test branch 6 times, most recently from 3e4a602 to 63c75fc Compare October 1, 2015 22:47
@felix-salfelder
Copy link
Copy Markdown
Member Author

about coverage. We could have branches specialized for each task. Coverage, static analysis, packaging, doxygen, nightly builds... sure. The .travis.yml grew as I managed to hook more stuff in it. Perhaps it is time to clean it up.

i will/might start/experiment with a develop branch. i am not yet fully familiar with the travis thing. lets add/reassign tasks to other branches as it seems appropriate.

The wget patch 8765e8d is really about Googletest integration (I still don't get what you mean by software distribution...).

in my understanding. a distribution is something that puts together and delivers packages. qucs is one such package. imo it should not try to process other packages.

NB: i am aware of the ADMS "sub"package, i consider this a leftover from times without an ADMS release tarball. or should we also ship a kernel a shell and a c++-compiler...? (imo: no. others are truly better at this).

facilitate the download and compilation.

wget in configure is clearly beyond the scope of the configure program. configure is originally meant to create makefiles (+ related things) -- and this is what the user expects it to do (least-surprise-stuff...). note that the wget command leaks user data, and can fail if there's a firewall. let me suggest to turn the wget block into something like the following.

if $something
  AC_MSG_ERROR([not found. consider running get-$packagename.sh to fetch from $somewhere])
fi

to reduce the surprise factor. i don't insist on removing the functionality :).

@felix-salfelder felix-salfelder force-pushed the qucs-test branch 2 times, most recently from 52bedae to 200c6c1 Compare October 4, 2015 19:13
this file has unsafe timestamps. use config.h instead.
(don't know what else this is used for (cmake?))
"./bootstrap here" does not recurse. sometimes faster.
@felix-salfelder felix-salfelder force-pushed the qucs-test branch 4 times, most recently from 5b46c56 to f035506 Compare October 8, 2015 18:28
- dont write to $(srcdir) during configure
- simplify --with-gtest semantics
- dont download gtest automatically
- use GTEST_CPPFLAGS for gtest CPPFLAGS.
- add gtest download helper

TODO: add wget to .travis.yml
@felix-salfelder felix-salfelder force-pushed the qucs-test branch 3 times, most recently from 68cd410 to 7808de9 Compare October 8, 2015 19:28
============================================================================
Testsuite summary for qucs-core 0.0.19
============================================================================
\# TOTAL: 1
\# PASS:  0
\# SKIP:  1
\# XFAIL: 0
\# FAIL:  0
\# XPASS: 0
\# ERROR: 0
============================================================================

.. rather than ignore it

============================================================================
Testsuite summary for qucs-core 0.0.19
============================================================================
\# TOTAL: 0
\# PASS:  0
\# SKIP:  0
\# XFAIL: 0
\# FAIL:  0
\# XPASS: 0
\# ERROR: 0
============================================================================
@felix-salfelder felix-salfelder changed the title integrate qucs tests into qucs package (WIP) integrate qucs tests into qucs package Nov 5, 2015
@felix-salfelder
Copy link
Copy Markdown
Member Author

this seems to be working as intended now..

.. in an attempt to figure out what's wrong with appvey0r
@guitorri
Copy link
Copy Markdown
Member

Looking good! Is there anything else you want to do here?

Yesterday I was about to merge this.
I got some issue with make distcheck (dist and check worked), related to qucs-core\tests\basic. I will try to reproduce.

@felix-salfelder
Copy link
Copy Markdown
Member Author

Looking good! Is there anything else you want to do here?

no. that's it. note that this is actually 3 PRs. when in doubt, merge the others first.

I got some issue with make distcheck (dist and check worked), related to qucs-core\tests\basic. I will try to reproduce.

thanks. yes -- lets fix issues first, let me know the details.

yesterday, after I merged master, something strange happened (see bd822ea for the workaround). if you have an idea, lets properly fix this as well.

@guitorri guitorri added this to the 0.0.19 milestone Jan 25, 2016
@guitorri
Copy link
Copy Markdown
Member

I saw that this includes #361 and #387. I am OK with merging this PR. I also want to see if GitHub will close the intermediate PRs.

The distcheck issue I mentioned did not surfaced again.

I have two small patches to send later. One includes to distdir some pdf figures needed by qucs-doc. If I try to extract and build the tarball made run make dist in another location latex complains about missing figures.

The qucs-test/.git/ directory is also being copied into distdir. Yes, we need to improve this later.

I will merge this and we work from there.

Thank you so much!

guitorri added a commit that referenced this pull request Jan 25, 2016
* fix `make dist`, `make check` and `make distcheck`
* integrate qucs tests into qucs package
@guitorri guitorri merged commit 930b6fe into Qucs:master Jan 25, 2016
@felix-salfelder felix-salfelder deleted the qucs-test branch January 25, 2016 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants