Homework 04: Initial Import

This commit is contained in:
Owen Dorweiler 2025-02-20 15:05:33 -05:00 • committed by Mayleen Liu
commit 4fb62a22f3
3 changed files with 155 additions and 0 deletions

27
homework04/Makefile Normal file
View file

@ -0,0 +1,27 @@
test:
@$(MAKE) -sk test-all
test-all: test-cut test-wc
test-data:
@curl -sLO https://www3.nd.edu/~pbui/teaching/cse.20289.sp25/static/txt/homework04/cut.input
@curl -sLO https://www3.nd.edu/~pbui/teaching/cse.20289.sp25/static/txt/homework04/wc.input
test-scripts: test-data
@curl -sLO https://www3.nd.edu/~pbui/teaching/cse.20289.sp25/static/txt/homework04/cut.test
@curl -sLO https://www3.nd.edu/~pbui/teaching/cse.20289.sp25/static/txt/homework04/wc.test
@chmod +x ./*.test
test-cut: test-scripts cut.py
@echo Testing Cut ...
@./cut.test -v
@echo
test-wc: test-scripts wc.py
@echo Testing WC ...
@./wc.test -v
@echo
clean:
@rm -f *.input *.test