29 lines
815 B
Makefile
29 lines
815 B
Makefile
all:
|
|
@just format
|
|
@just static-analysis
|
|
@just test
|
|
|
|
format:
|
|
cd ./drone-black-box && go fmt
|
|
fd --extension java --exec google-java-format --replace --aosp {}
|
|
|
|
|
|
static-analysis:
|
|
cd ./drone-black-box && go vet ./...
|
|
|
|
test:
|
|
cd ./drone-black-box && go test -v ./... -coverprofile=coverage.out
|
|
cd ./drone-black-box && go tool cover -html=coverage.out -o coverage.html
|
|
rm ./drone-black-box/coverage.out
|
|
# Java
|
|
cd ./ilp-rest-service/ && ./gradlew check
|
|
|
|
e2e:
|
|
bash .bin/e2e.sh
|
|
|
|
benchmark:
|
|
echo "Make sure the server is running at http://localhost:3000"
|
|
oha -z 10s -c 50 -m POST \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"drone_id": "TEST-DRONE", "latitude": 0.0, "longitude": 0.0, "timestamp": "2025-01-01"}' \
|
|
http://localhost:3000/ingest
|