mirror of
https://github.com/kdave/btrfs-progs
synced 2025-05-05 09:28:03 +00:00
Make use of GitLab-CI nested virutal environment to start QEMU instance inside containers and perform btrfs-progs build, execute unit test cases and save the logs. This allows to run the progs testsuite on a recent kernel, newer than what CI instances usually provide. As this is is emulated, the runtime is longer. Issue: #171 Signed-off-by: Lakshmipathi.G <lakshmipathi.ganapathi@collabora.com> Signed-off-by: David Sterba <dsterba@suse.com>
32 lines
720 B
Bash
Executable File
32 lines
720 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Setup BTRFS kernel options and build kernel
|
|
|
|
set -x
|
|
|
|
apt-get update
|
|
apt-get -y install build-essential libncurses-dev bison flex libssl-dev libelf-dev unzip wget bc
|
|
|
|
# Build kernel
|
|
wget https://github.com/kdave/btrfs-devel/archive/misc-next.zip
|
|
unzip -qq misc-next.zip
|
|
cd btrfs-devel-misc-next/ && make x86_64_defconfig && make kvmconfig
|
|
|
|
# BTRFS specific entires
|
|
cat <<EOF >> .config
|
|
CONFIG_BTRFS_FS=y
|
|
CONFIG_BTRFS_FS_POSIX_ACL=y
|
|
CONFIG_BTRFS_FS_CHECK_INTEGRITY=n
|
|
CONFIG_BTRFS_FS_RUN_SANITY_TESTS=n
|
|
CONFIG_BTRFS_DEBUG=y
|
|
CONFIG_BTRFS_ASSERT=y
|
|
CONFIG_BTRFS_FS_REF_VERIFY=y
|
|
CONFIG_RAID6_PQ_BENCHMARK=y
|
|
CONFIG_LIBCRC32C=y
|
|
EOF
|
|
|
|
make -j8
|
|
|
|
# Store file to shared dir
|
|
cp -v arch/x86/boot/bzImage /repo
|