From: Karel Zak Date: Tue, 23 May 2017 10:10:15 +0000 (+0200) Subject: tests: check for TS_HELPER_SYSINFO in fincore test X-Git-Tag: v2.30-rc2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf1e776f1bbedf1969ad266ed637bdd42d278020;p=thirdparty%2Futil-linux.git tests: check for TS_HELPER_SYSINFO in fincore test Signed-off-by: Karel Zak --- diff --git a/tests/ts/fincore/count b/tests/ts/fincore/count index ac58850ff1..7a1c5d4262 100755 --- a/tests/ts/fincore/count +++ b/tests/ts/fincore/count @@ -1,5 +1,13 @@ #!/bin/bash +TS_TOPDIR="${0%/*}/../.." +TS_DESC="count file contents in core" + +. $TS_TOPDIR/functions.sh +ts_init "$*" + +ts_check_test_command "$TS_HELPER_SYSINFO" + function header { echo "[" "$1" "]" @@ -87,11 +95,6 @@ function run_dd_dd_test footer "$?" } -TS_TOPDIR="${0%/*}/../.." -TS_DESC="count file contents in core" - -. $TS_TOPDIR/functions.sh -ts_init "$*" PAGE_SIZE=$($TS_HELPER_SYSINFO pagesize) WINDOW_SIZE=$(( 32 * 1024 * PAGE_SIZE ))