You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.txt 2.6KB

3 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. This directory contains scripts for running the automatic tests of OpenViBE.
  2. Dependencies
  3. ------------
  4. To use these tests, you need to have openvibe already successfully compiled with the NON-ide buid.
  5. On windows, you need to have
  6. - ctest (cmake suite; usually in openvibe's dependencies)
  7. - git command-line tools. The git executable needs to be on PATH.
  8. On Linux fedora, you need to install :
  9. # yum install cmake git redhat-lsb gcc-c++ expect
  10. Execute test scripts
  11. --------------------
  12. Call "ctest -T Test" in folder build/extras-Release/
  13. How to add a new test
  14. ---------------------
  15. You can add new test using a DartTestFile.txt placed in the test directory of a specific module.
  16. For example, designer specific tests should be placed in DartTestFile.txt in applications/platform/designer/test/
  17. And specific test for data generation plugin should be placed in DartTestFile.txt in plugins/processing/data-generation/test/
  18. To be sure that the test is executed, you need to have the relevant subdirectories declared in file test/CTestfile.cmake.
  19. For example,
  20. ...
  21. SUBDIRS("${CTEST_SOURCE_DIRECTORY}/applications/platform/designer/test")
  22. SUBDIRS("${CTEST_SOURCE_DIRECTORY}/plugins/processing/data-generation/test")
  23. ...
  24. There is an example of a test using Sinus Oscillator in plugins/processing/data-generation/test/DartTestFile.txt.
  25. Test GUI using sikuli-ide
  26. -------------------------
  27. *** WARNING : THE SIKULI TESTS ARE NOT CURRENTLY MAINTAINED AND PROBABLY WILL NOT WORK ***
  28. If you have installed sikuli-ide in your linux machine them some GUI test are launch.
  29. For GUI test with sikuli we need a complete gtk windows manager. Actually, we only test with gnome whole package.
  30. You need to set the same GTK icon theme between machine that generate test and slave.
  31. You can install (on ubuntu) :
  32. sudo aptitude install gnome-tweak-tool ubuntu-mono ttf-ubuntu-font-family light-themes dmz-cursor-theme
  33. them lanch :
  34. gnome-tweak-tool
  35. switch icon theme to Ubuntu-Mono-Dark
  36. switch GTK+ theme to Ambiance
  37. if there is Windows theme then switch to Ambiance
  38. switch Cursor theme to DMZ-White
  39. Some remarks
  40. ------------
  41. - The tests may run designer with no GUI. In Linux this still needs a X11 context. So you need to be sure that the test can access an X server.
  42. If you run on a virtual machine that doesn't start X by default, getting X up can be achieved by automatic start-up of "Xorg -ac&" command to ensure that X server is available.
  43. Thats also why we need to define DISPLAY environment variable before launching the tests.
  44. - For designing new tests, use the existing DartTestFile.txt files as a starting point