diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-06-02 17:45:16 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-06-08 11:03:14 +0000 |
commit | 08b00f86891ec157e3fb354afc04ff33ebfdb44c (patch) | |
tree | 331bffbe8ce5636cfcb9f41d254f883da1cc19d5 /tests/auto/blackbox/testdata/buildenv-change | |
parent | 2fd4c0a8e8a4a4dda54e29fb59a9b82a86d58643 (diff) |
Re-run process commands if a relevant environment variable has changed
Process commands can now declare that they are sensitive to certain
environment variables. If such a variable changes its value, we
invalidate the respective transformer.
[ChangeLog] Added new property "relevantEnvironmentVariables" to the
Command class
Change-Id: Id866dc676b3b483a5d843e6125c91829f5094eba
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata/buildenv-change')
5 files changed, 21 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/buildenv-change/buildenv-change.qbs b/tests/auto/blackbox/testdata/buildenv-change/buildenv-change.qbs new file mode 100644 index 000000000..acf9d0890 --- /dev/null +++ b/tests/auto/blackbox/testdata/buildenv-change/buildenv-change.qbs @@ -0,0 +1,17 @@ +import qbs + +CppApplication { + Probe { + id: dummy + configure: { + if (qbs.toolchain.contains("msvc")) + console.info("msvc"); + } + } + files: [ + "file.c", + "main.cpp", + "subdir/theheader.h", + "subdir2/theheader.h", + ] +} diff --git a/tests/auto/blackbox/testdata/buildenv-change/file.c b/tests/auto/blackbox/testdata/buildenv-change/file.c new file mode 100644 index 000000000..4b74880f3 --- /dev/null +++ b/tests/auto/blackbox/testdata/buildenv-change/file.c @@ -0,0 +1 @@ +void func(void) { } diff --git a/tests/auto/blackbox/testdata/buildenv-change/main.cpp b/tests/auto/blackbox/testdata/buildenv-change/main.cpp new file mode 100644 index 000000000..b98fc3c23 --- /dev/null +++ b/tests/auto/blackbox/testdata/buildenv-change/main.cpp @@ -0,0 +1,3 @@ +#include <theheader.h> + +int main() {} diff --git a/tests/auto/blackbox/testdata/buildenv-change/subdir/theheader.h b/tests/auto/blackbox/testdata/buildenv-change/subdir/theheader.h new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/auto/blackbox/testdata/buildenv-change/subdir/theheader.h diff --git a/tests/auto/blackbox/testdata/buildenv-change/subdir2/theheader.h b/tests/auto/blackbox/testdata/buildenv-change/subdir2/theheader.h new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/auto/blackbox/testdata/buildenv-change/subdir2/theheader.h |