summaryrefslogtreecommitdiff
path: root/modules/windows_tools/tests
diff options
context:
space:
mode:
authorShashank2017-05-29 12:40:26 +0530
committerShashank2017-05-29 12:40:26 +0530
commit0345245e860375a32c9a437c4a9d9cae807134e9 (patch)
treead51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /modules/windows_tools/tests
downloadscilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip
CMSCOPE changed
Diffstat (limited to 'modules/windows_tools/tests')
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_12062.dia.ref18
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_12062.tst19
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_3672.tst26
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_3789.tst21
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_3992.tst30
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_4030.tst19
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_4584.dia.ref14
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_4584.tst17
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_4702.dia.ref16
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_4702.tst20
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_5155.tst25
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_6387.tst28
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_6447.dia.ref26
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_6447.tst31
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_6489.dia.ref19
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_6489.tst23
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_6740.tst32
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_6964.tst22
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_7021.tst19
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_7291.dia.ref24
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_7291.tst27
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_8218.tst44
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_8424.tst31
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_8959.dia.ref19
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_8959.tst20
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_9920.dia.ref18
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/bug_9920.tst19
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/text_ANSI.txt1
-rwxr-xr-xmodules/windows_tools/tests/nonreg_tests/text_UTF8.txt1
-rwxr-xr-xmodules/windows_tools/tests/unit_tests/createGUID.dia.ref11
-rwxr-xr-xmodules/windows_tools/tests/unit_tests/createGUID.tst13
-rwxr-xr-xmodules/windows_tools/tests/unit_tests/findfileassociation.dia.ref14
-rwxr-xr-xmodules/windows_tools/tests/unit_tests/findfileassociation.tst16
-rwxr-xr-xmodules/windows_tools/tests/unit_tests/getsystemmetrics.dia.ref67
-rwxr-xr-xmodules/windows_tools/tests/unit_tests/getsystemmetrics.tst68
-rwxr-xr-xmodules/windows_tools/tests/unit_tests/intelcompiler.dia.ref13
-rwxr-xr-xmodules/windows_tools/tests/unit_tests/intelcompiler.tst14
-rwxr-xr-xmodules/windows_tools/tests/unit_tests/powershell.dia.ref11
-rwxr-xr-xmodules/windows_tools/tests/unit_tests/powershell.tst11
-rwxr-xr-xmodules/windows_tools/tests/unit_tests/winqueryreg.dia.ref19
-rwxr-xr-xmodules/windows_tools/tests/unit_tests/winqueryreg.tst26
41 files changed, 912 insertions, 0 deletions
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_12062.dia.ref b/modules/windows_tools/tests/nonreg_tests/bug_12062.dia.ref
new file mode 100755
index 000000000..2e20ca08a
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_12062.dia.ref
@@ -0,0 +1,18 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2012 - Scilab Enterprises - Vincent COUVERT
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- Non-regression test for bug 12062 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=12062
+//
+// <-- Short Description -->
+// getsystemmetrics() failed for some properties such as 'SM_CXMAXIMIZED'.
+ierr = execstr("getsystemmetrics(""SM_CXMAXIMIZED"")", "errcatch");
+assert_checkequal(ierr, 0);
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_12062.tst b/modules/windows_tools/tests/nonreg_tests/bug_12062.tst
new file mode 100755
index 000000000..4f99a93f1
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_12062.tst
@@ -0,0 +1,19 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2012 - Scilab Enterprises - Vincent COUVERT
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- Non-regression test for bug 12062 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=12062
+//
+// <-- Short Description -->
+// getsystemmetrics() failed for some properties such as 'SM_CXMAXIMIZED'.
+
+ierr = execstr("getsystemmetrics(""SM_CXMAXIMIZED"")", "errcatch");
+assert_checkequal(ierr, 0);
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_3672.tst b/modules/windows_tools/tests/nonreg_tests/bug_3672.tst
new file mode 100755
index 000000000..1a371ae07
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_3672.tst
@@ -0,0 +1,26 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 3672 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=3672
+//
+// <-- Short Description -->
+// When Scilab crashes, a zombie Scilab process (Wscilex.exe) lies in the background. And it is no longer possible to launch Scilab by right clicking on a Scilab script file.
+
+// <-- INTERACTIVE TEST -->
+
+// opens scilab.quit & add a command with some errors
+// example : blbalflallafl
+// save this file
+// launch scilab
+// quit scilab
+// click on associated file .sci or .sce
+// a new scilab will be open
+// dont forget to remove line in scilab.quit after ;)
+
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_3789.tst b/modules/windows_tools/tests/nonreg_tests/bug_3789.tst
new file mode 100755
index 000000000..20530809a
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_3789.tst
@@ -0,0 +1,21 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 3789 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=3789
+//
+// <-- Short Description -->
+// When Scilab crashes, on windows 2000 with a Pentium II
+
+// <-- INTERACTIVE TEST -->
+
+// You need to have a Pentium II with windows 2000
+// install scilab on this pc
+// try to launch scilab
+// Enjoy !
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_3992.tst b/modules/windows_tools/tests/nonreg_tests/bug_3992.tst
new file mode 100755
index 000000000..6a638579e
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_3992.tst
@@ -0,0 +1,30 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 3992 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=3992
+//
+// <-- Short Description -->
+// fix some invalid dependencies on external libraries
+
+// <-- INTERACTIVE TEST -->
+
+// checks that we don't have a dependency on libmmd.dll
+
+// dumpbin /IMPORTS hashtable.dll
+// dumpbin /IMPORTS integer.dll
+// dumpbin /IMPORTS interpolation.dll
+// dumpbin /IMPORTS randlib.dll
+// dumpbin /IMPORTS scicos.dll
+// dumpbin /IMPORTS scicos_blocks.dll
+// dumpbin /IMPORTS scicos_sundials.dll
+// dumpbin /IMPORTS scigraphic_export.dll
+
+// checks that we don't have a dependency on user32.dll
+// dumpbin /IMPORTS io.dll
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_4030.tst b/modules/windows_tools/tests/nonreg_tests/bug_4030.tst
new file mode 100755
index 000000000..28b88a377
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_4030.tst
@@ -0,0 +1,19 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 4030 -->
+//
+// <-- INTERACTIVE TEST -->
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=4030
+//
+// <-- Short Description -->
+// unix_w('dir /s') displays strange matrix
+
+unix_w('dir /s')
+
+// see output
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_4584.dia.ref b/modules/windows_tools/tests/nonreg_tests/bug_4584.dia.ref
new file mode 100755
index 000000000..0e317e9a4
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_4584.dia.ref
@@ -0,0 +1,14 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 4584 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=4584
+//
+// <-- Short Description -->
+// home value is wrong on Windows
+if home <> getenv('USERPROFILE',SCI) then bugmes();quit;end
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_4584.tst b/modules/windows_tools/tests/nonreg_tests/bug_4584.tst
new file mode 100755
index 000000000..df23cb648
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_4584.tst
@@ -0,0 +1,17 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 4584 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=4584
+//
+// <-- Short Description -->
+// home value is wrong on Windows
+
+if home <> getenv('USERPROFILE',SCI) then pause,end
+
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_4702.dia.ref b/modules/windows_tools/tests/nonreg_tests/bug_4702.dia.ref
new file mode 100755
index 000000000..d6263b466
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_4702.dia.ref
@@ -0,0 +1,16 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 4702 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=4702
+//
+// <-- Short Description -->
+// on some case, dos(cmd) does not return results
+[output, bStat] = dos('ipconfig');
+if bStat == %f then bugmes();quit;end
+if output == [] then bugmes();quit;end
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_4702.tst b/modules/windows_tools/tests/nonreg_tests/bug_4702.tst
new file mode 100755
index 000000000..0ddb9bbc9
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_4702.tst
@@ -0,0 +1,20 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 4702 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=4702
+//
+// <-- Short Description -->
+// on some case, dos(cmd) does not return results
+
+[output, bStat] = dos('ipconfig');
+if bStat == %f then pause,end
+if output == [] then pause,end
+
+
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_5155.tst b/modules/windows_tools/tests/nonreg_tests/bug_5155.tst
new file mode 100755
index 000000000..7181ee128
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_5155.tst
@@ -0,0 +1,25 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 5155 -->
+// <-- INTERACTIVE TEST -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=5155
+//
+// <-- Short Description -->
+// Scilab windows 32 bits version requires CPU SSE 2 instructions.
+
+// Install Scilab on an old pentium without SSE 2 instructions and try to launch it.
+
+// 1+1
+
+
+
+
+
+
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_6387.tst b/modules/windows_tools/tests/nonreg_tests/bug_6387.tst
new file mode 100755
index 000000000..a63dd5adc
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_6387.tst
@@ -0,0 +1,28 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 6387 -->
+// <-- INTERACTIVE TEST -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=6387
+//
+// <-- Short Description -->
+// 'dos' failed to execute very long command line and returns an msg error : line too long
+
+// try as very long command as (example)
+
+dos("""D:\GIT-SC~2\scilab\scilab\bin\translator.exe"" -lib
+""C:\Users\toto\AppData\Local\Temp\SCI_TMP_6196_\MYMOPACKAGE.mo"" -lib
+""C:\Users\toto\AppData\Local\Temp\SCI_TMP_6196_\RLC_circuit_im.mo"" -o
+""C:\Users\toto\AppData\Local\Temp\SCI_TMP_6196_\RLC_circuit_imf.mo"" -with-init-command ""RLC_circuit_im
+RLC_circuit_imf;"" > ""C:\Users\toto\AppData\Local\Temp\SCI_TMP_6196_\S_translator.err""")
+
+
+
+
+
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_6447.dia.ref b/modules/windows_tools/tests/nonreg_tests/bug_6447.dia.ref
new file mode 100755
index 000000000..62e76b837
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_6447.dia.ref
@@ -0,0 +1,26 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 6447 -->
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=6447
+//
+// <-- Short Description -->
+// unix_g() does not support properly neither UTF8 nor ANSI encoded output
+// unix_g uses dos on Windows.
+cd("SCI\modules\windows_tools\tests\nonreg_tests");
+ref1 = "Les caractères accentués ne sont supportés pas par unix_g() lorsqu''ils sont encodés en UTF8 comme ici";
+[a, b] = dos("type text_UTF8.txt");
+if b <> %t then bugmes();quit;end
+if a <> ref1 then bugmes();quit;end
+[c, d] = unix_g("type text_UTF8.txt");
+if d <> 0 then bugmes();quit;end
+if c <> ref1 then bugmes();quit;end
+[e, f] = dos("type text_ANSI.txt");
+if f <> %t then bugmes();quit;end
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_6447.tst b/modules/windows_tools/tests/nonreg_tests/bug_6447.tst
new file mode 100755
index 000000000..ff9826251
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_6447.tst
@@ -0,0 +1,31 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 6447 -->
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=6447
+//
+// <-- Short Description -->
+// unix_g() does not support properly neither UTF8 nor ANSI encoded output
+// unix_g uses dos on Windows.
+
+cd("SCI\modules\windows_tools\tests\nonreg_tests");
+ref1 = "Les caractères accentués ne sont supportés pas par unix_g() lorsqu''ils sont encodés en UTF8 comme ici";
+
+[a, b] = dos("type text_UTF8.txt");
+if b <> %t then pause,end
+if a <> ref1 then pause,end
+
+[c, d] = unix_g("type text_UTF8.txt");
+if d <> 0 then pause,end
+if c <> ref1 then pause,end
+
+[e, f] = dos("type text_ANSI.txt");
+if f <> %t then pause,end
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_6489.dia.ref b/modules/windows_tools/tests/nonreg_tests/bug_6489.dia.ref
new file mode 100755
index 000000000..aa38100f0
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_6489.dia.ref
@@ -0,0 +1,19 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// <-- Non-regression test for bug 6387 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=6489
+//
+// <-- Short Description -->
+// removed a wrong dependendy on Wininet.dll
+if getos() == 'Windows' then
+ r = dllinfo(SCI+'/bin/windows_tools.dll','imports');
+ for i = 1 : size(r)
+ if grep(r(i)(1),'/WININET.DLL/i','r') <> [] then bugmes();quit;end
+ end
+end
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_6489.tst b/modules/windows_tools/tests/nonreg_tests/bug_6489.tst
new file mode 100755
index 000000000..f05256e27
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_6489.tst
@@ -0,0 +1,23 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 6387 -->
+
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=6489
+//
+// <-- Short Description -->
+// removed a wrong dependendy on Wininet.dll
+if getos() == 'Windows' then
+ r = dllinfo(SCI+'/bin/windows_tools.dll','imports');
+ for i = 1 : size(r)
+ if grep(r(i)(1),'/WININET.DLL/i','r') <> [] then pause,end
+ end
+end
+
+
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_6740.tst b/modules/windows_tools/tests/nonreg_tests/bug_6740.tst
new file mode 100755
index 000000000..eb0fc9a9e
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_6740.tst
@@ -0,0 +1,32 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 6740 -->
+
+// <-- INTERACTIVE TEST -->
+
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=6740
+//
+// <-- Short Description -->
+// It was not possible to launch Scilab as Minimized or Maximized Window.
+
+// Creates or uses Scilab shorcut on Desktop
+// Properties on Icon
+// Modify Start As Minimized
+// Start scilab
+// it must be minimized
+
+// Modify Start As Maximized
+// Start scilab
+// it must be maximized
+
+// Modify Start As Normal
+// Start scilab
+// it must be Normal
+
+
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_6964.tst b/modules/windows_tools/tests/nonreg_tests/bug_6964.tst
new file mode 100755
index 000000000..9585fb2c1
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_6964.tst
@@ -0,0 +1,22 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- INTERACTIVE TEST -->
+//
+// <-- Non-regression test for bug 6964 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=6964
+//
+// <-- Short Description -->
+// Scilab detected a wrong SCI path.
+
+// install scilab in a no ascii directory
+// example c:\Guanhuà\scilab-5.3 or c:\中国语文\scilab-5.3
+
+// start scilab and check SCI value in scilab
+ \ No newline at end of file
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_7021.tst b/modules/windows_tools/tests/nonreg_tests/bug_7021.tst
new file mode 100755
index 000000000..d76ba8a85
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_7021.tst
@@ -0,0 +1,19 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// <-- Non-regression test for bug 7021 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=7021
+//
+// <-- Short Description -->
+// Scilab did not start and returned a error system (193) on Windows
+
+// <-- INTERACTIVE TEST -->
+
+// install scilab without tclsci module
+// start scilab
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_7291.dia.ref b/modules/windows_tools/tests/nonreg_tests/bug_7291.dia.ref
new file mode 100755
index 000000000..a55d50520
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_7291.dia.ref
@@ -0,0 +1,24 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- Non-regression test for bug 7291 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=7291
+//
+// <-- Short Description -->
+// unix('') and dos('') returned a wrong messsage in console
+r = unix('');
+if r <> 1 then bugmes();quit;end
+[a,b] = dos('');
+if b <> %f then bugmes();quit;end
+if a <> [] then bugmes();quit;end
+[a,b] = dos('', '-echo');
+if b <> %f then bugmes();quit;end
+if a <> [] then bugmes();quit;end
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_7291.tst b/modules/windows_tools/tests/nonreg_tests/bug_7291.tst
new file mode 100755
index 000000000..90a3f6c27
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_7291.tst
@@ -0,0 +1,27 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- Non-regression test for bug 7291 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=7291
+//
+// <-- Short Description -->
+// unix('') and dos('') returned a wrong messsage in console
+
+r = unix('');
+if r <> 1 then pause,end
+
+[a,b] = dos('');
+if b <> %f then pause,end
+if a <> [] then pause,end
+
+[a,b] = dos('', '-echo');
+if b <> %f then pause,end
+if a <> [] then pause,end
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_8218.tst b/modules/windows_tools/tests/nonreg_tests/bug_8218.tst
new file mode 100755
index 000000000..1894eb2ef
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_8218.tst
@@ -0,0 +1,44 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- JVM MANDATORY -->
+//
+// <-- INTERACTIVE TEST -->
+//
+// <-- Non-regression test for bug 8218 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=8218
+//
+// <-- Short Description -->
+// file association with filename accentued characters did not work
+//
+
+// install a binary version with file association enabled
+
+tab_ref = [
+"dédé",
+"世界您好",
+"азеазея",
+"ハロー・ワールド",
+"เฮลโลเวิลด์",
+"حريات وحقوق"];
+
+// Creates files to check if we can open files
+
+tab_ref = tab_ref + '.sce';
+
+cd TMPDIR;
+disp('Go to directory with Windows Explorer: ' + TMPDIR);
+
+for i = 1:size(tab_ref, "*")
+ mputl('if you see this text it is OK', tab_ref(i));
+end
+
+//click on localized filenames
+// it must be opened by scilab
+
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_8424.tst b/modules/windows_tools/tests/nonreg_tests/bug_8424.tst
new file mode 100755
index 000000000..43839cc2f
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_8424.tst
@@ -0,0 +1,31 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- JVM MANDATORY -->
+//
+// <-- INTERACTIVE TEST -->
+//
+// <-- Non-regression test for bug 8424 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=8424
+//
+// <-- Short Description -->
+// [a, b] = dos("git 1>&2") returned a wrong error.
+//
+// git without parameter returns same thing git --help.
+// except that it is in stderr and not in stdout
+// Here dos failed and returned [] and a error in api_scilab.
+// This test is interactive because it is require git.
+
+[a1, b1] = dos("git 1>&2");
+if b1 <> %f then pause, end
+
+[a2, b2] = dos("git --help");
+if b2 <> %t then pause, end
+
+if ~or(a1 == a2) then pause, end
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_8959.dia.ref b/modules/windows_tools/tests/nonreg_tests/bug_8959.dia.ref
new file mode 100755
index 000000000..335880518
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_8959.dia.ref
@@ -0,0 +1,19 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2011 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- Non-regression test for bug 8959 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=8959
+//
+// <-- Short Description -->
+// winqueryreg returned an incorrect value if the value name was false.
+ierr = execstr("r = winqueryreg(""HKEY_LOCAL_MACHINE"", ""Software\Microsoft\Microsoft SDKs\Windows"", ""foo"")", "errcatch");
+if ierr <> 999 then bugmes();quit;end
+if lasterror() <> msprintf(_("%s: Cannot query value of this type.\n"), "winqueryreg") then bugmes();quit;end
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_8959.tst b/modules/windows_tools/tests/nonreg_tests/bug_8959.tst
new file mode 100755
index 000000000..7bb87138c
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_8959.tst
@@ -0,0 +1,20 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2011 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- Non-regression test for bug 8959 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=8959
+//
+// <-- Short Description -->
+// winqueryreg returned an incorrect value if the value name was false.
+
+ierr = execstr("r = winqueryreg(""HKEY_LOCAL_MACHINE"", ""Software\Microsoft\Microsoft SDKs\Windows"", ""foo"")", "errcatch");
+if ierr <> 999 then pause, end
+if lasterror() <> msprintf(_("%s: Cannot query value of this type.\n"), "winqueryreg") then pause, end
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_9920.dia.ref b/modules/windows_tools/tests/nonreg_tests/bug_9920.dia.ref
new file mode 100755
index 000000000..56cf937f8
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_9920.dia.ref
@@ -0,0 +1,18 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2011 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- Non-regression test for bug 9920 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=9920
+//
+// <-- Short Description -->
+// winqueryreg did not manage HKEY_CURRENT_CONFIG.
+ierr = execstr('winqueryreg(''HKEY_CURRENT_CONFIG'', ''Software\Fonts\'',''LogPixels'')', 'errcatch');
+assert_checkequal(ierr, 0);
diff --git a/modules/windows_tools/tests/nonreg_tests/bug_9920.tst b/modules/windows_tools/tests/nonreg_tests/bug_9920.tst
new file mode 100755
index 000000000..e8c668f29
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/bug_9920.tst
@@ -0,0 +1,19 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2011 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- Non-regression test for bug 9920 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=9920
+//
+// <-- Short Description -->
+// winqueryreg did not manage HKEY_CURRENT_CONFIG.
+
+ierr = execstr('winqueryreg(''HKEY_CURRENT_CONFIG'', ''Software\Fonts\'',''LogPixels'')', 'errcatch');
+assert_checkequal(ierr, 0);
diff --git a/modules/windows_tools/tests/nonreg_tests/text_ANSI.txt b/modules/windows_tools/tests/nonreg_tests/text_ANSI.txt
new file mode 100755
index 000000000..6e611531a
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/text_ANSI.txt
@@ -0,0 +1 @@
+Les caractres accentus ne sont pas supports par unix_g() lorsqu'ils sont encods en ANSI comme ici
diff --git a/modules/windows_tools/tests/nonreg_tests/text_UTF8.txt b/modules/windows_tools/tests/nonreg_tests/text_UTF8.txt
new file mode 100755
index 000000000..ffadb1fe2
--- /dev/null
+++ b/modules/windows_tools/tests/nonreg_tests/text_UTF8.txt
@@ -0,0 +1 @@
+Les caractères accentués ne sont supportés pas par unix_g() lorsqu'ils sont encodés en UTF8 comme ici
diff --git a/modules/windows_tools/tests/unit_tests/createGUID.dia.ref b/modules/windows_tools/tests/unit_tests/createGUID.dia.ref
new file mode 100755
index 000000000..67e7e3ba9
--- /dev/null
+++ b/modules/windows_tools/tests/unit_tests/createGUID.dia.ref
@@ -0,0 +1,11 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+res = createGUID(1);
+if length(res) <> 36 then bugmes();quit;end;
+if size(tokens(res,'-'),'*') <> 5 then bugmes();quit;end;
+res = createGUID(100);
+if size(res,'*') <> 100 then bugmes();quit;end;
diff --git a/modules/windows_tools/tests/unit_tests/createGUID.tst b/modules/windows_tools/tests/unit_tests/createGUID.tst
new file mode 100755
index 000000000..40604badf
--- /dev/null
+++ b/modules/windows_tools/tests/unit_tests/createGUID.tst
@@ -0,0 +1,13 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+res = createGUID(1);
+if length(res) <> 36 then pause,end;
+if size(tokens(res,'-'),'*') <> 5 then pause,end;
+
+res = createGUID(100);
+if size(res,'*') <> 100 then pause,end;
diff --git a/modules/windows_tools/tests/unit_tests/findfileassociation.dia.ref b/modules/windows_tools/tests/unit_tests/findfileassociation.dia.ref
new file mode 100755
index 000000000..1477d47c0
--- /dev/null
+++ b/modules/windows_tools/tests/unit_tests/findfileassociation.dia.ref
@@ -0,0 +1,14 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// Please be sure that current scilab is associated with .sce & .sci extensions
+//
+if getos() == 'Windows' then
+ r = findfileassociation('.sce');
+ if r == [] then bugmes();quit;end
+ r = findfileassociation('.sci');
+ if r == [] then bugmes();quit;end
+end
diff --git a/modules/windows_tools/tests/unit_tests/findfileassociation.tst b/modules/windows_tools/tests/unit_tests/findfileassociation.tst
new file mode 100755
index 000000000..269ab566c
--- /dev/null
+++ b/modules/windows_tools/tests/unit_tests/findfileassociation.tst
@@ -0,0 +1,16 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - DIGITEO - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// Please be sure that current scilab is associated with .sce & .sci extensions
+//
+if getos() == 'Windows' then
+ r = findfileassociation('.sce');
+ if r == [] then pause,end
+
+ r = findfileassociation('.sci');
+ if r == [] then pause,end
+end
diff --git a/modules/windows_tools/tests/unit_tests/getsystemmetrics.dia.ref b/modules/windows_tools/tests/unit_tests/getsystemmetrics.dia.ref
new file mode 100755
index 000000000..aa61119b0
--- /dev/null
+++ b/modules/windows_tools/tests/unit_tests/getsystemmetrics.dia.ref
@@ -0,0 +1,67 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+getsystemmetrics('SM_ARRANGE');
+getsystemmetrics('SM_CLEANBOOT');
+getsystemmetrics('SM_CMONITORS');
+getsystemmetrics('SM_CMOUSEBUTTONS');
+getsystemmetrics('SM_CXBORDER');
+getsystemmetrics('SM_CXCURSOR');
+getsystemmetrics('SM_CXDLGFRAME');
+getsystemmetrics('SM_CXDOUBLECLK');
+getsystemmetrics('SM_CXDRAG');
+getsystemmetrics('SM_CXEDGE');
+getsystemmetrics('SM_CXFIXEDFRAME');
+getsystemmetrics('SM_CXFOCUSBORDER');
+getsystemmetrics('SM_CXFRAME');
+getsystemmetrics('SM_CXFULLSCREEN');
+getsystemmetrics('SM_CXHSCROLL');
+getsystemmetrics('SM_CXHTHUMB');
+getsystemmetrics('SM_CYICON');
+getsystemmetrics('SM_CYICONSPACING');
+getsystemmetrics('SM_CYKANJIWINDOW');
+getsystemmetrics('SM_CYMAXIMIZED');
+getsystemmetrics('SM_CYMAXTRACK');
+getsystemmetrics('SM_CYMENU');
+getsystemmetrics('SM_CYMENUCHECK');
+getsystemmetrics('SM_CYMENUSIZE');
+getsystemmetrics('SM_CYMIN');
+getsystemmetrics('SM_CYMINIMIZED');
+getsystemmetrics('SM_CYMINSPACING');
+getsystemmetrics('SM_CYMINTRACK');
+getsystemmetrics('SM_CYSCREEN');
+getsystemmetrics('SM_CYSIZE');
+getsystemmetrics('SM_CYSIZEFRAME');
+getsystemmetrics('SM_CYSMCAPTION');
+getsystemmetrics('SM_CYSMICON');
+getsystemmetrics('SM_CYSMSIZE');
+getsystemmetrics('SM_CYVIRTUALSCREEN');
+getsystemmetrics('SM_CYVSCROLL');
+getsystemmetrics('SM_CYVTHUMB');
+getsystemmetrics('SM_DBCSENABLED');
+getsystemmetrics('SM_DEBUG');
+getsystemmetrics('SM_IMMENABLED');
+getsystemmetrics('SM_MEDIACENTER');
+getsystemmetrics('SM_MENUDROPALIGNMENT');
+getsystemmetrics('SM_MIDEASTENABLED');
+getsystemmetrics('SM_MOUSEPRESENT');
+getsystemmetrics('SM_MOUSEHORIZONTALWHEELPRESENT');
+getsystemmetrics('SM_MOUSEWHEELPRESENT');
+getsystemmetrics('SM_NETWORK');
+getsystemmetrics('SM_PENWINDOWS');
+getsystemmetrics('SM_REMOTECONTROL');
+getsystemmetrics('SM_REMOTESESSION');
+getsystemmetrics('SM_SAMEDISPLAYFORMAT');
+getsystemmetrics('SM_SECURE');
+getsystemmetrics('SM_SERVERR2');
+getsystemmetrics('SM_SHOWSOUNDS');
+getsystemmetrics('SM_SHUTTINGDOWN');
+getsystemmetrics('SM_SLOWMACHINE');
+getsystemmetrics('SM_STARTER');
+getsystemmetrics('SM_SWAPBUTTON');
+getsystemmetrics('SM_TABLETPC');
+getsystemmetrics('SM_XVIRTUALSCREEN');
+getsystemmetrics('SM_YVIRTUALSCREEN');
diff --git a/modules/windows_tools/tests/unit_tests/getsystemmetrics.tst b/modules/windows_tools/tests/unit_tests/getsystemmetrics.tst
new file mode 100755
index 000000000..59ec873e8
--- /dev/null
+++ b/modules/windows_tools/tests/unit_tests/getsystemmetrics.tst
@@ -0,0 +1,68 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+getsystemmetrics('SM_ARRANGE');
+getsystemmetrics('SM_CLEANBOOT');
+getsystemmetrics('SM_CMONITORS');
+getsystemmetrics('SM_CMOUSEBUTTONS');
+getsystemmetrics('SM_CXBORDER');
+getsystemmetrics('SM_CXCURSOR');
+getsystemmetrics('SM_CXDLGFRAME');
+getsystemmetrics('SM_CXDOUBLECLK');
+getsystemmetrics('SM_CXDRAG');
+getsystemmetrics('SM_CXEDGE');
+getsystemmetrics('SM_CXFIXEDFRAME');
+getsystemmetrics('SM_CXFOCUSBORDER');
+getsystemmetrics('SM_CXFRAME');
+getsystemmetrics('SM_CXFULLSCREEN');
+getsystemmetrics('SM_CXHSCROLL');
+getsystemmetrics('SM_CXHTHUMB');
+getsystemmetrics('SM_CYICON');
+getsystemmetrics('SM_CYICONSPACING');
+getsystemmetrics('SM_CYKANJIWINDOW');
+getsystemmetrics('SM_CYMAXIMIZED');
+getsystemmetrics('SM_CYMAXTRACK');
+getsystemmetrics('SM_CYMENU');
+getsystemmetrics('SM_CYMENUCHECK');
+getsystemmetrics('SM_CYMENUSIZE');
+getsystemmetrics('SM_CYMIN');
+getsystemmetrics('SM_CYMINIMIZED');
+getsystemmetrics('SM_CYMINSPACING');
+getsystemmetrics('SM_CYMINTRACK');
+getsystemmetrics('SM_CYSCREEN');
+getsystemmetrics('SM_CYSIZE');
+getsystemmetrics('SM_CYSIZEFRAME');
+getsystemmetrics('SM_CYSMCAPTION');
+getsystemmetrics('SM_CYSMICON');
+getsystemmetrics('SM_CYSMSIZE');
+getsystemmetrics('SM_CYVIRTUALSCREEN');
+getsystemmetrics('SM_CYVSCROLL');
+getsystemmetrics('SM_CYVTHUMB');
+getsystemmetrics('SM_DBCSENABLED');
+getsystemmetrics('SM_DEBUG');
+getsystemmetrics('SM_IMMENABLED');
+getsystemmetrics('SM_MEDIACENTER');
+getsystemmetrics('SM_MENUDROPALIGNMENT');
+getsystemmetrics('SM_MIDEASTENABLED');
+getsystemmetrics('SM_MOUSEPRESENT');
+getsystemmetrics('SM_MOUSEHORIZONTALWHEELPRESENT');
+getsystemmetrics('SM_MOUSEWHEELPRESENT');
+getsystemmetrics('SM_NETWORK');
+getsystemmetrics('SM_PENWINDOWS');
+getsystemmetrics('SM_REMOTECONTROL');
+getsystemmetrics('SM_REMOTESESSION');
+getsystemmetrics('SM_SAMEDISPLAYFORMAT');
+getsystemmetrics('SM_SECURE');
+getsystemmetrics('SM_SERVERR2');
+getsystemmetrics('SM_SHOWSOUNDS');
+getsystemmetrics('SM_SHUTTINGDOWN');
+getsystemmetrics('SM_SLOWMACHINE');
+getsystemmetrics('SM_STARTER');
+getsystemmetrics('SM_SWAPBUTTON');
+getsystemmetrics('SM_TABLETPC');
+getsystemmetrics('SM_XVIRTUALSCREEN');
+getsystemmetrics('SM_YVIRTUALSCREEN');
diff --git a/modules/windows_tools/tests/unit_tests/intelcompiler.dia.ref b/modules/windows_tools/tests/unit_tests/intelcompiler.dia.ref
new file mode 100755
index 000000000..ddb52b85d
--- /dev/null
+++ b/modules/windows_tools/tests/unit_tests/intelcompiler.dia.ref
@@ -0,0 +1,13 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2013 - Scilab Enterprises - Vincent COUVERT
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+// Checks that Scilab:
+// - has been compiled using Intel C++ Compiler version 14
+// - and uses MKL
+[a,b]=getdebuginfo();
+assert_checkequal(b(5), "Compiled with Intel compiler (1400)");
+assert_checkequal(b(6), "BLAS library optimized version: MKL");
+
diff --git a/modules/windows_tools/tests/unit_tests/intelcompiler.tst b/modules/windows_tools/tests/unit_tests/intelcompiler.tst
new file mode 100755
index 000000000..a45817dcd
--- /dev/null
+++ b/modules/windows_tools/tests/unit_tests/intelcompiler.tst
@@ -0,0 +1,14 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2013 - Scilab Enterprises - Vincent COUVERT
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+
+// Checks that Scilab:
+// - has been compiled using Intel C++ Compiler version 14
+// - and uses MKL
+
+[a,b]=getdebuginfo();
+assert_checkequal(b(5), "Compiled with Intel compiler (1400)");
+assert_checkequal(b(6), "BLAS library optimized version: MKL");
diff --git a/modules/windows_tools/tests/unit_tests/powershell.dia.ref b/modules/windows_tools/tests/unit_tests/powershell.dia.ref
new file mode 100755
index 000000000..a0ee70603
--- /dev/null
+++ b/modules/windows_tools/tests/unit_tests/powershell.dia.ref
@@ -0,0 +1,11 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - INRIA - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+if getos() == 'Windows' then
+ cd('SCI/bin');
+ r = powershell('ls');
+ if r == [] then bugmes();quit;end
+end
diff --git a/modules/windows_tools/tests/unit_tests/powershell.tst b/modules/windows_tools/tests/unit_tests/powershell.tst
new file mode 100755
index 000000000..710828bf0
--- /dev/null
+++ b/modules/windows_tools/tests/unit_tests/powershell.tst
@@ -0,0 +1,11 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - INRIA - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+if getos() == 'Windows' then
+ cd('SCI/bin');
+ r = powershell('ls');
+ if r == [] then pause,end
+end \ No newline at end of file
diff --git a/modules/windows_tools/tests/unit_tests/winqueryreg.dia.ref b/modules/windows_tools/tests/unit_tests/winqueryreg.dia.ref
new file mode 100755
index 000000000..6b5b68188
--- /dev/null
+++ b/modules/windows_tools/tests/unit_tests/winqueryreg.dia.ref
@@ -0,0 +1,19 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- WINDOWS ONLY -->
+assert_checkerror('winqueryreg()', [], 77);
+assert_checkerror('winqueryreg(''name'', ''HKEY_CURRENT_USER'')', [], 999);
+mousechar = winqueryreg('name', 'HKEY_CURRENT_USER','control panel\mouse');
+assert_checktrue(size(mousechar,'*') <> 0);
+cpu = winqueryreg('HKEY_LOCAL_MACHINE','HARDWARE\DESCRIPTION\System\CentralProcessor\0\','ProcessorNameString');
+assert_checktrue(length(cpu) <> 0);
+software1 = winqueryreg('key', 'HKEY_LOCAL_MACHINE','Software');
+assert_checktrue(size(software1, "*") <> 0);
+software2 = winqueryreg('key', 'HKLM','Software');
+assert_checktrue(size(software2, "*") <> 0);
+assert_checkequal(software1, software2);
diff --git a/modules/windows_tools/tests/unit_tests/winqueryreg.tst b/modules/windows_tools/tests/unit_tests/winqueryreg.tst
new file mode 100755
index 000000000..f874c394f
--- /dev/null
+++ b/modules/windows_tools/tests/unit_tests/winqueryreg.tst
@@ -0,0 +1,26 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2008 - INRIA - Allan CORNET
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- WINDOWS ONLY -->
+
+
+assert_checkerror('winqueryreg()', [], 77);
+assert_checkerror('winqueryreg(''name'', ''HKEY_CURRENT_USER'')', [], 999);
+
+mousechar = winqueryreg('name', 'HKEY_CURRENT_USER','control panel\mouse');
+assert_checktrue(size(mousechar,'*') <> 0);
+
+cpu = winqueryreg('HKEY_LOCAL_MACHINE','HARDWARE\DESCRIPTION\System\CentralProcessor\0\','ProcessorNameString');
+assert_checktrue(length(cpu) <> 0);
+
+software1 = winqueryreg('key', 'HKEY_LOCAL_MACHINE','Software');
+assert_checktrue(size(software1, "*") <> 0);
+
+software2 = winqueryreg('key', 'HKLM','Software');
+assert_checktrue(size(software2, "*") <> 0);
+
+assert_checkequal(software1, software2);