[Cmake-commits] [cmake-commits] hoffman committed CMakeLists.txt NONE 1.1 TestTime.cxx NONE 1.1

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Dec 29 17:43:39 EST 2008


Update of /cvsroot/CMake/CMake/Tests/JCTest
In directory public:/mounts/ram/cvs-serv20524

Added Files:
	CMakeLists.txt TestTime.cxx 
Log Message:
ENH: add test for -j N ctest stuff


--- NEW FILE: CMakeLists.txt ---
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)

--- NEW FILE: TestTime.cxx ---
#include <stdio.h>
#include <stdlib.h>

int main(int ac, char** av)
{
  float d = 10.0;
  for(int i =0; i < atoi(av[1]); i++)
    {
    d *= .2;
    }
  printf("%f", d);
}



More information about the Cmake-commits mailing list