From 38b7b3fea0d5ab5bad8a658568264cfa8abeed27 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 29 Dec 2008 17:43:37 -0500 Subject: [PATCH] ENH: add test for -j N ctest stuff --- Tests/JCTest/CMakeLists.txt | 9 +++++++++ Tests/JCTest/TestTime.cxx | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Tests/JCTest/CMakeLists.txt create mode 100644 Tests/JCTest/TestTime.cxx diff --git a/Tests/JCTest/CMakeLists.txt b/Tests/JCTest/CMakeLists.txt new file mode 100644 index 000000000..a24a92f85 --- /dev/null +++ b/Tests/JCTest/CMakeLists.txt @@ -0,0 +1,9 @@ +cmake_minimum_required(VERSION 2.6) +project(TestTime) +enable_testing() +add_executable(TestTime TestTime.cxx) + +foreach(f 1 2 3 4 5 6 7 8 9 10 11 12 12 14 15 16 17 18 19 +20 21 22 23 24 25 26 27 28 29 30) + add_test(TestTime${f} TestTime 10000000) +endforeach(f) diff --git a/Tests/JCTest/TestTime.cxx b/Tests/JCTest/TestTime.cxx new file mode 100644 index 000000000..5768ab522 --- /dev/null +++ b/Tests/JCTest/TestTime.cxx @@ -0,0 +1,12 @@ +#include +#include + +int main(int ac, char** av) +{ + float d = 10.0; + for(int i =0; i < atoi(av[1]); i++) + { + d *= .2; + } + printf("%f", d); +}