osi-tools/runtests

29 lines
811 B
Bash
Executable File

#!/usr/bin/env bash
# 2018 Luke Shumaker
{
set -euE
COMMIT="${1:-systemd/master}"
workdir=$PWD/workdir
mkdir -p -- "$workdir"
gitget bare https://git.parabola.nu/~lukeshu/systemd.git "$workdir/systemd.git"
./osi-mk \
--package='base' \
--module=osi-mk.d/systemd-libretools.sh \
--module=osi-mk.d/systemd-osi-run.sh \
--directory="$workdir/systemd.git:/home/testuser/packages/srcdest/systemd" \
--directory="abs/systemd-232:/home/testuser/packages/abs/systemd-232" \
--directory="abs/systemd:/home/testuser/packages/abs/systemd" \
"${workdir}/build.raw"
./osi-run "${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
}