adding a testing environment
This commit is contained in:
@@ -59,8 +59,8 @@
|
||||
.lazy = true,
|
||||
},
|
||||
.SPIRV_Interpreter = .{
|
||||
.url = "git+https://git.kbz8.me/kbz_8/SPIRV-Interpreter#5d704dcc5fabdea92831d132957bad930bafc974",
|
||||
.hash = "SPIRV_Interpreter-0.0.1-ajmpnwigAwCCfRQ1Z7QEwcSaSINeGCsjiOeMHgt_KWHj",
|
||||
.url = "git+https://git.kbz8.me/kbz_8/SPIRV-Interpreter#7dd86b021d2c8bf60cc68d517864e50556d649cf",
|
||||
.hash = "SPIRV_Interpreter-0.0.1-ajmpn_-fAwAaA7IFb6x6le74IZBlfjXrQjyuHF-SCtf0",
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
11
test/environment/Dockerfile
git.filemode.normal_file
11
test/environment/Dockerfile
git.filemode.normal_file
@@ -0,0 +1,11 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
WORKDIR /root
|
||||
|
||||
RUN apt update && apt install -y git rustup clang curl libgl1 libsm6 libwayland-egl1 libwayland-cursor0 libwayland-server0;
|
||||
RUN rustup default stable;
|
||||
RUN cargo install deqp-runner && cp $HOME/.cargo/bin/deqp-runner /usr/bin;
|
||||
RUN curl -L https://github.com/marler8997/anyzig/releases/latest/download/anyzig-x86_64-linux.tar.gz | tar xz && mv zig /usr/bin/;
|
||||
RUN git clone https://git.kbz8.me/kbz_8/VulkanDriver.git && cd VulkanDriver;
|
||||
|
||||
ENTRYPOINT ["/usr/bin/bash"]
|
||||
7
test/environment/README.md
git.filemode.normal_file
7
test/environment/README.md
git.filemode.normal_file
@@ -0,0 +1,7 @@
|
||||
## Small testing environment
|
||||
|
||||
A simple small testing environment in a docker container to test the driver with controlled resources usage.
|
||||
|
||||
To launch the container with 8GB of memory limit: `docker compose up -d`\
|
||||
To launch the container with custom memory limit: `MEM_LIMIT="20g" docker compose up -d`\
|
||||
To shell into it: `docker compose run --rm ubuntu-shell`
|
||||
6
test/environment/docker-compose.yaml
git.filemode.normal_file
6
test/environment/docker-compose.yaml
git.filemode.normal_file
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
ubuntu-shell:
|
||||
build: .
|
||||
mem_limit: ${MEM_LIMIT:-8g}
|
||||
stdin_open: true
|
||||
tty: true
|
||||
Reference in New Issue
Block a user