File: make-benchmark-fixture.sh

package info (click to toggle)
node-glob 7.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 816 kB
  • ctags: 46
  • sloc: sh: 75; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 374 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

tmp=${TMPDIR:-/tmp}
export CDPATH=
set -e
if ! [ -d $tmp/benchmark-fixture ]; then
  echo Making benchmark fixtures
  mkdir $tmp/benchmark-fixture
  cd $tmp/benchmark-fixture
  dirnames=`echo {0..9}/{0..9}/{0..9}/{0..9}` # 10000 dirs
  filenames=`echo {0..9}/{0..9}/{0..9}/{0..9}/{0..9}.txt`
  echo $dirnames | xargs mkdir -p
  echo $filenames | xargs touch
fi