Makefile to help with test dir structure.
This commit is contained in:
parent
054906472f
commit
52be092eab
1 changed files with 11 additions and 0 deletions
11
Makefile
Normal file
11
Makefile
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
TEST_PATH := ./tests
|
||||||
|
|
||||||
|
$(TEST_PATH):
|
||||||
|
for dir in {a1,a2}/{b1,b2,b3}/{c1,c2,c3}; do \
|
||||||
|
dirpath=$(TEST_PATH)/$${dir}; \
|
||||||
|
mkdir -p $${dirpath}; \
|
||||||
|
dd if=/dev/urandom of=$${dirpath}/$$RANDOM bs=1 count=$$(( RANDOM+1024 )); \
|
||||||
|
done
|
||||||
|
|
||||||
|
clear:
|
||||||
|
rm -rf $(TEST_PATH)
|
Loading…
Reference in a new issue