void operator() () const
  {
   	  typedef typename K::Sphere_3 Sphere_3;
   	  typedef typename K::Iso_cuboid_3 Iso_cuboid_3;

   	  test_domain(Sphere_3(CGAL::ORIGIN, 4.));
   	  test_domain(CGAL::Bbox_3(-2.,-2.,-2., 2.,2.,2.));
   	  test_domain(Iso_cuboid_3(Point_3(-2.,-2.,-2.), Point_3(2.,2.,2.)));
  }
Esempio n. 2
0
int main(int argc, char ** argv)
{
	char ch;
	if (argc == 0) {
		test_domain();
		test_localtcp();
		test_pipe();
		test_memcpy();
	} else {
		ch = getopt(argc, argv, "mcsdanr");
		switch(ch) {
			case 'm':
				test_domain();
				test_localtcp();
				test_pipe();
				test_memcpy();
				break;
			case 'd': 
				test_seq_disk(0);
				test_random_disk(0);
				break;
			case 'n':
				test_seq_disk(1);
				test_random_disk(1);
				break;
			case 'a':
				test_domain();
				test_localtcp();
				test_pipe();
				test_memcpy();
				test_seq_disk(1);
				test_random_disk(1);
				break;
			case 'r':
				test_random_write();
				break;
			case 'c':
				printf("connect remote svr\n");
				test_remote();
				break;
			case 's':
				printf("start listen svr\n");
				start_svr();
				break;
			default:
				printf("should add param: -a all\n-d disk\n-n disk no sync");
				printf("\n-m memory\n");
				printf("-c tcp client\n-s tcp server\n");
				break;
		}
	}
	sleep(1);
	return 0;
}