Skip to content

Testing

An-dy edited this page Jun 27, 2015 · 11 revisions

Audio / Video testing

Use Echobot for testing audio and video. If you start a voice/video call with Echobot, it will echo back all audio & video you send it with a 1-2 second delay. Echobot's ID can be found at Toxme

Web-cam simulation (Linux):

Download, compile & install v4l2loopback (Debian/Ubuntu/Mint: aptitude install v4l2loopback-dkms).

modprobe v4l2loopback max_width=800 max_height=600

ffmpeg -loop 1 -y -i testfile_800x600.png -f v4l2 /dev/video0

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 core when compiling, e.g. to use 4 threads:

$ qmake && make -j4
  • For compiling with ccache, you'll need to have it properly installed, so which g++ reports for ccache binary or just 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