You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.4 KiB
48 lines
1.4 KiB
#!/usr/bin/env bash |
|
|
|
./configure --bindir=/usr/bin \ |
|
--libdir=/usr/lib \ |
|
--runstatedir=/run \ |
|
--sbindir=/usr/sbin \ |
|
--disable-chfn-chsh \ |
|
--disable-login \ |
|
--disable-nologin \ |
|
--disable-su \ |
|
--disable-setpriv \ |
|
--disable-runuser \ |
|
--disable-pylibmount \ |
|
--disable-liblastlog2 \ |
|
--disable-static \ |
|
--without-python \ |
|
ADJTIME_PATH=/var/lib/hwclock/adjtime \ |
|
--docdir=/usr/share/doc/util-linux-2.41.3 |
|
|
|
make |
|
|
|
# bash tests/run.sh --srcdir=$PWD --builddir=$PWD |
|
|
|
touch /etc/fstab |
|
chown -R tester . |
|
|
|
# su tester -c "make -k check" |
|
[ -e /tmp/util-linux_make_check.log ] && rm /tmp/util-linux_make_check.log |
|
if ! su tester -c "make -k check" | tee /tmp/util-linux_make_check.log |
|
then |
|
grep "^ FAILED" /tmp/util-linux_make_check.log |sed -e "s/[()]//g" |cut --delimiter=' ' --fields=3 | while IFS= read -r failure |
|
do |
|
echo "--- Check ${failure}" |
|
case ${failure} in |
|
# script/options-size |
|
script/options-size) |
|
echo "test script/options-size is known to fail" |
|
continue |
|
;; |
|
*) |
|
echo "Failed on ${failure}" |
|
exit 1 |
|
;; |
|
esac |
|
done |
|
fi |
|
|
|
make install
|
|
|