From e561e3fbd5d8fc598af120c17162b95bc8b8743b Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Thu, 2 Jun 2016 16:24:22 +0200 Subject: Added return value to the test binaries (0: success, 1: failure), allowing it to work under CTest properly --- scripts/generator/generator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/generator/generator.py b/scripts/generator/generator.py index f5fc5ecf..7113ad56 100644 --- a/scripts/generator/generator.py +++ b/scripts/generator/generator.py @@ -414,12 +414,13 @@ for level in [1,2,3]: body += "using double2 = clblast::double2;\n\n" body += "// Main function (not within the clblast namespace)\n" body += "int main(int argc, char *argv[]) {\n" + body += " auto errors = size_t{0};\n" not_first = "false" for flavour in routine.flavours: - body += " clblast::RunTests