Refactored API checker to test custom modules
authorAdriano Rezende <adriano.rezende@openbossa.org>
Mon, 17 Jan 2011 22:58:54 +0000 (19:58 -0300)
committerAdriano Rezende <adriano.rezende@openbossa.org>
Mon, 17 Jan 2011 23:49:39 +0000 (20:49 -0300)
commitba71b6c18ba80c6f67af345e0ebf3f929bf5e057
tree912c6d05abdd43025226b49d116a80ca576b01e6
parentb48627130a623317906c5dfb525b2c2a38787317
Refactored API checker to test custom modules

Improvements:
  - Generate a single executable instead of multiple ones
  - Removed qml test files (created embedded test sources)
  - Support custom tests (passing a module name by argument)

In order to test a module you can do like below:
  $ ./tst_apicheck "Qt.labs.components.custom 1.0"

You can also pass an import path in the second parameter:
  $ ./tst_apicheck "Qt.labs.components.custom 1.0" /usr/local/Qt-4.7/imports

Signed-off-by: Adriano Rezende <adriano.rezende@openbossa.org>
29 files changed:
tests/apicheck/apicheck.pro
tests/apicheck/base/apicheckbase.cpp [new file with mode: 0644]
tests/apicheck/base/apicheckbase.h
tests/apicheck/base/apicheckbase.pri [deleted file]
tests/apicheck/busyindicator/ApiCheckBusyIndicator.qml [deleted file]
tests/apicheck/busyindicator/apicheck_busyindicator.cpp
tests/apicheck/busyindicator/apicheck_busyindicator.h [new file with mode: 0644]
tests/apicheck/busyindicator/busyindicator.pro [deleted file]
tests/apicheck/button/ApiCheckButton.qml [deleted file]
tests/apicheck/button/apicheck_button.cpp
tests/apicheck/button/apicheck_button.h [new file with mode: 0644]
tests/apicheck/button/button.pro [deleted file]
tests/apicheck/checkbox/ApiCheckCheckBox.qml [deleted file]
tests/apicheck/checkbox/apicheck_checkbox.cpp
tests/apicheck/checkbox/apicheck_checkbox.h [new file with mode: 0644]
tests/apicheck/checkbox/checkbox.pro [deleted file]
tests/apicheck/main.cpp [new file with mode: 0644]
tests/apicheck/radiobutton/ApiCheckRadioButton.qml [deleted file]
tests/apicheck/radiobutton/apicheck_radiobutton.cpp
tests/apicheck/radiobutton/apicheck_radiobutton.h [new file with mode: 0644]
tests/apicheck/radiobutton/radiobutton.pro [deleted file]
tests/apicheck/slider/ApiCheckSlider.qml [deleted file]
tests/apicheck/slider/apicheck_slider.cpp
tests/apicheck/slider/apicheck_slider.h [new file with mode: 0644]
tests/apicheck/slider/slider.pro [deleted file]
tests/apicheck/textfield/ApiCheckTextField.qml [deleted file]
tests/apicheck/textfield/apicheck_textfield.cpp
tests/apicheck/textfield/apicheck_textfield.h [new file with mode: 0644]
tests/apicheck/textfield/textfield.pro [deleted file]