Browse Source

Makefile to help with test dir structure.

Blallo 4 years ago
parent
commit
52be092eab
1 changed files with 11 additions and 0 deletions
  1. 11 0
      Makefile

+ 11 - 0
Makefile

@@ -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)