File: upstream

package info (click to toggle)
cod-tools 3.11.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 159,136 kB
  • sloc: perl: 58,707; sh: 41,323; ansic: 7,268; xml: 1,982; yacc: 1,117; makefile: 731; python: 166
file content (87 lines) | stat: -rwxr-xr-x 2,734 bytes parent folder | download | duplicates (2)
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
86
87
#!/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

# 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_automorphism_003 'tightly depends on the version of Graph::Nauty'
bypass cases/cif_automorphism_004 'tightly depends on the version of Graph::Nauty'

bypass cases/cif_find_symmetry_001 'flaky'
bypass cases/cif_find_symmetry_002 'flaky'
bypass cases/cif_find_symmetry_003 'flaky'
bypass cases/cif_find_symmetry_004 'flaky'
bypass cases/cif_find_symmetry_005 'flaky'
bypass cases/cif_find_symmetry_006 'flaky'
bypass cases/cif_find_symmetry_007 'flaky'
bypass cases/cif_find_symmetry_008 'flaky'
bypass cases/cif_find_symmetry_009 'flaky'
bypass cases/cif_find_symmetry_010 'flaky'
bypass cases/cif_find_symmetry_011 'flaky'
bypass cases/cif_find_symmetry_012 'flaky'
bypass cases/cif_find_symmetry_013 'flaky'

bypass cases/cif_Fcalc_001 'flaky'

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'

bypass cases/cod2rdf_027 'depends on Perl database driver package version'

locale

make test shtest \
     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