Removed static cptest/ dir, now managed by CI tests

This commit is contained in:
Russ Magee 2021-01-15 00:31:36 -08:00
parent 242d39192c
commit c511af6c13
2 changed files with 17 additions and 3 deletions

View File

@ -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--"

13
xc_testfiles.sh Executable file
View File

@ -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