<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtd-utils.git/tests/unittests, branch v2.1.6</title>
<subtitle>A mirror of http://git.infradead.org/mtd-utils.git</subtitle>
<id>https://git.infraroot.at/mtd-utils.git/atom?h=v2.1.6</id>
<link rel='self' href='https://git.infraroot.at/mtd-utils.git/atom?h=v2.1.6'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/'/>
<updated>2021-01-20T10:53:58+00:00</updated>
<entry>
<title>Cleanup: Automake: remove single use variables</title>
<updated>2021-01-20T10:53:58+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2020-10-19T09:40:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=a888044525d9f03290cc1afe62dcfa3bec4bc0b9'/>
<id>urn:sha1:a888044525d9f03290cc1afe62dcfa3bec4bc0b9</id>
<content type='text'>
Throughout the Automake files, there is a consistent pattern somewhat
like this:

    FOO_BINS = ....

    sbin_PROGRAMS += $(FOO_BINS)

This commit all such patterns whenever the variable is not used anywhere
else and appends to the target directly.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Remove headers from EXTRA_DIST</title>
<updated>2021-01-20T10:53:51+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2020-10-19T09:12:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=c41808cdc3a2c3c8ca5f73707745f48aae49e17e'/>
<id>urn:sha1:c41808cdc3a2c3c8ca5f73707745f48aae49e17e</id>
<content type='text'>
This commit removes the C header files from the EXTRA_DIST variables
and instead assigns them to the SOURCE variable of the respective
components they belong to.

This takes care of having them distributed in the release tar ball and
helps with dependency tracking a little.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>unittests: Define the use of _GNU_SOURCE</title>
<updated>2019-04-25T06:24:36+00:00</updated>
<author>
<name>Olliver Schinagl</name>
<email>oliver@schinagl.nl</email>
</author>
<published>2019-04-15T08:20:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=2524ec6609462419d2bbb1ba0cf00e63b62d05c0'/>
<id>urn:sha1:2524ec6609462419d2bbb1ba0cf00e63b62d05c0</id>
<content type='text'>
The unittest suite actually makes use of some _GNU extensions during the
build (loff_t for example). So lets enable this in the makefile.

Signed-off-by: Olliver Schinagl &lt;oliver@schinagl.nl&gt;
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>unittests/libmtd_test: Include fcntl header</title>
<updated>2019-04-25T06:24:34+00:00</updated>
<author>
<name>Olliver Schinagl</name>
<email>oliver@schinagl.nl</email>
</author>
<published>2019-04-15T08:20:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=652958acad7d14c498d0bd7e93612bb3935ba070'/>
<id>urn:sha1:652958acad7d14c498d0bd7e93612bb3935ba070</id>
<content type='text'>
The test library for the mtd unit tests include various type's and
macro's that officially live in fcntl. Each file and header should
always properly include what they use, so lets add the fcntl headers.

Signed-off-by: Olliver Schinagl &lt;oliver@schinagl.nl&gt;
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>unittests/test_lib: Include proper header for _IOC_SIZE</title>
<updated>2019-04-25T06:24:31+00:00</updated>
<author>
<name>Olliver Schinagl</name>
<email>oliver@schinagl.nl</email>
</author>
<published>2019-04-15T08:20:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=55bb679ce5aadd6ce17f9df76d5367f41846366f'/>
<id>urn:sha1:55bb679ce5aadd6ce17f9df76d5367f41846366f</id>
<content type='text'>
The macro _IOC_SIZE is not part of sys/ioctl.h but lives in asm/ioctl.h
so we should include the proper header. If we do not, some systems
complain during linking that they cannot find the symbol _IOC_SIZE()
which was not expanded by the pre-compiler.

Signed-off-by: Olliver Schinagl &lt;oliver@schinagl.nl&gt;
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix unit-test header and file paths for out of tree builds</title>
<updated>2018-04-16T15:50:37+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2018-04-16T15:41:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=4b315cd9a63e78737d3d856b3bb7ca340b8dec41'/>
<id>urn:sha1:4b315cd9a63e78737d3d856b3bb7ca340b8dec41</id>
<content type='text'>
If we build mtd-utils outside the source path, we cannot use relative
paths to refere to headers in the source tree. We have to specify
absoulte paths using the top_srcdir variable.

This was done right for the utility binaries, but overlooked for the
unit test porgrams.

This patch fixes the header paths and SYSROOT variable for the unit
tests, so they build and run propperly outside the source tree.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix unit test mockup for oobavail sysfs file</title>
<updated>2018-04-16T15:37:00+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2018-04-16T15:37:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=9ea54375c3ed1ba1c4ec8f6ddf80615fcb7fb073'/>
<id>urn:sha1:9ea54375c3ed1ba1c4ec8f6ddf80615fcb7fb073</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>mtd: unittests: Stop testing stat() calls</title>
<updated>2018-02-14T14:52:27+00:00</updated>
<author>
<name>Balint Reczey</name>
<email>balint@balintreczey.hu</email>
</author>
<published>2018-02-05T22:31:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=9c6173559f95e939e66efb2ec3193d6f3618cf69'/>
<id>urn:sha1:9c6173559f95e939e66efb2ec3193d6f3618cf69</id>
<content type='text'>
Sometimes __xstat is called instead that makes tests fragile.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>mtd: unittests: Decode arg size from ioctl request</title>
<updated>2018-02-14T14:26:00+00:00</updated>
<author>
<name>Balint Reczey</name>
<email>balint@balintreczey.hu</email>
</author>
<published>2018-02-06T22:58:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=daef4f155f4b677907f210d93839013204168d02'/>
<id>urn:sha1:daef4f155f4b677907f210d93839013204168d02</id>
<content type='text'>
Signed-off-by: Balint Reczey &lt;balint.reczey@canonical.com&gt;
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>mtd: unittests: Use proper unsigned long type for ioctl requests</title>
<updated>2018-02-14T14:25:51+00:00</updated>
<author>
<name>Balint Reczey</name>
<email>balint@balintreczey.hu</email>
</author>
<published>2018-02-06T20:49:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=fd0b70bbf1c1f3e939438c884360eb6f31f73252'/>
<id>urn:sha1:fd0b70bbf1c1f3e939438c884360eb6f31f73252</id>
<content type='text'>
This fixes tests on s390x

Signed-off-by: Balint Reczey &lt;balint.reczey@canonical.com&gt;
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
</feed>
