Add t/test_opts.sh - Automated testing of command line options#1536
Open
horshack-dpreview wants to merge 1 commit intoaxboe:masterfrom
Open
Add t/test_opts.sh - Automated testing of command line options#1536horshack-dpreview wants to merge 1 commit intoaxboe:masterfrom
horshack-dpreview wants to merge 1 commit intoaxboe:masterfrom
Conversation
2e6021b to
8c61527
Compare
Collaborator
|
|
New script for testing combinations of command-line options.
You define groups of options and this script will execute all
permutations of those options. For example:
numjobs=("numjobs=1" "numjobs=8")
rw=("rw=write" "rw=randrw")
bs=("bs=512" "bs=64K")
thread=("" "thread")
all=("numjobs" "rw" "bs" "thread")
commonArgs="-name=test -ioengine=null -size=500M"
Will execute fio with permutations of options:
Permutation 0: --numjobs=1 --rw=write --bs=512
Permutation 1: --numjobs=8 --rw=write --bs=512
Permutation 2: --numjobs=1 --rw=randrw --bs=512
Permutation 3: --numjobs=8 --rw=randrw --bs=512
Permutation 4: --numjobs=1 --rw=write --bs=64K
Permutation 5: --numjobs=8 --rw=write --bs=64K
Permutation 6: --numjobs=1 --rw=randrw --bs=64K
Permutation 7: --numjobs=8 --rw=randrw --bs=64K
Permutation 8: --numjobs=1 --rw=write --bs=512 --thread
Permutation 9: --numjobs=8 --rw=write --bs=512 --thread
Permutation 10: --numjobs=1 --rw=randrw --bs=512 --thread
Permutation 11: --numjobs=8 --rw=randrw --bs=512 --thread
Permutation 12: --numjobs=1 --rw=write --bs=64K --thread
Permutation 13: --numjobs=8 --rw=write --bs=64K --thread
Permutation 14: --numjobs=1 --rw=randrw --bs=64K --thread
Permutation 15: --numjobs=8 --rw=randrw --bs=64K --thread
All permutations will have these options in common:
-name=test -ioengine=null -size=500M
Signed-off-by: Adam Horshack (horshack@live.com)
8c61527 to
b8cea60
Compare
Contributor
Author
|
@vincentkfu, Thanks. All but the first warning were false alarms. I've removed the leading space on the shebang. |
Collaborator
|
Leading space is still there. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New script for testing combinations of command-line options. You define groups of options and this script will execute all permutations of those options. I've been using this to test my changes before committing. For example:
Will execute fio with permutations of options:
All permutations will have these options in common:
-name=test -ioengine=null -size=500MSigned-off-by: Adam Horshack (horshack@live.com)