-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (30 loc) · 976 Bytes
/
Makefile
File metadata and controls
38 lines (30 loc) · 976 Bytes
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
all: sidecar
sidecar:
CGO_ENABLED=0 GOOS=linux go build -o bin/slurm-sd cmd/main.go
unit-test:
go test -v ./...
integration-test:
dagger call -m ./ci test --interlink-version 0.5.2-pre2 --src ./ --plugin-config ./ci/manifests/plugin-config.yaml --manifests ./ci/manifests
test: unit-test
# K3s-based integration tests (individual steps)
test-k3s-setup:
@echo "Setting up K3s test environment..."
@bash ./scripts/k3s-test-setup.sh
test-k3s-run:
@echo "Running K3s integration tests..."
@bash ./scripts/k3s-test-run.sh
test-k3s-cleanup:
@echo "Cleaning up K3s test environment..."
@bash ./scripts/k3s-test-cleanup.sh
# Complete K3s integration test cycle
test-k3s:
@status=0; \
$(MAKE) test-k3s-setup || status=$$?; \
if [ $$status -eq 0 ]; then \
$(MAKE) test-k3s-run || status=$$?; \
fi; \
$(MAKE) test-k3s-cleanup || cleanup_status=$$?; \
if [ $$status -eq 0 ] && [ -n "$$cleanup_status" ]; then \
status=$$cleanup_status; \
fi; \
exit $$status