summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2020-01-24 17:05:38 +0100
committerCristian Adam <cristian.adam@qt.io>2020-01-27 12:38:19 +0000
commite9519db3d296c096cd266bf3f5712e92915f2f3f (patch)
tree9b0c6ad94decd1bfc50ddd35dae21d8a86b401c9 /tests
parent69e2662a4da64d8b614f5d65d9e1064d55690469 (diff)
CMake Build: add build support with CMake
Change-Id: I9ec73226ba0309f244038708cb85d2ae9f3aab30 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt2
-rw-r--r--tests/auto/CMakeLists.txt5
-rw-r--r--tests/auto/addresscache/CMakeLists.txt4
-rw-r--r--tests/auto/elfmap/CMakeLists.txt4
-rw-r--r--tests/auto/kallsyms/CMakeLists.txt4
-rw-r--r--tests/auto/perfdata/CMakeLists.txt8
-rw-r--r--tests/auto/perfstdin/CMakeLists.txt4
-rw-r--r--tests/manual/CMakeLists.txt1
-rw-r--r--tests/manual/perf2text/CMakeLists.txt8
9 files changed, 40 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644
index 0000000..ec45685
--- /dev/null
+++ b/tests/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_subdirectory(auto)
+add_subdirectory(manual)
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
new file mode 100644
index 0000000..8608d7f
--- /dev/null
+++ b/tests/auto/CMakeLists.txt
@@ -0,0 +1,5 @@
+add_subdirectory(addresscache)
+add_subdirectory(elfmap)
+add_subdirectory(kallsyms)
+add_subdirectory(perfdata)
+add_subdirectory(perfstdin)
diff --git a/tests/auto/addresscache/CMakeLists.txt b/tests/auto/addresscache/CMakeLists.txt
new file mode 100644
index 0000000..adf33f2
--- /dev/null
+++ b/tests/auto/addresscache/CMakeLists.txt
@@ -0,0 +1,4 @@
+add_qtc_test(tst_addresscache
+ DEPENDS Qt5::Core Qt5::Test perfparser_lib
+ SOURCES tst_addresscache.cpp
+)
diff --git a/tests/auto/elfmap/CMakeLists.txt b/tests/auto/elfmap/CMakeLists.txt
new file mode 100644
index 0000000..86ae296
--- /dev/null
+++ b/tests/auto/elfmap/CMakeLists.txt
@@ -0,0 +1,4 @@
+add_qtc_test(tst_elfmap
+ DEPENDS Qt5::Core Qt5::Test perfparser_lib
+ SOURCES tst_elfmap.cpp
+)
diff --git a/tests/auto/kallsyms/CMakeLists.txt b/tests/auto/kallsyms/CMakeLists.txt
new file mode 100644
index 0000000..5b42a07
--- /dev/null
+++ b/tests/auto/kallsyms/CMakeLists.txt
@@ -0,0 +1,4 @@
+add_qtc_test(tst_kallsyms
+ DEPENDS Qt5::Core Qt5::Test perfparser_lib
+ SOURCES tst_kallsyms.cpp
+)
diff --git a/tests/auto/perfdata/CMakeLists.txt b/tests/auto/perfdata/CMakeLists.txt
new file mode 100644
index 0000000..70a0e8f
--- /dev/null
+++ b/tests/auto/perfdata/CMakeLists.txt
@@ -0,0 +1,8 @@
+add_qtc_test(tst_perfdata
+ DEPENDS Qt5::Core Qt5::Test perfparser_lib
+ INCLUDES ../shared
+ SOURCES
+ ../shared/perfparsertestclient.cpp
+ perfdata.qrc
+ tst_perfdata.cpp
+)
diff --git a/tests/auto/perfstdin/CMakeLists.txt b/tests/auto/perfstdin/CMakeLists.txt
new file mode 100644
index 0000000..86e3a13
--- /dev/null
+++ b/tests/auto/perfstdin/CMakeLists.txt
@@ -0,0 +1,4 @@
+add_qtc_test(tst_perfstdin
+ DEPENDS Qt5::Core Qt5::Test perfparser_lib
+ SOURCES tst_perfstdin.cpp
+)
diff --git a/tests/manual/CMakeLists.txt b/tests/manual/CMakeLists.txt
new file mode 100644
index 0000000..2de0169
--- /dev/null
+++ b/tests/manual/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory(perf2text)
diff --git a/tests/manual/perf2text/CMakeLists.txt b/tests/manual/perf2text/CMakeLists.txt
new file mode 100644
index 0000000..59b5ddd
--- /dev/null
+++ b/tests/manual/perf2text/CMakeLists.txt
@@ -0,0 +1,8 @@
+add_qtc_executable(perf2text
+ DEFINES MANUAL_TEST
+ DEPENDS perfparser_lib
+ INCLUDES ../../auto/shared/
+ SOURCES
+ ../../auto/shared/perfparsertestclient.cpp
+ perf2text.cpp
+)