qa/workunits/fs/misc: Add a workunit for tar kernel Documents

the test fails if some files were changed while being archived

Signed-off-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
Yan, Zheng 2016-01-27 23:35:29 +08:00
parent bde03c7cf4
commit 8a6f1f7fba

View File

@ -0,0 +1,26 @@
#!/bin/bash
# check if there is file changed while being archived
set -e
KERNEL=linux-4.0.5
wget -q http://download.ceph.com/qa/$KERNEL.tar.xz
mkdir untar_tar
cd untar_tar
tar Jxvf ../$KERNEL.tar.xz $KERNEL/Documentation/
tar cf doc.tar $KERNEL
tar xf doc.tar
sync
tar c $KERNEL >/dev/null
rm -rf $KERNEL
tar xf doc.tar
sync
tar c $KERNEL >/dev/null
echo Ok