osi-tools/runtests

29 lines
811 B
Plaintext
Raw Normal View History

2018-08-06 00:09:42 +00:00
#!/usr/bin/env bash
2018-08-06 01:49:45 +00:00
# 2018 Luke Shumaker
2018-08-06 00:09:42 +00:00
{
set -euE
COMMIT="${1:-systemd/master}"
workdir=$PWD/workdir
mkdir -p -- "$workdir"
gitget bare https://git.parabola.nu/~lukeshu/systemd.git "$workdir/systemd.git"
2018-08-06 01:56:44 +00:00
./osi-mk \
2018-08-06 01:49:45 +00:00
--package='base' \
2018-08-06 01:56:44 +00:00
--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" \
2018-08-06 00:09:42 +00:00
"${workdir}/build.raw"
2018-08-06 01:56:44 +00:00
./osi-run "${workdir}/build.raw" <<-EOF
2018-08-06 00:09:42 +00:00
#!/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
}