testsuite: drop mkosi

It's not being actively used, so drop it.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
This commit is contained in:
Lucas De Marchi 2024-02-02 12:36:28 -06:00
parent 9b8b4af54c
commit 1043f6f023
7 changed files with 0 additions and 126 deletions

View File

@ -416,13 +416,3 @@ tar: kmod-$(VERSION).tar.xz kmod-$(VERSION).tar.sign
tar-sync: kmod-$(VERSION).tar.xz kmod-$(VERSION).tar.sign
kup put kmod-$(VERSION).tar.xz kmod-$(VERSION).tar.sign /pub/linux/utils/kernel/kmod/
# ------------------------------------------------------------------------------
# mkosi
# ------------------------------------------------------------------------------
DISTRO ?= "arch"
mkosi:
-$(MKDIR_P) $(top_srcdir)/testsuite/mkosi/mkosi.cache
$(MKOSI) -C $(top_srcdir)/testsuite/mkosi --build-sources ../../ --default mkosi.${DISTRO} -fi

View File

@ -33,7 +33,6 @@ AC_PROG_MKDIR_P
AC_PROG_LN_S
PKG_PROG_PKG_CONFIG
AC_PATH_PROG([XSLTPROC], [xsltproc])
AC_PATH_PROG([MKOSI], [mkosi])
AC_PROG_CC_C99

View File

@ -1,3 +0,0 @@
/*-image.raw*
/.mkosi-*
/mkosi.cache

View File

@ -1,26 +0,0 @@
[Distribution]
Distribution=arch
Release=(rolling)
[Output]
Output = arch-image.raw
[Packages]
Packages = valgrind
BuildPackages =
automake
gcc
git
make
pkg-config
python2
python2-future
autoconf
gtk-doc
docbook-xml
docbook-xsl
linux-headers
openssl
[Partitions]
RootSize = 3G

View File

@ -1,38 +0,0 @@
#!/bin/bash -ex
function find_kdir() {
local kdirs=(/usr/lib/modules/*/build/Makefile /usr/src/kernels/*/Makefile)
local kdir=""
for f in "${kdirs[@]}"; do
if [ -f "$f" ]; then
kdir=$f
break
fi
done
if [ -z "$kdir" ]; then
printf '==> Unable to find kernel headers to build modules for tests\n' >&2
exit 1
fi
kdir=${kdir%/Makefile}
echo $kdir
}
if [ -f configure ]; then
make distclean
fi
rm -rf build
mkdir build
cd build
kdir=$(find_kdir)
IFS=/ read _ _ _ kver _ <<<"$kdir"
../autogen.sh c
make -j
make check KDIR="$kdir" KVER="$kver"
make install

View File

@ -1,20 +0,0 @@
[Distribution]
Distribution=clear
Release=latest
[Output]
Output = clear-image.raw
[Packages]
Packages=
os-core-update
BuildPackages=
os-core-dev
linux-dev
[Partitions]
RootSize = 5G
[Host]
# This is where swupd-extract is usually installed.
ExtraSearchPaths=$SUDO_HOME/go/bin

View File

@ -1,28 +0,0 @@
[Distribution]
Distribution=fedora
Release=29
[Output]
Output = fedora-image.raw
[Packages]
Packages = valgrind
BuildPackages =
autoconf
automake
gcc
git
gtk-doc
kernel-devel
libtool
libxslt
make
pkgconf-pkg-config
xml-common
libzstd-devel
xz-devel
zlib-devel
openssl-devel
[Partitions]
RootSize = 2G