create the reference for the historyfile.encoding test - module history manager
Yann Collette [Tue, 30 Jun 2009 14:32:54 +0000 (16:32 +0200)]
scilab/modules/history_manager/tests/unit_tests/historyfile.encoding.dia.ref [new file with mode: 0644]

diff --git a/scilab/modules/history_manager/tests/unit_tests/historyfile.encoding.dia.ref b/scilab/modules/history_manager/tests/unit_tests/historyfile.encoding.dia.ref
new file mode 100644 (file)
index 0000000..90d41d0
--- /dev/null
@@ -0,0 +1,25 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2009 - DIGITEO
+//
+//  This file is distributed under the same license as the Scilab package.
+// =============================================================================
+cd(TMPDIR);
+if MSDOS then
+       unix_w(jre_path()+"\bin\java.exe -cp "+SCI+"\modules\localization\tests\unit_tests CreateDir");
+else
+       unix_w(jre_path()+"/bin/java -classpath "+SCI+"/modules/localization/tests/unit_tests CreateDir");
+end
+tab_ref = [
+"世界您好",
+"азеазея",
+"ハロー・ワールド",
+"حريات وحقوق",
+"תוכנית"];
+for i = 1 : size(tab_ref,'*')
+  fz = TMPDIR + filesep() + "dir_" + tab_ref(i) + filesep() + tab_ref(i) + '.hst';
+  savehistory(fz);
+  resethistory();
+  if ls(fz) == [] then bugmes();quit;end
+  loadhistory(fz);
+end