<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtd-utils.git/tests, branch v2.1.0</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.0</id>
<link rel='self' href='https://git.infraroot.at/mtd-utils.git/atom?h=v2.1.0'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/'/>
<updated>2018-10-02T12:00:28+00:00</updated>
<entry>
<title>mtd-utils: Instead of doing preprocessor magic, just output off_t as long long</title>
<updated>2018-10-02T12:00:28+00:00</updated>
<author>
<name>Thorsten Glaser</name>
<email>tg@mirbsd.org</email>
</author>
<published>2018-09-20T23:22:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=64667fe63ba9dd78adb9c4abf04bc3e4e25a0fd7'/>
<id>urn:sha1:64667fe63ba9dd78adb9c4abf04bc3e4e25a0fd7</id>
<content type='text'>
Fix warnings abot PRIdoff_t in libmtd.c, in mtd_read (and mtd_write):

In file included from ../git/lib/libmtd.c:40:0:
../git/lib/libmtd.c: In function 'mtd_read':
../git/include/common.h:110:18: warning: format '%ld' expects argument of
 type 'long int', but argument 5 has type 'off_t {aka long long int}'
 [-Wformat=]

../git/include/common.h:120:2: note: in expansion of macro 'errmsg'
  errmsg(fmt, ##__VA_ARGS__);                                         \
  ^~~~~~
../git/lib/libmtd.c:1082:10: note: in expansion of macro 'sys_errmsg'
   return sys_errmsg("cannot seek mtd%d to offset %"PRIdoff_t,
          ^~~~~~~~~~

/usr/lib/klibc/include/inttypes.h:28:17: note: format string is defined here
 #define PRId32 "d"

Signed-off-by: Thorsten Glaser &lt;tg@mirbsd.org&gt;
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>ubi-tests: io_paral: Fix error handling of update_volume()</title>
<updated>2018-09-08T16:48:46+00:00</updated>
<author>
<name>Martin Lund</name>
<email>malu@gomspace.com</email>
</author>
<published>2018-09-05T13:47:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=04d76bcda9e1a948070927e6c5357d9760c32367'/>
<id>urn:sha1:04d76bcda9e1a948070927e6c5357d9760c32367</id>
<content type='text'>
The io_paral test returns success even in case it throws e.g. the
following error message:

[io_paral] update_volume():125: written and read data are different

This patch fixes so that the io_paral application returns a non-zero
error code when an error is detected.

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: tests: check erase block count in page test</title>
<updated>2018-03-05T11:22:39+00:00</updated>
<author>
<name>Stefan Agner</name>
<email>stefan@agner.ch</email>
</author>
<published>2018-03-03T22:39:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=414b71e9f9755e6d49f58eb303abc484115e9048'/>
<id>urn:sha1:414b71e9f9755e6d49f58eb303abc484115e9048</id>
<content type='text'>
When there is only a single erase block, the cross erase test
does not report sensible errors. Warn in case there is only
a single erase block instead of executing the test.

Signed-off-by: Stefan Agner &lt;stefan@agner.ch&gt;
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>mtd: tests: Fix check on ebcnt in nandpagetest</title>
<updated>2017-11-22T11:44:52+00:00</updated>
<author>
<name>Paul HENRYS</name>
<email>paul.henrys@embconsulting.eu</email>
</author>
<published>2017-11-22T08:11:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=098e91af4a08a81b3cdfd4aac422bb768261aac5'/>
<id>urn:sha1:098e91af4a08a81b3cdfd4aac422bb768261aac5</id>
<content type='text'>
If the number of erase blocks to use is not specified, ebcnt originally
set to -1 leads the program to exit with:
  "Cannot run with less than two blocks."

If the number of erase blocks to use is not specified and thus ebcnt is
equal to -1, the expected behaviour is to perform the test on all the
erase blocks of the mtd partition.

This fixes the change introduced in
4458ad6481f60d9884925d5bc62a7954880d181b.

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