-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_setup_tests.sh
More file actions
31 lines (22 loc) · 887 Bytes
/
Copy pathrun_setup_tests.sh
File metadata and controls
31 lines (22 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
CONTAINER_ENGINE=${CONTAINER_ENGINE:-'docker'}
BASE_DIR=$(dirname $0)
echo "Test Fedora Setup Script.."
${CONTAINER_ENGINE} compose -f "${BASE_DIR}/compose.yml" run --rm test-fedora "${BASE_DIR}/../installers/fedora_setup.sh"
# Check if script did not exit properly
if [ $? -ne 0 ]; then
exit $?
fi
echo "Test Debian Bookworm Setup Script.."
${CONTAINER_ENGINE} compose -f "${BASE_DIR}/compose.yml" run --rm test-debian-bookworm "${BASE_DIR}/../installers/debian_setup.sh"
# Check if script did not exit properly
if [ $? -ne 0 ]; then
exit $?
fi
echo "Test Debian Bookworm Docker Setup Script.."
${CONTAINER_ENGINE} compose -f "${BASE_DIR}/compose.yml" run --rm test-debian-bookworm "${BASE_DIR}/../installers/debian_docker_setup.sh"
# Check if script did not exit properly
if [ $? -ne 0 ]; then
exit $?
fi
echo "All setup scripts completed succussfully!"