1//<-- CLI SHELL MODE --> 2// ============================================================================= 3// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab 4// Copyright (C) 2009 - DIGITEO - Allan CORNET 5// 6// This file is distributed under the same license as the Scilab package. 7// ============================================================================= 8ref = 'SCI/modules/fileio/macros/foo.sci'; 9r = pathconvert('SCI/modules/fileio\macros/foo.sci',%f,%f,'u'); 10if r <> ref then bugmes();quit;end 11ref = 'SCI\modules\fileio\macros\foo.sci'; 12r = pathconvert('SCI/modules/fileio\macros/foo.sci',%f,%f,'w'); 13if r <> ref then bugmes();quit;end 14if getos() == 'Windows' then 15 ref = WSCI + '\modules\fileio\macros\cd.sci'; 16else 17 ref = SCI + '\modules\fileio\macros\cd.sci'; 18 ref = strsubst(ref,filesep(),'\'); 19end 20r = pathconvert('SCI/modules/fileio/macros/cd.sci',%f,%t,'w'); 21if r <> ref then bugmes();quit;end 22ref = home + '\modules\fileio\macros\foo.sci'; 23if getos() <> 'Windows' then 24 ref = strsubst(ref,filesep(),'\'); 25end 26r = pathconvert('HOME/modules/fileio/macros/foo.sci',%f,%t,'w'); 27if r <> ref then bugmes();quit;end 28ref = '/cygdrive/c/tmp'; 29r = pathconvert('c:/tmp',%f,%t,'u'); 30if r <> ref then bugmes();quit;end 31ref = 'c:\tmp'; 32r = pathconvert('/cygdrive/c/tmp',%f,%f,'w'); 33if r <> ref then bugmes();quit;end 34