init
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
This commit is contained in:
28
Telegram/ThirdParty/lz4/tests/test_install.sh
vendored
Executable file
28
Telegram/ThirdParty/lz4/tests/test_install.sh
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env sh
|
||||
set -e
|
||||
|
||||
|
||||
make="make -C $lz4_root"
|
||||
unamestr=$(uname)
|
||||
if [ "$unamestr" = 'Linux' ]; then
|
||||
make="make -C $lz4_root"
|
||||
elif [ "$unamestr" = 'FreeBSD' ] || [ "$unamestr" = 'OpenBSD' ]; then
|
||||
make="gmake -C $lz4_root"
|
||||
fi
|
||||
|
||||
for cmd in install uninstall; do
|
||||
for upper in DUMMY PREFIX EXEC_PREFIX LIBDIR INCLUDEDIR PKGCONFIGDIR BINDIR MANDIR MAN1DIR ; do
|
||||
lower=$(echo $upper | tr '[:upper:]' '[:lower:]')
|
||||
tmp_lower="$(pwd)/tmp-lower-$lower/"
|
||||
tmp_upper="$(pwd)/tmp-upper-$lower/"
|
||||
echo $make $cmd DESTDIR="$tmp_upper" $upper="test"
|
||||
$make $cmd DESTDIR="$tmp_upper" $upper="test" >/dev/null
|
||||
echo $make $cmd DESTDIR="$tmp_lower" $lower="test"
|
||||
$make $cmd DESTDIR="$tmp_lower" $lower="test" >/dev/null
|
||||
command diff -r "$tmp_lower" "$tmp_upper" && echo "SAME!" || false
|
||||
if [ "x$cmd" = "xuninstall" ]; then
|
||||
test -z "$(find "$tmp_lower" -type f)" && echo "EMPTY!" || false
|
||||
rm -rf "$tmp_upper" "$tmp_lower"
|
||||
fi
|
||||
done
|
||||
done
|
||||
Reference in New Issue
Block a user