aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/trackExternalProductChanges
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Remove some dependencies on profilesChristian Kandeler2023-09-111-0/+5
| | | | | | | | | Various conditional tests were erroneously skipped when run without an explicit profile. Fix this by checking the actual toolchain used instead of profile contents. Change-Id: I9cc589f038d76112998a126cce4bf314a57c742e Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* Remove the base module import from most test data projectsJoerg Bornemann2018-06-221-1/+0
| | | | | | | | Keep the base import in blackbox/testdata/deprecated-property to ensure we don't accidentally break it. Change-Id: I790da21a7490ec9c1b0335f45e8707e7e04daa7c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Give test project files consistent file namesJoerg Bornemann2017-02-231-0/+0
| | | | | | | | Having multiple project files named just "project.qbs" makes switching buffers harder in IDEs. Change-Id: I847c869292815cc534f903664eb01768f73286b1 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Deprecate loadFile and loadExtension in favor of requireJake Petroules2017-02-151-1/+1
| | | | | | | | | | | | This is more in line with mainstream JavaScript (especially node.js) which uses the CommonJS/RequireJS scheme for loading external modules. [ChangeLog] The loadFile and loadExtension functions are deprecated in favor of the new require function, which accepts arguments of either form accepted by the deprecated functions. Change-Id: Icc00aa3eb7c136a5be787f28ef38435e4ce261bb Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Update license headersIikka Eklund2016-08-294-0/+112
| | | | | | | | | | Patch-set 2 includes *.cpp *.c Every source file needs to have up-to-date license headers in order to pass ci. Change-Id: Ie6e493097af6f7dd6a8adff170eb856f496e689e Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* Update license headersIikka Eklund2016-08-291-0/+27
| | | | | | | | | | Patch-set 1 includes *.h Every source file needs to have up-to-date license headers in order to pass ci. Change-Id: Ib6cf3ac47dfba6dff262fded44bc952aef3bda8b Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* fix imports in tst_blackbox::trackExternalProductChangesJoerg Bornemann2016-05-022-1/+2
| | | | | | Change-Id: Id07656db1318765d2d976ea1bb1a2e750ff11296 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* Fix trackExternalProductChanges testJoerg Bornemann2016-03-192-2/+2
| | | | | | | | | The parameter 'qbs' of filesFromFs was unused, and filesFromFs used the magic variable 'path' which is only accidentally available in .js files. Change-Id: I7804aae3207cfcb300d658e9c634fae8e421d4b2 Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com> Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* Roll the global getEnv and currentEnv functions into Environment.Jake Petroules2015-12-011-2/+3
| | | | | | Change-Id: Ife3f9c53ad3fb43364c53fe7c6c08aa3983b9221 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Change tracking: Be more sensitive to environment changes.Christian Kandeler2015-10-263-0/+9
| | | | | | | | | | | | | | Contrary to what the old code assumed, it is not enough to compare the values of environment variables that were used while resolving the project: A command run by a transformer might be sensitive to environment changes as well (e.g. gcc to CPLUS_INCLUDE_PATH). Note: This does not mean we will rebuild everything when anything in the environment changes; it means that *if* a file is rebuilt, its command will see the new environment instead of the old one. Change-Id: I7916b8c40f1440564034ec3317c549ebd4e988a0 Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Do not share product properties with artifacts.Christian Kandeler2014-02-262-3/+3
| | | | | | | | | | | | | | Since products potentially share their property maps with their groups, artifacts get product properties such as "name" and "destinationDirectory". This is strange and can mess with change tracking. Therefore we split up the product's property map in two: One contains the module properties and is potentially shared with groups, the other has the actual product properties and is not shared. This patch also removes a workaround from an autotest that was required until now to prevent a false positive in change tracking. Change-Id: Ia1f1f0ce32669fd893a99f809753df526bf1442a Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Merge remote-tracking branch 'origin/1.1'Joerg Bornemann2014-01-152-4/+6
|\ | | | | | | | | | | | | | | Conflicts: tests/auto/blackbox/testdata/trackExternalProductChanges/project.qbs tests/auto/blackbox/tst_blackbox.cpp Change-Id: I7b5e72e0a360d7e5e814a1f6e344bf11eac767e6
| * Take source artifact properties into account when change tracking.Christian Kandeler2014-01-142-4/+6
| | | | | | | | | | | | | | | | | | When properties on source files change, rules might have to be re- applied and the installation of the respective source file may have to be re-done. The current code catches none of that. Change-Id: I7d87eb1d6bbb9918f2633ec8cbb9640ca23b90a4 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* | Rename getenv and putenv to getEnv and putEnv, respectively.Christian Kandeler2013-11-071-1/+1
|/ | | | | | | | We use camel case everywhere else. Change-Id: I8a67f1d44659d59e612c0eaced0628c6d34d5b47 Reviewed-by: Jake Petroules <jake.petroules@petroules.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Use previous results of calls to "File.exists()" in change tracking.Christian Kandeler2013-07-161-1/+5
| | | | | | | | This is the same kind of "external change" as those coming from the environment or JavaScript files, and is thus handled the same way. Change-Id: I0a097d6d5c39ece859e6784f65f77f35a7273d59 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Handle "indirect" changes to a product's file list.Christian Kandeler2013-07-165-0/+10
If the list of source files in a product changed without the respective file having been touched (e.g. because the list was dependent on an environment variable), we re-resolved the product, but we did not touch the build data, so the new file was not compiled. Change-Id: Ib63020339aa0bbc2a858ed22f938ab76fb0611c5 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>