summaryrefslogtreecommitdiff
path: root/test/correctness/tester.h
diff options
context:
space:
mode:
authorCNugteren <web@cedricnugteren.nl>2015-06-20 11:26:01 +0200
committerCNugteren <web@cedricnugteren.nl>2015-06-20 11:26:01 +0200
commitdfbc3365312a8ee1c100d7659e5814548192b48d (patch)
tree38399dfada74feb562279d7a39e99d93971fd64f /test/correctness/tester.h
parente26742c62993892deffbd44e68f3769423330cbb (diff)
Moved the argument parsing to the common Tester base class
Diffstat (limited to 'test/correctness/tester.h')
-rw-r--r--test/correctness/tester.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/correctness/tester.h b/test/correctness/tester.h
index e6815fce..ffc02bbf 100644
--- a/test/correctness/tester.h
+++ b/test/correctness/tester.h
@@ -76,7 +76,7 @@ class Tester {
// Creates an instance of the tester, running on a particular OpenCL platform and device. It
// takes the routine's names as an additional parameter.
- explicit Tester(const size_t platform_id, const size_t device_id,
+ explicit Tester(int argc, char *argv[], const bool silent,
const std::string &name, const std::vector<std::string> &options);
~Tester();
@@ -97,6 +97,9 @@ class Tester {
// Retrieves a list of example scalars of the right type
const std::vector<T> GetExampleScalars();
+ // The help-message
+ std::string help_;
+
// The OpenCL objects (accessible by derived classes)
Platform platform_;
Device device_;
@@ -105,6 +108,7 @@ class Tester {
private:
+
// Internal methods to report a passed, skipped, or failed test
void ReportPass();
void ReportSkipped();