Homework 04: Initial Import
This commit is contained in:
parent
7467fd2f61
commit
4fb62a22f3
3 changed files with 155 additions and 0 deletions
27
homework04/Makefile
Normal file
27
homework04/Makefile
Normal 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
|
||||
Loading…
Reference in a new issue