diff --git a/bacillus/ci_pushbuild.sh b/bacillus/ci_pushbuild.sh index a1e7164..e5f29a9 100755 --- a/bacillus/ci_pushbuild.sh +++ b/bacillus/ci_pushbuild.sh @@ -54,9 +54,10 @@ else fi ############ -stage "Test(S->C)" +stage "Test(xc S->C)" ############ echo "Testing secure copy from server -> client ..." +./xc_testfiles.sh tmpdir=$$ mkdir -p /tmp/$tmpdir cd /tmp/$tmpdir @@ -76,7 +77,7 @@ else fi ############ -stage "Test(C->S)" +stage "Test(xc C->S)" ############ echo "TODO ..." @@ -99,7 +100,7 @@ tar -cz --exclude=.git --exclude=cptest -f ${BACILLUS_ARTFDIR}/xs.tgz . ############ stage "Cleanup" ############ -# nop +rm -rf cptest echo echo "--Done--" diff --git a/xc_testfiles.sh b/xc_testfiles.sh new file mode 100755 index 0000000..e549b13 --- /dev/null +++ b/xc_testfiles.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +## setup.sh - create some files for xc copy testing +dir=cptest + +mkdir -p ${dir}/subdir +dd bs=1024 count=16 if=/dev/urandom of=${dir}/file16KB +dd bs=1024 count=16 if=/dev/urandom of=${dir}/file1KB +dd bs=1024 count=16 if=/dev/urandom of=${dir}/file32KB +dd bs=1024 count=16 if=/dev/urandom of=${dir}/file6B +dd bs=1048576 count=32 if=/dev/urandom of=${dir}/subdir/file32MB +dd bs=1048576 count=64 if=/dev/urandom of=${dir}/subdir/file64MB +