From 78cd2f4e0927ca1790e030a993a309d97c70ecb6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 30 Aug 2018 14:01:03 -0700 Subject: 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 --- tests/testparseperformance.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/testparseperformance.h (limited to 'tests/testparseperformance.h') 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 + +class TestParsePerformance : public QObject { + Q_OBJECT +private slots: + void initTestCase(); + void init(); + void cleanup(); + + void parseSsrf(); + void parseGit(); +}; + +#endif -- cgit v1.2.3-70-g09d2