-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (52 loc) · 1.49 KB
/
Copy pathMakefile
File metadata and controls
60 lines (52 loc) · 1.49 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.PHONY: help test test-fast test-ci install-shellspec clean
# Default target
help:
@echo "mxp - Makefile targets"
@echo ""
@echo "Testing:"
@echo " make test - Run all tests"
@echo " make test-fast - Run fast tests only (skip slow/problematic ones)"
@echo " make test-ci - Run CI-safe tests"
@echo ""
@echo "ShellSpec (future):"
@echo " make install-shellspec - Install ShellSpec testing framework"
@echo " make spec - Run ShellSpec tests"
@echo ""
@echo "Utilities:"
@echo " make clean - Clean up test artifacts"
@echo " make version - Show mxp version"
# Run all tests
test:
@echo "Running all tests..."
./test-mxp.sh
# Run fast tests (skip slow/CI-problematic tests)
test-fast:
@echo "Running fast tests..."
./test-mxp.sh --fast
# CI-safe tests (same as fast for now)
test-ci: test-fast
# Install ShellSpec (for future use)
install-shellspec:
@echo "Installing ShellSpec..."
@if [ ! -d "shellspec" ]; then \
git clone --depth 1 https://github.com/shellspec/shellspec.git; \
echo "ShellSpec installed to ./shellspec/"; \
else \
echo "ShellSpec already installed"; \
fi
# Run ShellSpec tests (future)
spec:
@if [ -d "shellspec" ]; then \
./shellspec/shellspec; \
else \
echo "ShellSpec not installed. Run: make install-shellspec"; \
exit 1; \
fi
# Clean up test artifacts
clean:
@echo "Cleaning up test artifacts..."
@rm -f /tmp/mxp-* /tmp/tmp.* 2>/dev/null || true
@echo "Done"
# Show version
version:
@./mxp --version