https://github.com/ncw/make_test_files
A program to generate test files
https://github.com/ncw/make_test_files
files testing
Last synced: over 1 year ago
JSON representation
A program to generate test files
- Host: GitHub
- URL: https://github.com/ncw/make_test_files
- Owner: ncw
- License: mit
- Created: 2017-12-13T10:29:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-22T14:37:44.000Z (over 8 years ago)
- Last Synced: 2024-06-20T12:05:03.456Z (about 2 years ago)
- Topics: files, testing
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
Make test files
===============
Create a tree of random files for testing.
Download a [binary from github](https://github.com/ncw/make_test_files/releases/latest)
or build from source (see later).
Usage
=====
```
Usage: make_test_files [flags]
This command makes a random directory structure with random files in
. The options can be used to control exactly which files
get made.
The file names and sizes will be identical each time the command is
run with the same parameters. -seed can be used to change what is
created.
Options:
-files-per-directory int
Average number of files per directory (default 10)
-loop
Loop forever
-max-depth int
Maximum depth of directory heirachy (default 10)
-max-name-length int
Maximum size of files to create (default 12)
-max-size int
Maximum size of files to create (default 100)
-min-name-length int
Minimum size of file to create (default 4)
-min-size int
Minimum size of file to create
-n int
Number of files to create (default 1000)
-seed int
Seed for the random number generator (default 1)
-sync
Fsync each file
-v Be more verbose
-z Fill files with zeroes instead of random data
```
Build
=====
You'll need go installed, then
go get github.com/ncw/make_test_files
and this will build the binary in `$GOPATH/bin`. You can then modify
the source and submit patches.
License
=======
This is free software under the terms of the MIT license (check the
COPYING file included in this package).
Contact and support
===================
The project website is at:
- https://github.com/ncw/make_test_files
There you can file bug reports, ask for help or contribute patches.
Authors
=======
- Nick Craig-Wood
Contributors
------------
- Your name goes here!