mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-09 18:50:54 +03:00
Fix for #23273 issue. Fix for #23273 issue (boolean/013/R9). Modifications of tests according to #23260 issue. Attempt to protect against hang-ups due to waiting for standard input change of behaviour of offset/shape_type_i/D7 case. Attempt to protect against hang-ups during initialization of menu in batch mode. increase cpulimit for parallel incmesh. #23260 is fixed. count_parallel is not needed anymore. Deleted unused code. change of behaviour of offset/shape_type_i/D7 case. The fix was incorrect. Second attempt to protect against hang-ups during initialization of menu in batch mode correction of tests in order to awoid instability. Elapsed time changed to CPU user time is performance tests. Processing of errors on Windows. Stop cpulimit killer if armed by test, after the test is completed
55 lines
1.2 KiB
Plaintext
Executable File
55 lines
1.2 KiB
Plaintext
Executable File
#INTERFACE CAF
|
|
# Presentation attributes
|
|
#
|
|
# Testing attribute: TPrsStd_AISPresentation
|
|
#
|
|
# Testing command: AISSet
|
|
#
|
|
#Sometimes this error is inside a log file, but it is outside in other case. The '?' character manage it.
|
|
puts "caf003-A4"
|
|
|
|
# Set NamedShape attribute
|
|
box aBox1 100 200 300
|
|
set aLabel 0:2
|
|
SetShape D ${aLabel} aBox1
|
|
|
|
# Initialize 3D viewer
|
|
AISInitViewer D
|
|
|
|
# Add AISPresentation attribute with parameter NS
|
|
AISSet D ${aLabel} NS
|
|
|
|
# Display presentation of NamedShape in the viewer
|
|
AISDisplay D ${aLabel}
|
|
|
|
# Save the document
|
|
set aFile ${imagedir}/caf003-A4.std
|
|
file delete ${aFile}
|
|
SaveAs D ${aFile}
|
|
if { ![file exists ${aFile}] } {
|
|
puts "There is not ${aFile} file; SaveAs command: Error"
|
|
return
|
|
}
|
|
#catch {exec chmod 777 ${aFile}}
|
|
|
|
# Restore the document
|
|
Close D
|
|
|
|
Open ${aFile} DD
|
|
|
|
# Initialize 3D viewer
|
|
AISInitViewer DD
|
|
|
|
########## Add AISPresentation attribute with parameter NS
|
|
##########AISSet DD ${aLabel} NS
|
|
|
|
# Display presentation of NamedShape in the viewer
|
|
set IsDone [catch {AISDisplay DD ${aLabel}} aResult]
|
|
if { ${IsDone} != 0 } {
|
|
puts ${aResult}
|
|
puts "Get a value of TPrsStd_AISPresentation attribute from restoring document: Error"
|
|
return
|
|
}
|
|
|
|
puts "There is the box in the viewer"
|