azmeuk
azmeuk

Reputation: 4516

How to select which test to run with GLib testing suite?

I have made several tests with GLib testing framework. I launch them by running "make check" in my test directory. How can I do to run only one test, for example, foobar ? Is there a command such as 'make check-foobar' ?

Thank you for your help.

Upvotes: 0

Views: 468

Answers (1)

drahnr
drahnr

Reputation: 6886

so you used gtester right, didn't do a man gtester?

You can use gtester -p=/path/a/single/test/is/registered/to test-binary.bin


If you can call it via make check /some/path depends on your buildsystem (Makefile, autotools, waf, scons, CMake,.. and the associated config files, which you did not provide)

Upvotes: 3

Related Questions