From 52be092eab392845eed3d3a73f37bda28a877d90 Mon Sep 17 00:00:00 2001 From: Blallo Date: Fri, 17 May 2019 18:04:48 +0200 Subject: [PATCH] Makefile to help with test dir structure. --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b04ca20 --- /dev/null +++ b/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)