]> git.example.dev Git - binbsis50-sm.git/commitdiff
updated: added test to makefile
author2weiEmu <saalbach.robert@outlook.de>
Mon, 13 Apr 2026 07:58:01 +0000 (09:58 +0200)
committer2weiEmu <saalbach.robert@outlook.de>
Mon, 13 Apr 2026 07:58:01 +0000 (09:58 +0200)
Makefile

index ec7129b3336d624ca1cec9ac42d4da1da8fb1bfb..026d301bb97728dcbc56c5182a7afba5dcbf05ba 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,3 +11,10 @@ default: .
        go build .
        ./songmanager -port 8000 -binb_location="" -songs_location="./testing/songs/" -redis_location="localhost:6379" -container_name=""
 
+test:
+       sudo docker stop redis || true
+       sudo docker rm redis || true
+       sudo docker run -d --name redis -p 6379:6379 redis:latest
+
+       python3 ./testing/dummy_testing_data.py
+       go test -run ''