ocf: update autotest to use OCF submodule

Make autotest.sh use OCF submodule as target

Change-Id: I1f6411c1b143d3c53ffa405a5bf01fdbcd4e9868
Signed-off-by: Vitaliy Mysak <vitaliy.mysak@intel.com>
Reviewed-on: https://review.gerrithub.io/c/444844
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Vitaliy Mysak 2019-02-15 18:09:29 +00:00 committed by Jim Harris
parent 98d60de60f
commit 34bdceabb8
2 changed files with 10 additions and 1 deletions

View File

@ -28,6 +28,8 @@ ipsec_pv=ipsec-$(date +%Y_%m_%d)
ipsec_tarball=${ipsec_pv}.tar
isal_pv=isal-$(date +%Y_%m_%d)
isal_tarball=${isal_pv}.tar
ocf_pv=ocf-$(date +%Y_%m_%d)
ocf_tarball=${ocf_pv}.tar
find . -iname "spdk-*.tar* dpdk-*.tar* ipsec-*.tar* isal-*.tar*" -delete
git archive HEAD^{tree} --prefix=${spdk_pv}/ -o ${spdk_tarball}
@ -58,6 +60,13 @@ if [ -d "isa-l" ]; then
tar -C "$tmpdir/${spdk_pv}" -xf $isal_tarball
fi
if [ -d "ocf" ]; then
cd ocf
git archive HEAD^{tree} --prefix=ocf/ -o ../${ocf_tarball}
cd ..
tar -C "$tmpdir/${spdk_pv}" -xf $ocf_tarball
fi
(
cd "$tmpdir"/spdk-*
# use $config_params to get the right dependency options, but disable coverage and ubsan

View File

@ -94,7 +94,7 @@ if [ $SPDK_TEST_CRYPTO -eq 1 ]; then
fi
if [ $SPDK_TEST_OCF -eq 1 ]; then
config_params+=" --with-ocf=/usr/src/ocf"
config_params+=" --with-ocf"
fi
export UBSAN_OPTIONS='halt_on_error=1:print_stacktrace=1:abort_on_error=1'