summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2013-12-16Fix test failure: -list-versions must not include .confThiago Macieira1-0/+1
The output should match what gets put on the environment variable, in the -qt argument, etc. Change-Id: Ibab71182d7962cdd1ffa8e175810bfab987a3974 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
2013-01-18Accept -run-tool if and only if the tool wasn't already selectedThiago Macieira1-56/+68
That means we invert the order of overriding. Previously, -run-tool overrode the environment, which overrode argv[0]. Now, argv[0] overrides the environment, which overrides -run-tool. Change-Id: I60bd5e1397cb5a6cb8b0df9c1c3ebba6210ed920 Reviewed-by: Sune Vuorela <sune@vuorela.dk> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2013-01-02Accept the -print-env and -list-versions commands only on "qtchooser"Thiago Macieira1-9/+15
Do not accept those options when called with another tool, especially when using argv[0]. This allows the target tools to have options with identical names. Change-Id: I7c2881100ccc10c73ddfc5d15dcc7f89555392cf Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2012-12-29Make it possible to run the tests with Qt 4 tooThiago Macieira1-1/+5
Change-Id: Ied0efadce29348ea3f07a5238ac65f7f8bed35dc Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
2012-12-29Don't require private tests for this testThiago Macieira1-1/+0
They are not required. This was a left-over from when qtchooser was part of qtbase Change-Id: Ie82fd50bf2e50b11b1b3d65b94638c27f5288cec Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
2012-12-29Remove the test-mode variablesThiago Macieira7-3/+3
One of the bugs I found during development was in the code handling the XDG data paths, which wasn't exercised during testing. So exercise it instead. Now the test-mode build will be exact the same as the normal code, except that it won't actually run the target executable. Change-Id: I829ed252836b2b581cd61c7dfab9d3061377e8f0 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2012-12-19Make it easier to test by building a separate test applicationThiago Macieira1-2/+2
Change-Id: Icff0b46578a5b857fcebbdb731e533c6e98e4f6f Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2012-12-19Long live the Qt tool chooserThiago Macieira10-0/+391
This tool wraps the execution of the other tools. It's supposed to live on systems' /usr/bin dir or equivalent. WIP: need to compile on Mac, I need to know which libs are necessary for the FSFindFolder function (can't find the documentation on Apple's website). Change-Id: I1c429a159a4e02b78a835888d470514d8e4a23a7 Reviewed-by: Lars Knoll <lars.knoll@digia.com>