summaryrefslogtreecommitdiffstats
path: root/tests/testparseperformance.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-30 14:01:03 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-31 06:33:46 -0700
commit78cd2f4e0927ca1790e030a993a309d97c70ecb6 (patch)
treedd4c410a7fa002fd43c4597a4b5df50149b6e6f6 /tests/testparseperformance.h
parent59a68fe9b5bdeb2d557a26c58e43564169fa7746 (diff)
downloadsubsurface-78cd2f4e0927ca1790e030a993a309d97c70ecb6.tar.gz
Add performance test case
This requires the user to manually copy the large test file into the dives directory (because I really don't want to add this to the repo); instructions how to do that are displayed if the file is missing. Next it uses the git version of that same file (but prefetches it to try and remove the network speed from what is being measured). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests/testparseperformance.h')
-rw-r--r--tests/testparseperformance.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/testparseperformance.h b/tests/testparseperformance.h
new file mode 100644
index 000000000..f1c0a9e43
--- /dev/null
+++ b/tests/testparseperformance.h
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: GPL-2.0
+#ifndef TESTPARSEPERFORMANCE_H
+#define TESTPARSEPERFORMANCE_H
+
+#include <QtTest>
+
+class TestParsePerformance : public QObject {
+ Q_OBJECT
+private slots:
+ void initTestCase();
+ void init();
+ void cleanup();
+
+ void parseSsrf();
+ void parseGit();
+};
+
+#endif