Skip to content

Testing

zetok edited this page Mar 22, 2015 · 11 revisions

Regression testing

Resource: http://wiki.winehq.org/RegressionTesting

I've based steps below on assumption that one did read link above ↑, even though it's not about qTox.

Differences and general tips.

$ qmake && make

It ↑ will create qtox binary in your qTox directory. You may want to use more than 1 thread when compiling, e.g. to use 2 threads:

$ qmake && make -j2
  • For compiling with ccache, you'll need to add QMAKE_CXX="ccache g++" to your qmake command, i.e.:
$ qmake QMAKE_CXX="ccache g++"
  • Before issuing git bisect good / bad, you should clear changed files. It will remove also compiled binary:
$ make clean && git checkout -f
  • To prevent damaging your Tox profile / history, you may want to make qTox use temporary profile. Thus create temporary directory where it'll be stored:
$ mkdir -p /tmp/.config/tox && touch /tmp/.config/tox/profile.tox

and then make qTox use it when launching from compiled binary:

$ HOME="/tmp/" ./qtox -p profile
Clone this wiki locally