]> OCCT Git - occt-copy.git/commitdiff
Modified CPU limit in test cases inDebug mode.
authorapn <apn@opencascade.com>
Tue, 17 Jun 2014 13:18:18 +0000 (17:18 +0400)
committerapn <apn@opencascade.com>
Tue, 17 Jun 2014 13:18:18 +0000 (17:18 +0400)
17 files changed:
tests/boolean/bcut_complex/P6
tests/boolean/bsection/M8
tests/boolean/bsection/N4
tests/bugs/modalg_5/bug23706_10
tests/bugs/modalg_5/bug23706_13
tests/bugs/modalg_5/bug23958
tests/bugs/modalg_5/bug24157_1
tests/bugs/modalg_5/bug24157_2
tests/bugs/modalg_5/bug24157_3
tests/bugs/modalg_5/bug24157_4
tests/bugs/modalg_5/bug24157_5
tests/bugs/modalg_5/bug24157_6
tests/bugs/modalg_5/bug24157_7
tests/bugs/modalg_5/bug24157_8
tests/bugs/modalg_5/bug24157_9
tests/bugs/modalg_5/bug24190
tests/bugs/modalg_5/bug24758_2

index f8bdcc4e0218748b19f93470eee4dbc26d07375f..afc84c78317d06a0eae6e751587f6adc6025b280 100644 (file)
@@ -2,6 +2,8 @@
 puts "TODO #22911 ALL: Faulty shapes in variables faulty_1 to faulty_"
 puts "TODO #22911 ALL: Error : The area of the resulting shape is"
 
+cpulimit 1500
+
 restore [locate_data_file CTO909_Bug3_Tr_obj.rle] a
 restore [locate_data_file Bug4_Tr_outil.rle] b
 
index 614264a2c906625269afd4436a4bf916240a4bf7..eb5797be5efec9ef18d241610e5cef30cad55e97 100644 (file)
@@ -1,3 +1,5 @@
+cpulimit 1500
+
 restore [locate_data_file lh3d_px1.brep] a
 
 #removing intersection of faces a_3 and a_220
index af8d0ff6a2a0939f7aa68c42948d55e38aecaa0f..529abd5f0cbc3234ec0e877cb2ff24ea587ebb62 100644 (file)
@@ -1,6 +1,6 @@
 #puts "TODO #23749 ALL: Faulty shapes in variables faulty_1 to faulty_"
 
-cpulimit 4000
+cpulimit 4500
 
 restore [locate_data_file lh3d_px2.brep] a
 compound result
index 3f1e0ecd1e16c12b42a5b120b4d66c1f2a2102b6..9c72dac056eae137cebbf3df944e44cde3a10611 100755 (executable)
@@ -6,6 +6,8 @@ puts ""
 # Cannot project point on curve
 #########################################################################
 
+cpulimit 1500
+
 bsplinecurve r3 2 6 1 3 2 1 3 1 4 1 5 1 6 3 2 5 3 1 3 7 3 1 4 8 3 1 4 8 3 1 4 8 3 1 5 9 3 1 9 7 3 1
 bsplinecurve r4 2 6 2 3 2.5 1 3 1 3.5 1 4 1 4.5 3 -1 2 3 1 1 11 3 1 3 9 3 1 3 9 3 1 3 9 3 1 5 7 3 1 7 4 3 1
 extrema r3 r4
index 0ba9d960387301d8a2f11fecef31bbc75723986f..c311042e518d3c2aeabf53b82e7a86f59fe2f1df 100755 (executable)
@@ -6,6 +6,8 @@ puts ""
 # Cannot project point on curve
 #########################################################################
 
+cpulimit 1500
+
 2dbsplinecurve b3 2 6 1 3 2 1 3 1 4 1 5 1 6 3 2 5 1 3 7 1 4 8 1 4 8 1 4 8 1 5 9 1 9 7 1
 2dbsplinecurve b4 2 6 2 3 2.5 1 3 1 3.5 1 4 1 4.5 3 -1 2 1 1 11 1 3 9 1 3 9 1 3 9 1 5 7 1 7 4 1
 
index 81e720c7b2b0781c10adcb9d75237f3a58606ebb..078d291a3c0d8d39afa43848b7fe8e0ea95b545c 100644 (file)
@@ -6,6 +6,8 @@ puts ""
 # Section of shell by plane is incomplete
 #################################################################################
 
+cpulimit 2000
+
 pload DATAEXCHANGEKERNEL
 
 # shell
index fa8c894b14a1cbebb6f0ba6123c6674bfa15b8ed..89dc24c8033c0d94b5d2f659df19fc159d33ec9a 100644 (file)
@@ -17,7 +17,12 @@ bfillds
 
 regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
 
