<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/u-boot/test/py/tests/test_fs, branch master</title>
<subtitle>Broadcom-s U-Boot</subtitle>
<id>https://git.openwrt.org/project/bcm63xx/u-boot/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/bcm63xx/u-boot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/'/>
<updated>2019-04-10T12:15:56Z</updated>
<entry>
<title>test.py: Disable fsck for FAT tests for now</title>
<updated>2019-04-10T12:15:56Z</updated>
<author>
<name>Tom Rini</name>
</author>
<published>2019-04-09T20:08:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=0a8406602ae5f234f3f670ab59628673cc52ff4d'/>
<id>urn:sha1:0a8406602ae5f234f3f670ab59628673cc52ff4d</id>
<content type='text'>
Currently enabling fsck on FAT16/FAT32 exposes that we have problems
with:
TestFsBasic.test_fs13[fat16]
TestFsBasic.test_fs11[fat32]
TestFsBasic.test_fs12[fat32]
TestFsBasic.test_fs13[fat32]
TestFsExt.test_fs_ext1[fat32]
TestFsExt.test_fs_ext2[fat32]
TestFsExt.test_fs_ext3[fat32]
TestFsExt.test_fs_ext4[fat32]
TestFsExt.test_fs_ext5[fat32]
TestFsExt.test_fs_ext6[fat32]
TestFsExt.test_fs_ext7[fat32]
TestFsExt.test_fs_ext8[fat32]
TestFsExt.test_fs_ext9[fat32]
TestMkdir.test_mkdir6[fat16]
TestMkdir.test_mkdir1[fat32]
TestMkdir.test_mkdir2[fat32]
TestMkdir.test_mkdir3[fat32]
TestMkdir.test_mkdir4[fat32]
TestMkdir.test_mkdir5[fat32]
TestMkdir.test_mkdir6[fat32]
TestUnlink.test_unlink1[fat16]
TestUnlink.test_unlink2[fat16]
TestUnlink.test_unlink3[fat16]
TestUnlink.test_unlink4[fat16]
TestUnlink.test_unlink5[fat16]
TestUnlink.test_unlink6[fat16]
TestUnlink.test_unlink7[fat16]
TestUnlink.test_unlink1[fat32]
TestUnlink.test_unlink2[fat32]
TestUnlink.test_unlink3[fat32]
TestUnlink.test_unlink4[fat32]
TestUnlink.test_unlink5[fat32]
TestUnlink.test_unlink6[fat32]
TestUnlink.test_unlink7[fat32]

This is because we don't update the "information sector" on FAT32.
While in the future we should resolve this problem and include that
feature, we should enable fsck for ext4 to ensure that things remain in
good shape there.

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>test: fs: Added tests for symlinks</title>
<updated>2019-04-10T00:04:03Z</updated>
<author>
<name>Jean-Jacques Hiblot</name>
</author>
<published>2019-02-13T11:15:27Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=ef79284e7a6ba141b56478f8ed1456ef5c27ae47'/>
<id>urn:sha1:ef79284e7a6ba141b56478f8ed1456ef5c27ae47</id>
<content type='text'>
Test cases are:
1) basic link creation, verify it can be followed
2) chained links, verify it can be followed
3) replace exiting file a with a link, and a link with a link. verify it
   can be followed
4) create a broken link, verify it can't be followed

Signed-off-by: Jean-Jacques Hiblot &lt;jjhiblot@ti.com&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>test: fs: Add filesystem integrity checks</title>
<updated>2019-04-09T19:34:15Z</updated>
<author>
<name>Jean-Jacques Hiblot</name>
</author>
<published>2019-02-13T11:15:23Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=290100583dc70185e76ddaa00c1a50abd162a5ad'/>
<id>urn:sha1:290100583dc70185e76ddaa00c1a50abd162a5ad</id>
<content type='text'>
We need to make sure that file writes,file creation, etc. are properly
performed and do not corrupt the filesystem.
To help with this, introduce the assert_fs_integrity() function that
executes the appropriate fsck tool. It should be called at the end of any
test that modify the content/organization of the filesystem.
Currently only supports FATs and EXT4.

