Makefile to help with test dir structure.

This commit is contained in:
Blallo 2019-05-17 18:04:48 +02:00
parent 054906472f
commit 52be092eab
No known key found for this signature in database
GPG key ID: 0CBE577C9B72DC3F

11
Makefile Normal file
View 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)