<feed xmlns='http://www.w3.org/2005/Atom'>
<title>subsurface.git/tests, branch v4.9.10</title>
<subtitle>forked from https://github.com/subsurface/subsurface</subtitle>
<id>https://git.tsegers.com/subsurface.git/atom?h=v4.9.10</id>
<link rel='self' href='https://git.tsegers.com/subsurface.git/atom?h=v4.9.10'/>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/'/>
<updated>2020-11-20T01:18:33Z</updated>
<entry>
<title>build-system: fix tests in mobile builds</title>
<updated>2020-11-20T01:18:33Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-11-19T03:54:30Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=695950b15a3ab272032f7bd4829ba57044735a70'/>
<id>urn:sha1:695950b15a3ab272032f7bd4829ba57044735a70</id>
<content type='text'>
We can no longer build TestPictures in mobile builds.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>tests: don't fail if TestGitStorage can reach the server</title>
<updated>2020-10-27T02:27:03Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-10-26T01:22:51Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=2a876be84400958184d76473773544b979c76953'/>
<id>urn:sha1:2a876be84400958184d76473773544b979c76953</id>
<content type='text'>
Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>cleanup: split out divecomputer functions from dive.c</title>
<updated>2020-10-25T20:59:52Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-10-25T12:28:55Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=0e196310f9cda2ccca27e9cf96186639b5658249'/>
<id>urn:sha1:0e196310f9cda2ccca27e9cf96186639b5658249</id>
<content type='text'>
Since dive.c is so huge, split out divecomputer-related functions
into divecomputer.[c|h], sample.[c|h] and extradata.[c|h].

This does not give huge compile time improvements, since
struct dive contains a struct divecomputer and therefore
dive.h has to include divecomputer.h. However, it make things
distinctly more clear.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: break out event-related code into event.[c|h]</title>
<updated>2020-10-25T20:59:52Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-10-25T08:14:16Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=8212acc9925b28ecd546b01047c6a8fc574326ef'/>
<id>urn:sha1:8212acc9925b28ecd546b01047c6a8fc574326ef</id>
<content type='text'>
In an effort to reduce the size of dive.h and dive.c, break out
the event related functions. Moreover event-names were handled
by the profile-code, collect that also in the new source files.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>cleanup: remove unsaved_changes() test in testrenumber.cpp</title>
<updated>2020-10-25T20:59:04Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-10-21T21:23:13Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=d403532a864f5cfc9f2c5e8a62edfcdaacdd105a'/>
<id>urn:sha1:d403532a864f5cfc9f2c5e8a62edfcdaacdd105a</id>
<content type='text'>
Unsaved changes are now kept track by the undo-system. No need
to test for this function when directly modifying the core
data structures.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>tests: move TestGitStorage to its own test config</title>
<updated>2020-10-24T22:22:37Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>dirk@hohndel.org</email>
</author>
<published>2020-10-24T18:36:45Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=a58eee9aa39b2d7829b3467e79f1120bdf7f7e70'/>
<id>urn:sha1:a58eee9aa39b2d7829b3467e79f1120bdf7f7e70</id>
<content type='text'>
This way 'make check' doesn't execute TestGitStorage anymore.

Signed-off-by: Dirk Hohndel &lt;dirk@hohndel.org&gt;
</content>
</entry>
<entry>
<title>devices: add devices in Command::importTable()</title>
<updated>2020-10-24T16:51:37Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-10-17T14:07:39Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=39a4090c0a6e1d8fe12516be06ee7b31dd4bc96d'/>
<id>urn:sha1:39a4090c0a6e1d8fe12516be06ee7b31dd4bc96d</id>
<content type='text'>
Add a device_table parameters to Command::importTable() and
add_imported_dives(). The content of this table will be added
to the global device list (respectively removed on undo).

This is currently a no-op, as the parser doesn't yet fill
out the device table, but adds devices directly to the global
device table.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>parser: add device_table to parser state</title>
<updated>2020-10-24T16:51:37Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-10-17T10:32:22Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=a2614665942959b95eef8453730cd3ac66ac42a3'/>
<id>urn:sha1:a2614665942959b95eef8453730cd3ac66ac42a3</id>
<content type='text'>
If we want to avoid the parsers to directly modify global data,
we have to provide a device_table to parse into. This adds such
a state and the corresponding function parameters. However,
for now this is unused.

Adding new parameters is very painful and this commit shows that
we urgently need a "struct divelog" collecting all those tables!

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>parser: replace params[] code by new xml_params struct</title>
<updated>2020-10-24T01:17:02Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-10-17T18:15:23Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=d508a16aca91b521719d929cd59db381c44cd7ad'/>
<id>urn:sha1:d508a16aca91b521719d929cd59db381c44cd7ad</id>
<content type='text'>
This fixes a load of memory holes, and makes the code
(hopefully) more readable.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
<entry>
<title>filter: remove filter_preset_table_t</title>
<updated>2020-10-17T16:04:20Z</updated>
<author>
<name>Berthold Stoeger</name>
<email>bstoeger@mail.tuwien.ac.at</email>
</author>
<published>2020-10-17T07:58:23Z</published>
<link rel='alternate' type='text/html' href='https://git.tsegers.com/subsurface.git/commit/?id=a7bbb6c1cc5c5b9ed3dc48cdb4da910214d51e96'/>
<id>urn:sha1:a7bbb6c1cc5c5b9ed3dc48cdb4da910214d51e96</id>
<content type='text'>
We used a typedef "filter_preset_table_t" for the filter preset table,
because it is a "std::vector&lt;filter_preset&gt;". However, that is in
contrast to all the other global tables (dives, trips, sites) that we
have.

Therefore, turn this into a standard struct, which simply inherits
from "std::vector&lt;filter_preset&gt;". Note that while inheriting from
std::vector&lt;&gt; is generally not recommended, it is not a problem
here, because we don't modify it in any shape or form.

Signed-off-by: Berthold Stoeger &lt;bstoeger@mail.tuwien.ac.at&gt;
</content>
</entry>
</feed>
