mirror of https://github.com/CIRCL/Circlean
Fix test runs so we get only this run's results.
parent
c666b09903
commit
6fcbc0a174
|
@ -16,7 +16,7 @@ if [ -z "$1" ]; then
|
|||
echo "t_images1"
|
||||
exit
|
||||
fi
|
||||
TEST_SOURCE_TYPE=${2}
|
||||
TEST_SOURCE_TYPE=${1}
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
|
13
tests/run.sh
13
tests/run.sh
|
@ -65,6 +65,7 @@ umount ${SETUP_DIR}
|
|||
# Prepare the test source key
|
||||
if [ ${TEST_PART_TYPE} = "VFAT_NORM" ]; then
|
||||
mount -o loop,offset=${OFFSET_VFAT_NORM} ${IMAGE_VFAT_NORM} ${SETUP_DIR}
|
||||
rm -rf ${SETUP_DIR}/*
|
||||
cp -rf testFiles/${TEST_SOURCE_TYPE}/* ${SETUP_DIR}
|
||||
umount ${SETUP_DIR}
|
||||
fi
|
||||
|
@ -72,9 +73,11 @@ fi
|
|||
# Prepare the test source key (with partitions)
|
||||
if [ ${TEST_PART_TYPE} = "VFAT_PART" ]; then
|
||||
mount -o loop,offset=${OFFSET_VFAT_PART1} ${IMAGE_VFAT_PART} ${SETUP_DIR}
|
||||
rm -rf ${SETUP_DIR}/*
|
||||
cp -rf testFiles/${TEST_SOURCE_TYPE}/* ${SETUP_DIR}
|
||||
umount ${SETUP_DIR}
|
||||
mount -o loop,offset=${OFFSET_VFAT_PART2} ${IMAGE_VFAT_PART} ${SETUP_DIR}
|
||||
rm -rf ${SETUP_DIR}/*
|
||||
cp -rf testFiles/${TEST_SOURCE_TYPE}/* ${SETUP_DIR}
|
||||
umount ${SETUP_DIR}
|
||||
fi
|
||||
|
@ -82,6 +85,7 @@ fi
|
|||
# Prepare the test source key (NTFS)
|
||||
if [ ${TEST_PART_TYPE} = "NTFS_NORM" ]; then
|
||||
mount -o loop,offset=${OFFSET_VFAT_NORM} ${IMAGE_NTFS_NORM} ${SETUP_DIR}
|
||||
rm -rf ${SETUP_DIR}/*
|
||||
cp -rf testFiles/${TEST_SOURCE_TYPE}/* ${SETUP_DIR}
|
||||
umount ${SETUP_DIR}
|
||||
fi
|
||||
|
@ -89,6 +93,7 @@ fi
|
|||
# Prepare the test source key (EXT2)
|
||||
if [ ${TEST_PART_TYPE} = "EXT2" ]; then
|
||||
mount -o loop,offset=${OFFSET_VFAT_NORM} ${IMAGE_EXT2} ${SETUP_DIR}
|
||||
rm -rf ${SETUP_DIR}/*
|
||||
cp -rf testFiles/${TEST_SOURCE_TYPE}/* ${SETUP_DIR}
|
||||
umount ${SETUP_DIR}
|
||||
fi
|
||||
|
@ -96,6 +101,7 @@ fi
|
|||
# Prepare the test source key (EXT3)
|
||||
if [ ${TEST_PART_TYPE} = "EXT4" ]; then
|
||||
mount -o loop,offset=${OFFSET_VFAT_NORM} ${IMAGE_EXT3} ${SETUP_DIR}
|
||||
rm -rf ${SETUP_DIR}/*
|
||||
cp -rf testFiles/${TEST_SOURCE_TYPE}/* ${SETUP_DIR}
|
||||
umount ${SETUP_DIR}
|
||||
fi
|
||||
|
@ -103,10 +109,17 @@ fi
|
|||
# Prepare the test source key (EXT4)
|
||||
if [ ${TEST_PART_TYPE} = "EXT4" ]; then
|
||||
mount -o loop,offset=${OFFSET_VFAT_NORM} ${IMAGE_EXT4} ${SETUP_DIR}
|
||||
rm -rf ${SETUP_DIR}/*
|
||||
cp -rf testFiles/${TEST_SOURCE_TYPE}/* ${SETUP_DIR}
|
||||
umount ${SETUP_DIR}
|
||||
fi
|
||||
|
||||
# Prepare the test destination key
|
||||
mount -o loop,offset=${OFFSET_VFAT_NORM} ${IMAGE_DEST} ${SETUP_DIR}
|
||||
rm -rf ${SETUP_DIR}/*
|
||||
umount ${SETUP_DIR}
|
||||
|
||||
|
||||
# To make debugging easier
|
||||
echo "KittenGroomer: about to enter tests/run.exp" 1>&2
|
||||
|
||||
|
|
Loading…
Reference in New Issue