commit 4719d0fa737beff97c480128859d926352a3b55e Author: github-classroom[bot] <66690702+github-classroom[bot]@users.noreply.github.com> Date: Thu Jan 9 14:30:05 2025 +0000 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ca5ad94 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +*~ +*.o +*.pyc +*.swp +*.exe +*.so +*.a +*.tar.gz +__pycache__ +homework01/archive +homework01/bash +homework02/*.lockbox +homework07/homework07 +homework08/homework08 +homework09/homework09 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0651b19 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +BRANCH?= $(shell git rev-parse --abbrev-ref HEAD) + +test: + @$(MAKE) -sk test-all + +test-all: test-code test-quiz + +test-code: + @[ "$(BRANCH)" = "master" -o -z "$(BRANCH)" ] \ + || [ ! -f "$(BRANCH)/Makefile" ] \ + || (cd $(BRANCH) && make -s test) + +test-quiz: + @[ "$(BRANCH)" = "master" -o -z "$(BRANCH)" ] \ + || [ ! -f "$(BRANCH)/answers.json" -a ! -f "$(BRANCH)/answers.yaml" ] \ + || .scripts/check.py