File: common_config_test.sh

package info (click to toggle)
autodep8 0.30
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 276 kB
  • sloc: sh: 1,139; makefile: 31
file content (26 lines) | stat: -rw-r--r-- 751 bytes parent folder | download | duplicates (3)
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
. $(dirname $0)/helper.sh

generators=$(ls -1 ${AUTODEP8_SUPPORT_DIR}/*/generate)

test_extra_depends() {
  for f in $generators; do
    pkgtype=$(basename $(dirname "$f"))
    assertTrue "$pkgtype should support extra_depends" "grep 'Depends:.*\${pkg_${pkgtype}_extra_depends:-}' $f"
  done
}

test_extra_restrictions() {
  for f in $generators; do
    pkgtype=$(basename $(dirname "$f"))
    assertTrue "$pkgtype should support extra_restrictions" "grep 'Restrictions:.*\${pkg_${pkgtype}_extra_restrictions:-}' $f"
  done
}

test_architecture() {
  for f in $generators; do
    pkgtype=$(basename $(dirname "$f"))
    assertTrue "$pkgtype should support architecture" "grep 'Architecture:.*\${pkg_${pkgtype}_architecture.*}' $f"
  done
}

. shunit2