0027146: Create command checkplatform
[occt.git] / tests / demo / draw / getsource
CommitLineData
d33dea30
PK
1# test for command getsource
2
3# check that path returned for command pload is as expected
863f782a 4if { [checkplatform -windows] } {
b725d7c5 5 set expected src/Draw/Draw_PloadCommands.cxx
6} else {
7 set expected /src/Draw/Draw_PloadCommands.cxx
8}
d33dea30
PK
9set path [lindex [getsourcefile pload] 1]
10if { [string compare $path $expected] } {
11 puts "Error: command 'getsourcefile pload' returned '$path' while expected '$expected'"
12}
13
14puts "TEST COMPLETED"