<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtd-utils.git/tests/unittests, branch v2.1.1</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.1</id>
<link rel='self' href='https://git.infraroot.at/mtd-utils.git/atom?h=v2.1.1'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/'/>
<updated>2019-04-25T06:24:36+00:00</updated>
<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>
<entry>
<title>Run unit test programs through "make check"</title>
<updated>2017-12-05T12:20:54+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2017-12-05T12:20:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=6766178412934e29db12ff5e6663604c6e909c6e'/>
<id>urn:sha1:6766178412934e29db12ff5e6663604c6e909c6e</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix packaging of unit test files</title>
<updated>2016-12-13T17:47:25+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2016-12-12T10:31:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=3ae860f93f0aa6b573ed37099ac936aaa888c4ac'/>
<id>urn:sha1:3ae860f93f0aa6b573ed37099ac936aaa888c4ac</id>
<content type='text'>
Previously, the unit test sysfs mock files and headers were not
added to the distribution packag. Not packaging the header leads
to compilation of the unit tests failing. Not packaging the stub
files caueses the unit tests themselves to fail.

This patch explicitly adds the header and sysfs mock files to the
distribution target, allowing the unit tests to be used outside
the git tree.

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