1function fail = testMissingOutput(outdir, in_installer, fbcEnabled)
2
3%  Filename    :   TestOutput.m
4%  Description :
5%  $Source v $
6%
7%<!---------------------------------------------------------------------------
8% This file is part of SBMLToolbox.  Please visit http://sbml.org for more
9% information about SBML, and the latest version of SBMLToolbox.
10%
11% Copyright (C) 2013-2018 jointly by the following organizations:
12%     1. California Institute of Technology, Pasadena, CA, USA
13%     2. EMBL European Bioinformatics Institute (EMBL-EBI), Hinxton, UK
14%     3. University of Heidelberg, Heidelberg, Germany
15%
16% Copyright (C) 2009-2013 jointly by the following organizations:
17%     1. California Institute of Technology, Pasadena, CA, USA
18%     2. EMBL European Bioinformatics Institute (EMBL-EBI), Hinxton, UK
19%
20% Copyright (C) 2006-2008 by the California Institute of Technology,
21%     Pasadena, CA, USA
22%
23% Copyright (C) 2002-2005 jointly by the following organizations:
24%     1. California Institute of Technology, Pasadena, CA, USA
25%     2. Japan Science and Technology Agency, Japan
26%
27% This library is free software; you can redistribute it and/or modify it
28% under the terms of the GNU Lesser General Public License as published by
29% the Free Software Foundation.  A copy of the license agreement is provided
30% in the file named "LICENSE.txt" included with this software distribution.
31% and also available online as http://sbml.org/software/sbmltoolbox/license.html
32%----------------------------------------------------------------------- -->
33
34if fbcEnabled == 0
35    fail = 0;
36    return;
37end;
38
39if (~isdir(outdir))
40    mkdir (outdir);
41end;
42
43disp('Testing output with missing fields');
44
45fail = 0;
46test = 0;
47
48load (['test-data', filesep, 'missing_out.mat']);
49
50filename = 'missing_out.xml';
51if (in_installer == 1)
52    OutputSBML(m, [outdir, filesep, filename], in_installer);
53else
54    OutputSBML(m, [outdir, filesep, filename]);
55end;
56test = test + 1;
57if (compareFiles(['test-data', filesep, filename], [outdir, filesep, filename]))
58    disp(sprintf('Output of %s failed', filename));
59    fail = fail + 1;
60end;
61
62