feat: add run-tests make task

This commit is contained in:
xyhhx 2024-04-02 02:00:47 -04:00
parent 4d755a3c65
commit e1cdd9ecd0
No known key found for this signature in database
GPG key ID: 21955DADF87F80E8
2 changed files with 12 additions and 0 deletions

View file

@ -40,6 +40,10 @@ preseed:
verify:
./src/verify.sh
.PHONY: all-tests
all-tests:
./src/run-tests.sh
.PHONY: digests
digests:
./src/digests.sh

8
src/run-tests.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
set -eu
pkgs=$(grep -rnw ./packages/*/Containerfile -e "^FROM.*test$" | awk -F":" '{print $1}' | tr '\n' ' ')
for containerfile in $pkgs; do
docker build --target test - <$containerfile
done