Signed-off-by: Jean-Jacques Hiblot &lt;jjhiblot@ti.com&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>test: fs: disable the metadata checksums on ext4 filesystems</title>
<updated>2019-04-09T19:34:15Z</updated>
<author>
<name>Jean-Jacques Hiblot</name>
</author>
<published>2019-02-13T11:15:22Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=5cfc73e6e29f37a3a8daf5fd28bc4d5d015f778c'/>
<id>urn:sha1:5cfc73e6e29f37a3a8daf5fd28bc4d5d015f778c</id>
<content type='text'>
If the metadata checksums are enabled, all write operations will fail.

Signed-off-by: Jean-Jacques Hiblot &lt;jjhiblot@ti.com&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>test: Use single quote consistently</title>
<updated>2019-01-15T20:28:41Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2018-12-27T15:11:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=871bf7d9baba0ebb0485c01657399b2a339daa20'/>
<id>urn:sha1:871bf7d9baba0ebb0485c01657399b2a339daa20</id>
<content type='text'>
Some tests have ended up using double quotes where single quotes could be
used. Adjust this for consistency with the rest of U-Boot's Python code.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Heinrich Schuchardt &lt;xypron.glpk@gmx.de&gt;
</content>
</entry>
<entry>
<title>test: Add a 'make qcheck' target for quicker testing</title>
<updated>2018-11-29T16:30:05Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2018-11-18T15:14:29Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=499fde5c23921add3cf95fecfe0b03d717d5a33b'/>
<id>urn:sha1:499fde5c23921add3cf95fecfe0b03d717d5a33b</id>
<content type='text'>
At present tests are quite slow to run, over a minute on my machine. This
presents a considerable barrier to bisecting for failures.

The slowest tests are the filesystem ones and the buildman --fetch-arch
test. Add a new 'qcheck' target that skips these tests. This reduces test
time down to about 40 second, still too long, but bearable.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>test/py: test_fs: add docstring comments to helper functions</title>
<updated>2018-10-06T13:04:18Z</updated>
<author>
<name>Akashi Takahiro</name>
</author>
<published>2018-09-27T07:07:23Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=c906f372b2ec55222b841b2affb50fd72d985086'/>
<id>urn:sha1:c906f372b2ec55222b841b2affb50fd72d985086</id>
<content type='text'>
After Siomon's comment, add a descriptive comment (docstring) to each of
helper functions in conftest.py. No functionality changed.

Signed-off-by: Akashi Takahiro &lt;takahiro.akashi@linaro.org&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>test/py: test_fs: remove fs_type argument from umount_fs()</title>
<updated>2018-10-06T13:04:18Z</updated>
<author>
<name>Akashi Takahiro</name>
</author>
<published>2018-09-27T07:07:22Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=e4040df555d92290262946100f963fa54caddcae'/>
<id>urn:sha1:e4040df555d92290262946100f963fa54caddcae</id>
<content type='text'>
Since there is no use of fs_type in umount_fs(), just remove it.

Signed-off-by: Akashi Takahiro &lt;takahiro.akashi@linaro.org&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>test/py: fs: add fstest/unlink test</title>
<updated>2018-09-23T19:55:30Z</updated>
<author>
<name>Akashi, Takahiro</name>
</author>
<published>2018-09-11T07:06:03Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=cce289a928583a64db6ec8f813cc7884ae62c213'/>
<id>urn:sha1:cce289a928583a64db6ec8f813cc7884ae62c213</id>
<content type='text'>
In this commit, test cases for unlink interfaces are added as part of
"test_fs" test suite.

Signed-off-by: AKASHI Takahiro &lt;takahiro.akashi@linaro.org&gt;
Signed-off-by: Alexander Graf &lt;agraf@suse.de&gt;
</content>
</entry>
<entry>
<title>test/py: fs: add fstest/mkdir test</title>
<updated>2018-09-23T19:55:30Z</updated>
<author>
<name>AKASHI Takahiro</name>
</author>
<published>2018-09-11T06:59:21Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=50ca19cca9dff527eacdf487b8f172f279f22327'/>
<id>urn:sha1:50ca19cca9dff527eacdf487b8f172f279f22327</id>
<content type='text'>
In this commit, test cases for mkdir interfaces are added as part of
"test_fs" test suite.

Signed-off-by: AKASHI Takahiro &lt;takahiro.akashi@linaro.org&gt;
Signed-off-by: Alexander Graf &lt;agraf@suse.de&gt;
</content>
</entry>
</feed>
