0023412: Integration of test grid "dec" into the new testing system
[occt.git] / tests / xcaf / begin
CommitLineData
b053b764 1# in tests expression "set AddToDocument ASSEMBLY_C_L" means creating assembly and initializing colors and layers
2# and expression "set AddToDocument COLORS_LAYERS" means initializing colors and layers
3#
4if { [array get Draw_Groups "TOPOLOGY Feature commands"] == "" } {
5 pload DCAF
6 pload TOPTEST
7 pload XDE
8}
9
10cpulimit 1000
11
12set ErrorCode 0
13##############
14### ErrorCode means :
15### 0 - Success
16### 1 - Warning
17### 2 - Error
18###############
19
20#if {[string compare [datadir] "."] == 0} {
21# datadir [file dirname [info script]]/data
22#}
23
24if { [info exists imagedir] == 0 } {
25 set imagedir .
26}
27
28#set WorkDirectory "$env(TmpDir)"
29set WorkDirectory $imagedir
30
31
32if {![file exists $WorkDirectory]} {
33 catch {[file mkdir $WorkDirectory]}
34} else {
35 if {![file isdirectory $WorkDirectory]} {
36 puts "The assigned work directory $WorkDirectory is not directory! Exit ..."
37 exit
38 }
39}