Recent changes (master)
The following changes since commit fd9882facefa0f5b09c09d2bc5cb3a2b6eabda1a:
filesetup: ensure to setup random generator properly (2019-12-06 22:03:04 -0700)
are available in the Git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to 41ceb6c79aea52bd46ea13c5036722a294bb719e:
t/run-fio-tests: relax acceptance criterion for t0011 (2019-12-11 20:55:07 -0700)
----------------------------------------------------------------
Vincent Fu (9):
.gitignore: ignore zbd test output files t/run-fio-tests: a few small improvements t/run-fio-tests: detect requirements and skip tests accordingly t/run-fio-tests: improve Windows support t/run-fio-tests: identify test id for debug messages t/steadystate_tests: use null ioengine for tests .travis.yml: run t/run-fio.tests.py as part of build .appveyor.yml: run run-fio-tests.py
t/run-fio-tests: relax acceptance criterion for t0011
.appveyor.yml | 6 +- .gitignore | 1 + .travis.yml | 26 +++--- t/run-fio-tests.py | 219 +++++++++++++++++++++++++++++++++++++++++++------ t/steadystate_tests.py | 21 +---- 5 files changed, 219 insertions(+), 54 deletions(-)
---
Diff of recent changes:
.appveyor.yml +4 -2
@@ -13,8 +13,9 @@ environment: CONFIGURE_OPTIONS: --build-32bit-win --target-win-ver=xp install: - - '%CYG_ROOT%\setup-x86_64.exe --quiet-mode --no-shortcuts --only-site --site "%CYG_MIRROR%" --packages "mingw64-%PACKAGE_ARCH%-zlib" > NUL' - - SET PATH=%CYG_ROOT%\bin;%PATH% #��NB: Changed env variables persist to later sections + - '%CYG_ROOT%\setup-x86_64.exe --quiet-mode --no-shortcuts --only-site --site "%CYG_MIRROR%" --packages "mingw64-%PACKAGE_ARCH%-zlib,mingw64-%PACKAGE_ARCH%-CUnit" > NUL' + - SET PATH=C:\Python38-x64;%CYG_ROOT%\bin;%PATH% #��NB: Changed env variables persist to later sections + - python.exe -m pip install scipy build_script: - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && ./configure --disable-native --extra-cflags=\"-Werror\" ${CONFIGURE_OPTIONS} && make.exe'
@@ -24,6 +25,7 @@ after_build: test_script: - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && file.exe fio.exe && make.exe test' + - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && python.exe t/run-fio-tests.py --skip 5 --debug' artifacts: - path: os\windows\*.msi
.gitignore +1 -0
@@ -25,3 +25,4 @@ lex.yy.c doc/output /tags /TAGS +/t/zbd/test-zbd-support.log.*
.travis.yml +15 -11
@@ -15,19 +15,13 @@ matrix: - os: osx compiler: clang # Workaround travis setting CC=["clang", "gcc"] env: BUILD_ARCH="x86_64" - # Build using the 10.12 SDK but target and run on OSX 10.11 -# - os: osx -# compiler: clang -# osx_image: xcode8 -# env: SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk MACOSX_DEPLOYMENT_TARGET=10.11 - # Build on the latest OSX version (will eventually become obsolete) - os: osx compiler: clang - osx_image: xcode8.3 + osx_image: xcode9.4 env: BUILD_ARCH="x86_64" - os: osx compiler: clang - osx_image: xcode9.4 + osx_image: xcode11.2 env: BUILD_ARCH="x86_64" exclude: - os: osx
@@ -39,17 +33,27 @@ matrix: before_install: - EXTRA_CFLAGS="-Werror" - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then - pkgs=(libaio-dev libnuma-dev libz-dev librbd-dev libibverbs-dev librdmacm-dev); + pkgs=(libaio-dev libnuma-dev libz-dev librbd-dev libibverbs-dev librdmacm-dev libcunit1 libcunit1-dev); if [[ "$BUILD_ARCH" == "x86" ]]; then pkgs=("${pkgs[@]/%/:i386}"); - pkgs+=(gcc-multilib); + pkgs+=(gcc-multilib python-scipy); EXTRA_CFLAGS="${EXTRA_CFLAGS} -m32"; else - pkgs+=(glusterfs-common); + pkgs+=(glusterfs-common python-scipy); fi; sudo apt-get -qq update; sudo apt-get install --no-install-recommends -qq -y "${pkgs[@]}"; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then + brew update; + brew install cunit; + if [[ "$TRAVIS_OSX_IMAGE" == "xcode11.2" ]]; then + pip3 install scipy; + else + pip install scipy; + fi; + fi script: - ./configure --extra-cflags="${EXTRA_CFLAGS}" && make - make test + - sudo python3 t/run-fio-tests.py --skip 6 1007 1008
t/run-fio-tests.py +196 -23
475 lines not on this page · raw message
t/steadystate_tests.py +3 -18
@@ -31,12 +31,7 @@ from scipy import stats def parse_args(): parser = argparse.ArgumentParser() - parser.add_argument('fio', - help='path to fio executable') - parser.add_argument('--read', - help='target for read testing') - parser.add_argument('--write', - help='target for write testing') + parser.add_argument('fio', help='path to fio executable') args = parser.parse_args() return args
@@ -123,26 +118,16 @@ if __name__ == '__main__': {'s': True, 'timeout': 10, 'numjobs': 3, 'ss_dur': 10, 'ss_ramp': 500, 'iops': False, 'slope': True, 'ss_limit': 0.1, 'pct': True}, ] - if args.read == None: - if os.name == 'posix': - args.read = '/dev/zero' - extra = [ "--size=128M" ] - else: - print("ERROR: file for read testing must be specified on non-posix systems") - sys.exit(1) - else: - extra = [] - jobnum = 0 for job in reads: tf = "steadystate_job{0}.json".format(jobnum) parameters = [ "--name=job{0}".format(jobnum) ] - parameters.extend(extra) parameters.extend([ "--thread", "--output-format=json", "--output={0}".format(tf), - "--filename={0}".format(args.read), + "--ioengine=null", + "--size=1G", "--rw=randrw", "--rwmixread=100", "--stonewall",