mirror of
https://github.com/opencv/opencv.git
synced 2025-01-10 14:19:03 +08:00
25 lines
660 B
Bash
Executable File
25 lines
660 B
Bash
Executable File
#!/bin/bash
|
|
# This script verifies that all shell snippets in the
|
|
# Linux installation tutorial work (in Ubuntu 20 container)
|
|
set -e
|
|
set -x
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
|
|
|
containers=(ubuntu:20.04 debian:10)
|
|
scripts=$(cd "${SCRIPT_DIR}" && ls -1 linux_*install*.sh)
|
|
|
|
docker pull debian:10
|
|
|
|
for cnt in $containers ; do
|
|
docker pull ${cnt}
|
|
for f in $scripts ; do
|
|
echo "Checking ${f} @ ${cnt}..."
|
|
docker run -it \
|
|
-e DEBIAN_FRONTEND=noninteractive \
|
|
--volume "${SCRIPT_DIR}":/install:ro \
|
|
${cnt} \
|
|
/bin/bash -ex /install/${f} --check
|
|
done
|
|
done
|