1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
#!/bin/sh
set -ue
# Making a copy of the tests:
rsync -a tests ${AUTOPKGTEST_TMP}
# Adjusting changed paths:
perl -i -pe 's|\./(tmp-)|$1|g' ${AUTOPKGTEST_TMP}/tests/shoutputs/*.out
# Specifying temporary directory for cod_predeposition_check:
for i in tests/outputs/cod_predeposition_check_*.out
do
echo --temp-dir ${AUTOPKGTEST_TMP} \
>> ${AUTOPKGTEST_TMP}/tests/cases/$(basename $i .out).opt
done
# Define function to bypass individual tests:
bypass () {
cat > ${AUTOPKGTEST_TMP}/tests/$1.chk <<END
#!/bin/sh
echo Test skipped by request - $2
exit 1
END
chmod 755 ${AUTOPKGTEST_TMP}/tests/$1.chk
}
bypass shtests/check_help_option 'not applicable for installation tests'
bypass shtests/check_option_descriptions 'not applicable for installation tests'
bypass shtests/check_version_option 'not applicable for installation tests'
bypass cases/cif_find_symmetry_001 'test incompatible with spglib \>= v1.11'
bypass cases/cif_find_symmetry_002 'test incompatible with spglib == v1.11'
bypass cases/cif_find_symmetry_003 'test incompatible with spglib == v1.12'
bypass cases/cif_find_symmetry_005 'test incompatible with spglib \>= v1.11'
bypass cases/cif_find_symmetry_007 'test incompatible with spglib \>= v1.11'
bypass cases/cif_find_symmetry_008 'test incompatible with spglib \>= v1.11'
bypass cases/cif_find_symmetry_009 'test incompatible with spglib \>= v1.11'
bypass cases/cif_find_symmetry_010 'test incompatible with spglib == v1.12'
bypass cases/cif_find_symmetry_012 'test incompatible with spglib \>= v1.11'
bypass cases/cif_find_symmetry_013 'test incompatible with spglib \>= v1.11'
bypass shtests/cif_tcod_tree_001 'locale-dependent behaviour'
bypass shtests/cif_tcod_tree_003 'locale-dependent behaviour'
bypass shtests/cif_tcod_tree_005 'locale-dependent behaviour'
bypass shtests/cif_tcod_tree_007 'locale-dependent behaviour'
locale
make tests \
SCRIPT_DIR=/usr/bin \
SCRIPT_TST_DIR=${AUTOPKGTEST_TMP}/tests/cases \
SHELL_TSTDIR=${AUTOPKGTEST_TMP}/tests/shtests \
SHELL_OUTDIR=${AUTOPKGTEST_TMP}/tests/shoutputs \
OUTPUT_DIR=${AUTOPKGTEST_TMP}/tests/outputs \
TMP_DIR=${AUTOPKGTEST_TMP} \
C_PROGRAM_EXE_FILES="" \
COMPILED_MODULES="" \
DIFF_DEPEND="" \
LOCAL_LIB_FILES="" \
filter_perl_messages_user='perl -pe "s|^/usr/bin|scripts|g; s|\Q'${AUTOPKGTEST_TMP}'\E/?||g"'
echo
make listdiff \
SCRIPT_DIR=/usr/bin \
SCRIPT_TST_DIR=${AUTOPKGTEST_TMP}/tests/cases \
SHELL_TSTDIR=${AUTOPKGTEST_TMP}/tests/shtests \
SHELL_OUTDIR=${AUTOPKGTEST_TMP}/tests/shoutputs \
OUTPUT_DIR=${AUTOPKGTEST_TMP}/tests/outputs \
DIFF_DEPEND=""
# Checking the existance of non-empty DIFF files to set the exit status:
if [ -n "$(find ${AUTOPKGTEST_TMP}/tests -name \*.diff ! -empty)" ]
then
echo Failed tests exist \(non-empty .diff files\)
exit 1
fi
|