From b1bf832025c2156552b834acb37dce3aae34d4ca Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 5 Aug 2018 20:09:42 -0400 Subject: wip --- runtests | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 runtests (limited to 'runtests') diff --git a/runtests b/runtests new file mode 100755 index 0000000..87119f9 --- /dev/null +++ b/runtests @@ -0,0 +1,28 @@ +#!/usr/bin/env bash + +{ + set -euE + COMMIT="${1:-systemd/master}" + workdir=$PWD/workdir + + mkdir -p -- "$workdir" + gitget bare https://git.parabola.nu/~lukeshu/systemd.git "$workdir/systemd.git" + + ./mkosi \ + --include-pkg='base' \ + --module=mkosi.d/systemd-libretools.sh \ + --module=mkosi.d/systemd-runscript.sh \ + --include-dir="$workdir/systemd.git:/home/runscript/packages/srcdest/systemd" \ + --include-dir="abs/systemd-232:/home/runscript/packages/abs/systemd-232" \ + --include-dir="abs/systemd:/home/runscript/packages/abs/systemd" \ + "${workdir}/build.raw" + ./runscript "${workdir}/build.raw" <<-EOF + #!/usr/bin/env bash + set -ex + cd ~/packages/abs/systemd-232 + sudo libremakepkg + cd ~/packages/abs/systemd + sed 's/@COMMIT@/${COMMIT}/' < PKGBUILD.in > PKGBUILD + sudo libremakepkg + EOF +} -- cgit v1.2.2