added makefile to count loc and run shell scripts

quietlight
Apr 30, 2026, 10:23 PM
EA6OQXWFTAWKI5M5RLYO2LHQR4DXD2B6ZW6AN4COIXRF4PGQQW2QC

Dependencies

Change contents

  • file addition: Makefile (----------)
    [2.1]
    SHELL_SCRIPTS := $(sort $(wildcard shell_scripts/test_*.sh))
    SHELL_TESTS := $(filter-out shell_scripts/test_lib.sh,$(SHELL_SCRIPTS))
    .PHONY: test count unit shell
    count:
    @find . -name "*.go" ! -name "*_test.go" | xargs wc -l | tail -1
    unit:
    go test ./...
    shell:
    @echo "Running shell integration tests..."
    @for script in $(SHELL_TESTS); do \
    echo ""; \
    echo "=== $$script ==="; \
    cd shell_scripts && bash $$(basename $$script) || exit 1; \
    cd ..; \
    done
    test: count unit shell