xc_testfiles.sh 502 B

1234567891011121314
  1. #!/bin/bash
  2. ## setup.sh - create some files for xc copy testing
  3. dir=cptest
  4. mkdir -p ${dir}/subdir
  5. dd bs=1024 count=16 if=/dev/urandom of=${dir}/file16KB
  6. dd bs=1024 count=16 if=/dev/urandom of=${dir}/file1KB
  7. dd bs=1024 count=16 if=/dev/urandom of=${dir}/file32KB
  8. dd bs=1024 count=16 if=/dev/urandom of=${dir}/file6B
  9. dd bs=1048576 count=32 if=/dev/urandom of=${dir}/subdir/file32MB
  10. dd bs=1048576 count=64 if=/dev/urandom of=${dir}/subdir/file64MB
  11. sha1sum $(find ${dir} -type f | sort) >${dir}.sha1sum