Skip to content

Commit

Permalink
GUITESTS: Remove the running script.
Browse files Browse the repository at this point in the history
The script is available in another repository. I don't want to
distribute it with Cppcheck sources for now. Maybe if and when
there is more interest towards GUI tests...
  • Loading branch information
kimmov committed Aug 11, 2011
1 parent d698e24 commit 2ef4e6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 205 deletions.
10 changes: 3 additions & 7 deletions gui/test/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ Running
As each test is compiled as single executable binary you can run the test just
by running the executable.

If you want to run all the tests, you can run them all using the runtests.py
-script. Just run the script in the tests root folder:
- ./runtests in linux
- python runtests.py in Windows

The script runs all the test binaries it founds and then outputs the total
number of tests passed / failed (or not run).
You can get from
http://bitbucket.org/kimmov/testrun
a script which runs all the tests and collects the results.

This comment has been minimized.

Copy link
@matthiaskrgr

matthiaskrgr Jun 18, 2014

Collaborator

Hey, how do I run the scripts/the test?

when I copy the script into gui/tests and run it, I get

Tests directory: /home/matthias/vcs/github/cppcheck/gui/test

TEST SUMMARY:
  Total tests:   0
  Passed tests:  0
  Failed tests:  0
  Skipped tests: 0

make check in test directory fails as well

qmake-qt4
lrelease-qt4 test.pro
lrelease warning: Met no 'TRANSLATIONS' entry in project file 'test.pro'
make
cd benchmark/ && make -f Makefile 
make[1]: Entering directory '/home/matthias/vcs/github/cppcheck/gui/test/benchmark'
cd simple/ && make -f Makefile 
make[2]: Entering directory '/home/matthias/vcs/github/cppcheck/gui/test/benchmark/simple'
make[2]: *** No rule to make target '../externals/tinyxml/tinyxml2.cpp', needed by '../../build/tinyxml2.o'.  Stop.
make[2]: Leaving directory '/home/matthias/vcs/github/cppcheck/gui/test/benchmark/simple'
Makefile:39: recipe for target 'sub-simple-make_default-ordered' failed
make[1]: *** [sub-simple-make_default-ordered] Error 2
make[1]: Leaving directory '/home/matthias/vcs/github/cppcheck/gui/test/benchmark'
Makefile:45: recipe for target 'sub-benchmark-make_default-ordered' failed
make: *** [sub-benchmark-make_default-ordered] Error 2

This comment has been minimized.

Copy link
@kimmov

kimmov Jun 18, 2014

Author Contributor

By quick look those errors seem tinyxml-related. Obviously these GUI tests haven't been updated for other changes..

For more info about Qt Test -module: http://qt-project.org/doc/qt-5/qtest-tutorial.html

For real quick, compile (like you tried) and then just execute the test executable.

The script just runs all the test executables and collects results. If there are no test executables it can found, there is nothing to run..


198 changes: 0 additions & 198 deletions gui/test/runtests.py

This file was deleted.

0 comments on commit 2ef4e6f

Please sign in to comment.