-if { $tps_time > 60 } {
+if { [regexp {Debug mode} [dversion]] } {
+  set check_time 110
+} else {
+  set check_time 87
+}
+if { $tps_time > $check_time } {
   puts "Error: low performance"
 } else {
   puts "OK: high performance"
index 0972f60e21219b4ba8a9ad8599c9a3fce1b62aae..7424534fb9606408743a290e94900b9b5b3f6e28 100644 (file)
@@ -20,7 +20,12 @@ bfillds
 
 regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
 
-if { $tps_time > 200 } {
+if { [regexp {Debug mode} [dversion]] } {
+  set check_time 460
+} else {
+  set check_time 378
+}
+if { $tps_time > $check_time } {
   puts "Error: low performance"
 } else {
   puts "OK: high performance"
index 82f85a9ed908dc19dd6f74181f8ca392bac1f4d0..a436ded6e8a9af2c64cf5859746180899fb4e737 100644 (file)
@@ -14,7 +14,12 @@ bfillds
 
 regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
 
-if { $tps_time > 15 } {
+if { [regexp {Debug mode} [dversion]] } {
+  set check_time 30
+} else {
+  set check_time 16
+}
+if { $tps_time > $check_time } {
   puts "Error: low performance"
 } else {
   puts "OK: high performance"
index c2bf875b94bab5240645c3bf148e64aba9db4912..ffb8d27aeaf4ee437bb16105c6e1f87766f4e228 100644 (file)
@@ -59,7 +59,12 @@ bfillds
 
 regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
 
-if { $tps_time > 30 } {
+if { [regexp {Debug mode} [dversion]] } {
+  set check_time 30
+} else {
+  set check_time 43
+}
+if { $tps_time > $check_time } {
   puts "Error: low performance"
 } else {
   puts "OK: high performance"
index f2f76de5e81cc94c0cdf7d10adde8aae74afe751..4a634c9facd9e2c440d9748253598f0e27a3d783 100644 (file)
@@ -63,10 +63,14 @@ baddobjects b1
 baddcompound b2
 bfillds
 
-bbuild result -t
 regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
 
-if { $tps_time > 100 } {
+if { [regexp {Debug mode} [dversion]] } {
+  set check_time 30
+} else {
+  set check_time 913
+}
+if { $tps_time > $check_time } {
   puts "Error: low performance"
 } else {
   puts "OK: high performance"
index 4ec968f899360589628fe2e368a2da5f9d4e438a..c01606fa4659f9803921e8740d347f2b438d540d 100644 (file)
@@ -43,7 +43,12 @@ bfillds
 
 regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
 
-if { $tps_time > 10 } {
+if { [regexp {Debug mode} [dversion]] } {
+  set check_time 20
+} else {
+  set check_time 24
+}
+if { $tps_time > $check_time } {
   puts "Error: low performance"
 } else {
   puts "OK: high performance"
index 9dd6cd992af6f82aab5335dae888eb83ad0f51e7..eed8879a5463564d790bf9d5104262f0b0567fed 100644 (file)
@@ -43,7 +43,12 @@ bfillds
 
 regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
 
-if { $tps_time > 100 } {
+if { [regexp {Debug mode} [dversion]] } {
+  set check_time 90
+} else {
+  set check_time 135
+}
+if { $tps_time > $check_time } {
   puts "Error: low performance"
 } else {
   puts "OK: high performance"
index 2f7e25af0a2e0c13fa3ce24b9328021172e7a2fe..cec9bf70aee3226df6cf6bfd6d39facd628a999a 100644 (file)
@@ -44,7 +44,12 @@ bfillds -t
 
 regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
 
-if { $tps_time > 9.5 } {
+if { [regexp {Debug mode} [dversion]] } {
+  set check_time 25
+} else {
+  set check_time 2.2
+}
+if { $tps_time > $check_time } {
   puts "Error: low performance"
 } else {
   puts "OK: high performance"
index c83d8e6ec0dfa6cbcc5494f21c4e369c8dbebec5..cf5d81bb217380512ce8fc957b145d1ffc878ed6 100644 (file)
@@ -24,7 +24,12 @@ bfillds
 
 regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
 
-if { $tps_time > 85.7 } {
+if { [regexp {Debug mode} [dversion]] } {
+  set check_time 220
+} else {
+  set check_time 16
+}
+if { $tps_time > $check_time } {
   puts "Error: low performance"
 } else {
   puts "OK: high performance"
index d6dedf260979f6344ef1f6976ea760200dc908be..6ffef9814fcf79d8dde6f79f990bb040f825ef79 100755 (executable)
@@ -6,7 +6,7 @@ puts ""
 # Exception raised during topological operation.
 #######################################################################
 
-cpulimit 2500
+cpulimit 4000
 
 restore [locate_data_file bug24190_itz.brep] b
 
index 9135df994e839d8b5c97acfbe84f2af12dd25217..463512e674f2ebffd1c2c77345539b1b20c1cf1c 100644 (file)
@@ -7,7 +7,7 @@ puts ""
 ##############################################################
 
 if { [regexp {Debug mode} [dversion]] } {
-   cpulimit 2000
+   cpulimit 3000
 }
 
 # drill parameters (some terms taken from http://www.drill-bits.cn/drill-bits-quality.asp)