diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2014-08-11 15:59:09 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2014-08-14 11:16:34 +0200 |
commit | 09d9ce2c265450d786052100bedb059870dddc23 (patch) | |
tree | 3e811fa1a328a8d19ddbffec5a94d2c61add84fc /tests/auto/api/testdata/static-lib-deps | |
parent | 4e7f1023b0fc1349047357cf8926fa68761cc546 (diff) |
Turn some blackbox tests into API tests.
Different test executables can run in parallel, whereas the functions
within one test executable cannot. This means that tst_blackbox is
currently a bottleneck, as it takes an order of magnitude longer
than all other tests combined. We therefore turn a number of blackbox
tests into API tests (most tests work equally well in either).
The run-time of these two test executables is now about the same, and as
a result, the time it takes to run "make check" has almost halved.
Change-Id: I55ef43a60588f86a8438bdecb7795aca0880efd0
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'tests/auto/api/testdata/static-lib-deps')
-rw-r--r-- | tests/auto/api/testdata/static-lib-deps/a1.cpp | 7 | ||||
-rw-r--r-- | tests/auto/api/testdata/static-lib-deps/a2.cpp | 7 | ||||
-rw-r--r-- | tests/auto/api/testdata/static-lib-deps/b.cpp | 7 | ||||
-rw-r--r-- | tests/auto/api/testdata/static-lib-deps/c.cpp | 7 | ||||
-rw-r--r-- | tests/auto/api/testdata/static-lib-deps/d.cpp | 9 | ||||
-rw-r--r-- | tests/auto/api/testdata/static-lib-deps/e.cpp | 7 | ||||
-rw-r--r-- | tests/auto/api/testdata/static-lib-deps/main.cpp | 10 | ||||
-rw-r--r-- | tests/auto/api/testdata/static-lib-deps/project.qbs | 69 |
8 files changed, 123 insertions, 0 deletions
diff --git a/tests/auto/api/testdata/static-lib-deps/a1.cpp b/tests/auto/api/testdata/static-lib-deps/a1.cpp new file mode 100644 index 000000000..862d76783 --- /dev/null +++ b/tests/auto/api/testdata/static-lib-deps/a1.cpp @@ -0,0 +1,7 @@ +#include <iostream> + +void a1() +{ + std::cout << "a1" << std::endl; +} + diff --git a/tests/auto/api/testdata/static-lib-deps/a2.cpp b/tests/auto/api/testdata/static-lib-deps/a2.cpp new file mode 100644 index 000000000..d1f41731c --- /dev/null +++ b/tests/auto/api/testdata/static-lib-deps/a2.cpp @@ -0,0 +1,7 @@ +#include <iostream> + +void a2() +{ + std::cout << "a2" << std::endl; +} + diff --git a/tests/auto/api/testdata/static-lib-deps/b.cpp b/tests/auto/api/testdata/static-lib-deps/b.cpp new file mode 100644 index 000000000..a88cc9d90 --- /dev/null +++ b/tests/auto/api/testdata/static-lib-deps/b.cpp @@ -0,0 +1,7 @@ +void a1(); + +void b() +{ + a1(); +} + diff --git a/tests/auto/api/testdata/static-lib-deps/c.cpp b/tests/auto/api/testdata/static-lib-deps/c.cpp new file mode 100644 index 000000000..264db582a --- /dev/null +++ b/tests/auto/api/testdata/static-lib-deps/c.cpp @@ -0,0 +1,7 @@ +void a2(); + +void c() +{ + a2(); +} + diff --git a/tests/auto/api/testdata/static-lib-deps/d.cpp b/tests/auto/api/testdata/static-lib-deps/d.cpp new file mode 100644 index 000000000..a7a2b9f85 --- /dev/null +++ b/tests/auto/api/testdata/static-lib-deps/d.cpp @@ -0,0 +1,9 @@ +void b(); +void c(); + +void d() +{ + b(); + c(); +} + diff --git a/tests/auto/api/testdata/static-lib-deps/e.cpp b/tests/auto/api/testdata/static-lib-deps/e.cpp new file mode 100644 index 000000000..af7d24682 --- /dev/null +++ b/tests/auto/api/testdata/static-lib-deps/e.cpp @@ -0,0 +1,7 @@ +void d(); + +void e() +{ + d(); +} + diff --git a/tests/auto/api/testdata/static-lib-deps/main.cpp b/tests/auto/api/testdata/static-lib-deps/main.cpp new file mode 100644 index 000000000..3753dd5cb --- /dev/null +++ b/tests/auto/api/testdata/static-lib-deps/main.cpp @@ -0,0 +1,10 @@ +#include <cstdlib> + +void e(); + +int main() +{ + e(); + return EXIT_SUCCESS; +} + diff --git a/tests/auto/api/testdata/static-lib-deps/project.qbs b/tests/auto/api/testdata/static-lib-deps/project.qbs new file mode 100644 index 000000000..f7d4a98b0 --- /dev/null +++ b/tests/auto/api/testdata/static-lib-deps/project.qbs @@ -0,0 +1,69 @@ +import qbs 1.0 + +Project { + StaticLibrary { + name: "a" + + Depends { name: "cpp" } + + files: [ + "a1.cpp", + "a2.cpp", + ] + } + StaticLibrary { + name: "b" + + Depends { name: "cpp" } + + Depends { name: "a" } + + files: [ + "b.cpp", + ] + } + StaticLibrary { + name: "c" + + Depends { name: "cpp" } + + Depends { name: "a" } + + files: [ + "c.cpp", + ] + } + StaticLibrary { + name: "d" + + Depends { name: "cpp" } + + Depends { name: "b" } + Depends { name: "c" } + + files: [ + "d.cpp", + ] + } + StaticLibrary { + name: "e" + + Depends { name: "cpp" } + + Depends { name: "d" } + + files: [ + "e.cpp", + ] + } + CppApplication { + name: "staticLibDeps" + type: "application" + + Depends { name: "e" } + + files: [ + "main.cpp", + ] + } +} |