mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Adjusting testing cases for debug mode
This commit is contained in:
parent
b1574471ff
commit
c9fb852983
@ -6,6 +6,8 @@ puts ""
|
||||
# Cannot project point on curve
|
||||
#########################################################################
|
||||
|
||||
cpulimit 1500
|
||||
|
||||
bsplinecurve r9 2 6 1 3 2 1 3 1 4 1 5 1 6 3 4 -3 3 1 6 8 3 1 10 11 3 1 10 11 3 1 10 11 3 1 14 14 3 1 5 8 3 1
|
||||
bsplinecurve r10 2 6 2 3 2.5 1 3 1 3.5 1 4 1 4.5 3 5 20 3 1 8 15 3 1 12 18 3 1 12 18 3 1 12 18 3 1 16 21 3 1 7 12 3 1
|
||||
|
||||
|
@ -24,7 +24,7 @@ regexp {CPU user time: ([-0-9.+eE]+) seconds} $q2 full z
|
||||
puts "$z"
|
||||
if { [string compare $tcl_platform(platform) "windows"] == 0 } {
|
||||
puts "OS = Windows NT"
|
||||
set max_time 0.2
|
||||
set max_time 0.5
|
||||
} else {
|
||||
puts "OS = Linux"
|
||||
set max_time 0.1
|
||||
|
@ -18,7 +18,7 @@ bfillds
|
||||
regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
|
||||
|
||||
if { [regexp {Debug mode} [dversion]] } {
|
||||
set check_time 110
|
||||
set check_time 150
|
||||
} else {
|
||||
set check_time 87
|
||||
}
|
||||
|
@ -82,7 +82,12 @@ bfillds
|
||||
|
||||
regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
|
||||
|
||||
if { $tps_time > 5. } {
|
||||
if { [regexp {Debug mode} [dversion]] } {
|
||||
set check_time 20
|
||||
} else {
|
||||
set check_time 5
|
||||
}
|
||||
if { $tps_time > $check_time } {
|
||||
puts "Error: low performance"
|
||||
} else {
|
||||
puts "OK: high performance"
|
||||
|
@ -21,7 +21,7 @@ bfillds
|
||||
regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
|
||||
|
||||
if { [regexp {Debug mode} [dversion]] } {
|
||||
set check_time 460
|
||||
set check_time 1500
|
||||
} else {
|
||||
set check_time 378
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ bfillds
|
||||
regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
|
||||
|
||||
if { [regexp {Debug mode} [dversion]] } {
|
||||
set check_time 30
|
||||
set check_time 50
|
||||
} else {
|
||||
set check_time 16
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ bfillds
|
||||
regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
|
||||
|
||||
if { [regexp {Debug mode} [dversion]] } {
|
||||
set check_time 30
|
||||
set check_time 60
|
||||
} else {
|
||||
set check_time 43
|
||||
}
|
||||
|
@ -66,9 +66,9 @@ bfillds
|
||||
regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
|
||||
|
||||
if { [regexp {Debug mode} [dversion]] } {
|
||||
set check_time 30
|
||||
set check_time 50
|
||||
} else {
|
||||
set check_time 913
|
||||
set check_time 20
|
||||
}
|
||||
if { $tps_time > $check_time } {
|
||||
puts "Error: low performance"
|
||||
|
@ -44,7 +44,7 @@ bfillds
|
||||
regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
|
||||
|
||||
if { [regexp {Debug mode} [dversion]] } {
|
||||
set check_time 20
|
||||
set check_time 40
|
||||
} else {
|
||||
set check_time 24
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ bfillds
|
||||
regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
|
||||
|
||||
if { [regexp {Debug mode} [dversion]] } {
|
||||
set check_time 90
|
||||
set check_time 200
|
||||
} else {
|
||||
set check_time 135
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
|
||||
if { [regexp {Debug mode} [dversion]] } {
|
||||
set check_time 25
|
||||
} else {
|
||||
set check_time 8.2
|
||||
set check_time 10
|
||||
}
|
||||
if { $tps_time > $check_time } {
|
||||
puts "Error: low performance"
|
||||
|
@ -27,7 +27,7 @@ regexp { +Tps: +([-0-9.+eE]+)} [bbuild result -t] full tps_time
|
||||
if { [regexp {Debug mode} [dversion]] } {
|
||||
set check_time 280
|
||||
} else {
|
||||
set check_time 70
|
||||
set check_time 100
|
||||
}
|
||||
if { $tps_time > $check_time } {
|
||||
puts "Error: low performance"
|
||||
|
@ -6,7 +6,7 @@ puts ""
|
||||
# Exception is raised during 'checkshape' operation.
|
||||
#######################################################################
|
||||
|
||||
cpulimit 1800
|
||||
cpulimit 2500
|
||||
|
||||
restore [locate_data_file bug24575_cx1.brep] b
|
||||
|
||||
|
@ -32,10 +32,10 @@ regexp {CPU user time: ([-0-9.+eE]+) seconds} $q1 full t1
|
||||
puts "$t1"
|
||||
if { [string compare $tcl_platform(platform) "windows"] == 0 } {
|
||||
puts "OS = Windows NT"
|
||||
set max_time1 5
|
||||
set max_time1 20
|
||||
} else {
|
||||
puts "OS = Linux"
|
||||
set max_time1 5
|
||||
set max_time1 30
|
||||
}
|
||||
if { $t1 > ${max_time1} } {
|
||||
puts "Elapsed time is more than ${max_time1} seconds - Faulty"
|
||||
@ -48,10 +48,10 @@ regexp {CPU user time: ([-0-9.+eE]+) seconds} $q2 full t2
|
||||
puts "$t2"
|
||||
if { [string compare $tcl_platform(platform) "windows"] == 0 } {
|
||||
puts "OS = Windows NT"
|
||||
set max_time2 5
|
||||
set max_time2 20
|
||||
} else {
|
||||
puts "OS = Linux"
|
||||
set max_time2 5
|
||||
set max_time2 30
|
||||
}
|
||||
if { $t2 > ${max_time2} } {
|
||||
puts "Elapsed time is more than ${max_time2} seconds - Faulty"
|
||||
|
Loading…
x
Reference in New Issue
Block a user