mirror of https://github.com/CIRCL/Circlean
clean the test repository properly in case there are directories
parent
403f5fae7c
commit
e1454aa6bb
14
tests/run.sh
14
tests/run.sh
|
@ -46,30 +46,30 @@ umount ${SETUP_DIR}
|
|||
|
||||
# Prepare the test source key
|
||||
mount -o loop,offset=${OFFSET_VFAT_NORM} ${IMAGE_VFAT_NORM} ${SETUP_DIR}
|
||||
cp content_img_vfat_norm/* ${SETUP_DIR}
|
||||
cp -rf content_img_vfat_norm/* ${SETUP_DIR}
|
||||
umount ${SETUP_DIR}
|
||||
# Prepare the test source key (with partitions)
|
||||
mount -o loop,offset=${OFFSET_VFAT_PART1} ${IMAGE_VFAT_PART} ${SETUP_DIR}
|
||||
cp content_img_vfat_part1/* ${SETUP_DIR}
|
||||
cp -rf content_img_vfat_part1/* ${SETUP_DIR}
|
||||
umount ${SETUP_DIR}
|
||||
mount -o loop,offset=${OFFSET_VFAT_PART2} ${IMAGE_VFAT_PART} ${SETUP_DIR}
|
||||
cp content_img_vfat_part2/* ${SETUP_DIR}
|
||||
cp -rf content_img_vfat_part2/* ${SETUP_DIR}
|
||||
umount ${SETUP_DIR}
|
||||
# Prepare the test source key (NTFS)
|
||||
mount -o loop,offset=${OFFSET_VFAT_NORM} ${IMAGE_NTFS_NORM} ${SETUP_DIR}
|
||||
cp content_img_vfat_norm/* ${SETUP_DIR}
|
||||
cp -rf content_img_vfat_norm/* ${SETUP_DIR}
|
||||
umount ${SETUP_DIR}
|
||||
# Prepare the test source key (EXT2)
|
||||
mount -o loop,offset=${OFFSET_VFAT_NORM} ${IMAGE_EXT2} ${SETUP_DIR}
|
||||
cp content_img_vfat_norm/* ${SETUP_DIR}
|
||||
cp -rf content_img_vfat_norm/* ${SETUP_DIR}
|
||||
umount ${SETUP_DIR}
|
||||
# Prepare the test source key (EXT3)
|
||||
mount -o loop,offset=${OFFSET_VFAT_NORM} ${IMAGE_EXT3} ${SETUP_DIR}
|
||||
cp content_img_vfat_norm/* ${SETUP_DIR}
|
||||
cp -rf content_img_vfat_norm/* ${SETUP_DIR}
|
||||
umount ${SETUP_DIR}
|
||||
# Prepare the test source key (EXT4)
|
||||
mount -o loop,offset=${OFFSET_VFAT_NORM} ${IMAGE_EXT4} ${SETUP_DIR}
|
||||
cp content_img_vfat_norm/* ${SETUP_DIR}
|
||||
cp -rf content_img_vfat_norm/* ${SETUP_DIR}
|
||||
umount ${SETUP_DIR}
|
||||
|
||||
./run.exp ${IMAGE} ${IMAGE_VFAT_NORM} ${IMAGE_DEST}
|
||||
|
|
Loading…
Reference in New Issue