Rev 45 | Rev 47 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
45 | - | 1 | SRC=filefind.py |
2 | PRG=$(SRC) |
||
3 | DIR=/var/tmp |
||
4 | .PHONY: test cleantest |
||
46 | - | 5 | # test |
45 | - | 6 | |
7 | all: test |
||
8 | |||
9 | test: |
||
10 | ./$(PRG) $(DIR) > result |
||
11 | sort result > result.sort |
||
12 | find $(DIR) > result2 |
||
13 | sort result2 > result2.sort |
||
14 | wc *.sort |
||
15 | diff *.sort |
||
16 | |||
17 | cleantest: |
||
18 | rm -f result result.sort |
||
19 | rm -f result2 result2.sort |