Xcos tests: fix computational_functions, cumsum, error_reporting_nw, model2blk, bug_1... 82/16682/2
authorPaul Bignier <paul.bignier@scilab-enterprises.com>
Wed, 3 Jun 2015 07:51:10 +0000 (09:51 +0200)
committerAntoine ELIAS <antoine.elias@scilab-enterprises.com>
Wed, 17 Jun 2015 09:46:05 +0000 (11:46 +0200)
commit7be6aeb532f42f961a399d15dc8ad3374ed5f705
treeaa6f981b6582fbe3d1c0fc43cb3720d64d6fe866
parentb478fa42eca48cd8428d4247972f10bee4c5fc45
Xcos tests: fix computational_functions, cumsum, error_reporting_nw, model2blk, bug_12998 and bug_8235

Fixed tests:
 * computational_functions: "two dots spacing" doesn't work in YaSp
 * cumsum: had trouble when 'opar' contained complex values
 * error_reporting_nw: fixed deliberate wrong 'ipar' in an inner input/output Superblock block yielding an error
by arbitrarily replacing the wrong value with the maximum possible value (like in Scilab 5)
 * model2blk: squaring with Scilab 5's createblklist
 * bug_12998: inserting an empty diagram in 'block.model.rpar' failed
 * bug_8235: modified script2var logic to not use the stack at all anymore, because it changed a lot between Scilab 5 and 6

In progress / missing in YaSp:
 * bug_9478: in ModelAdapter, allowed 'dep_ut' to be a row OR column vector, but test doesn't pass yet because of export_to_hdf5
 * DEBUG_SCICOS: made a big leap forward, but cannot test yet because YaSp doesn't allow saving functions in files yet!
 * scicos_diagram: need fieldnames(scs_m) to work.
So far I am able to return ["props" "objs "version" "contrib"] but not with "diagram" at the beginning.
How should it be detected by sci_fieldnames.cpp? By hardcoding it? By including "DiagramAdapter.hxx" to call get getSharedTypeStr()?

 * Regenerated bug_13396, fromws_c, fromws_tows_c and post_xcos_simulate ref files

Change-Id: I3f830e679878f09024ab04982cab8ac7976d0646
12 files changed:
scilab/modules/scicos/macros/scicos_scicos/script2var.sci
scilab/modules/scicos/sci_gateway/cpp/sci_scicosim.cpp
scilab/modules/scicos/src/c/scicos.c
scilab/modules/scicos/src/cpp/createblklist.cpp
scilab/modules/scicos/src/cpp/view_scilab/ModelAdapter.cpp
scilab/modules/types/sci_gateway/cpp/sci_fieldnames.cpp
scilab/modules/xcos/tests/nonreg_tests/bug_13396.unix.dia.ref
scilab/modules/xcos/tests/unit_tests/computational_functions.dia.ref
scilab/modules/xcos/tests/unit_tests/computational_functions.tst
scilab/modules/xcos/tests/unit_tests/fromws_c.dia.ref
scilab/modules/xcos/tests/unit_tests/fromws_tows_c.dia.ref
scilab/modules/xcos/tests/unit_tests/post_xcos_simulate.dia.ref