mirror of https://github.com/CGAL/cgal
Allow parallel execution of tests in test/Kernel_23
This commit is contained in:
parent
c65d3abe17
commit
c46e983139
|
|
@ -240,6 +240,7 @@ Kernel_23/test/Kernel_23/Makefile
|
||||||
Kernel_23/test/Kernel_23/Simple_cartesian
|
Kernel_23/test/Kernel_23/Simple_cartesian
|
||||||
Kernel_23/test/Kernel_23/Simple_homogeneous
|
Kernel_23/test/Kernel_23/Simple_homogeneous
|
||||||
Kernel_23/test/Kernel_23/Test_IO.out
|
Kernel_23/test/Kernel_23/Test_IO.out
|
||||||
|
/Kernel_23/test/Kernel_23/Test-*IO.out
|
||||||
Kernel_23/test/Kernel_23/cgal_test_with_cmake
|
Kernel_23/test/Kernel_23/cgal_test_with_cmake
|
||||||
Kernel_23/test/Kernel_23/test_kernel__
|
Kernel_23/test/Kernel_23/test_kernel__
|
||||||
Kinetic_data_structures/demo/Kinetic_data_structures/Delaunay_triangulation_2
|
Kinetic_data_structures/demo/Kinetic_data_structures/Delaunay_triangulation_2
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
#include "CGAL/Precise_numbers.h"
|
#include "CGAL/Precise_numbers.h"
|
||||||
#include "CGAL/_test_cls_kernel.h"
|
#include "CGAL/_test_cls_kernel.h"
|
||||||
|
#define TEST_FILENAME "Test-Cartesian-IO.out"
|
||||||
#include "CGAL/_test_io.h"
|
#include "CGAL/_test_io.h"
|
||||||
#include "CGAL/_test_2.h"
|
#include "CGAL/_test_2.h"
|
||||||
#include "CGAL/_test_3.h"
|
#include "CGAL/_test_3.h"
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
#include "CGAL/Precise_numbers.h"
|
#include "CGAL/Precise_numbers.h"
|
||||||
|
|
||||||
|
#define TEST_FILENAME "Test-Filtered_cartesian-IO.out"
|
||||||
#include "CGAL/_test_io.h"
|
#include "CGAL/_test_io.h"
|
||||||
|
|
||||||
#include "CGAL/_test_2.h"
|
#include "CGAL/_test_2.h"
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@
|
||||||
|
|
||||||
#include "CGAL/Precise_numbers.h"
|
#include "CGAL/Precise_numbers.h"
|
||||||
|
|
||||||
|
#define TEST_FILENAME "Test-Filtered_homogeneous-IO.out"
|
||||||
#include "CGAL/_test_io.h"
|
#include "CGAL/_test_io.h"
|
||||||
|
|
||||||
#include "CGAL/_test_2.h"
|
#include "CGAL/_test_2.h"
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
#include <CGAL/intersection_3.h>
|
#include <CGAL/intersection_3.h>
|
||||||
|
|
||||||
#include "CGAL/Precise_numbers.h"
|
#include "CGAL/Precise_numbers.h"
|
||||||
|
#define TEST_FILENAME "Test-Homogeneous-IO.out"
|
||||||
#include "CGAL/_test_io.h"
|
#include "CGAL/_test_io.h"
|
||||||
#include "CGAL/_test_2.h"
|
#include "CGAL/_test_2.h"
|
||||||
#include "CGAL/_test_3.h"
|
#include "CGAL/_test_3.h"
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "CGAL/Precise_numbers.h"
|
#include "CGAL/Precise_numbers.h"
|
||||||
|
#define TEST_FILENAME "Test-Lazy_kernel-IO.out"
|
||||||
#include "CGAL/_test_io.h"
|
#include "CGAL/_test_io.h"
|
||||||
#include "CGAL/_test_2.h"
|
#include "CGAL/_test_2.h"
|
||||||
#include "CGAL/_test_3.h"
|
#include "CGAL/_test_3.h"
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
#include "CGAL/Precise_numbers.h"
|
#include "CGAL/Precise_numbers.h"
|
||||||
|
#define TEST_FILENAME "Test-Simple_cartesian-IO.out"
|
||||||
#include "CGAL/_test_io.h"
|
#include "CGAL/_test_io.h"
|
||||||
|
|
||||||
#include "CGAL/_test_2.h"
|
#include "CGAL/_test_2.h"
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@
|
||||||
#include <CGAL/intersection_3.h>
|
#include <CGAL/intersection_3.h>
|
||||||
|
|
||||||
#include "CGAL/Precise_numbers.h"
|
#include "CGAL/Precise_numbers.h"
|
||||||
|
#define TEST_FILENAME "Test-Simple_homogeneous-IO.out"
|
||||||
#include "CGAL/_test_io.h"
|
#include "CGAL/_test_io.h"
|
||||||
#include "CGAL/_test_2.h"
|
#include "CGAL/_test_2.h"
|
||||||
#include "CGAL/_test_3.h"
|
#include "CGAL/_test_3.h"
|
||||||
|
|
|
||||||
|
|
@ -25,16 +25,20 @@
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
#ifndef TEST_FILENAME
|
||||||
|
# define TEST_FILENAME "Test_IO.out"
|
||||||
|
#endif
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
void
|
void
|
||||||
_test_io_for(const T& t)
|
_test_io_for(const T& t)
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
std::ofstream oFile("Test_IO.out", std::ios::out);
|
std::ofstream oFile(TEST_FILENAME, std::ios::out);
|
||||||
oFile << t << std::endl;
|
oFile << t << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::ifstream iFile("Test_IO.out", std::ios::in);
|
std::ifstream iFile(TEST_FILENAME, std::ios::in);
|
||||||
T u;
|
T u;
|
||||||
iFile >> u;
|
iFile >> u;
|
||||||
assert(!iFile.fail());
|
assert(!iFile.fail());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue