-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·38 lines (32 loc) · 981 Bytes
/
test.sh
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
32
33
34
35
36
37
38
#!/bin/bash
source ./build_files/scripts/config.sh
while [[ $# -gt 0 ]]; do
case $1 in
--all)
TEST_ALL=true
shift
;;
--nvidia)
TEST_NVIDIA=true
shift
;;
--packages)
TEST_PACKAGES=true
shift
;;
--pipewire)
TEST_PIPEWIRE=true
shift
;;
esac
done
podman pull ${IMAGE}
if [ "${TEST_NVIDIA}" == true ] || [ "${TEST_ALL}" == true ]; then
podman run -it --rm -e NVIDIA_VERSION="${NVIDIA_VERSION}" -e USE_LTS_KERNEL="${USE_LTS_KERNEL}" -e BUILDROOT="/build" -v ./build_files/:/build ${BASE_IMAGE}:${FEDORA_VERSION} /build/scripts/build-nvidia-modules.sh
fi
if [ "${TEST_PACKAGES}" == true ] || [ "${TEST_ALL}" == true ]; then
podman run -it --rm -e BUILDROOT="/build" -v ./build_files/:/build ${IMAGE} /build/scripts/packages.sh
fi
if [ "${TEST_PIPEWIRE}" == true ] || [ "${TEST_ALL}" == true ]; then
podman run -it --rm -e BUILDROOT="/build" -v ./build_files/:/build ${IMAGE} /build/scripts/build-pipewire-aptx.sh
fi