File: dkms_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 (44 lines) | stat: -rw-r--r-- 1,002 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
. $(dirname $0)/helper.sh

test_Testsuite_autopkgtest_pkg_dkms() {
  has debian/control 'Testsuite: autopkgtest-pkg-dkms'
  check_run autodep8
}

test_XS_Testsuite_autopkgtest_pkg_dkms() {
  has debian/control 'XS-Testsuite: autopkgtest-pkg-dkms'
  check_run autodep8
}

test_detect_dkms_depends() {
  has 'debian/control' 'Depends: dkms'
  check_run autodep8
}

test_detect_dkms_builddepends() {
  has 'debian/control' 'Build-Depends: dkms'
  check_run autodep8
}

test_detect_dkms_builddepends_arch() {
  has 'debian/control' 'Build-Depends-Arch: dkms'
  check_run autodep8
}

test_detect_dkms_builddepends_indep() {
  has 'debian/control' 'Build-Depends-Indep: dkms'
  check_run autodep8
}

test_detect_dkms_packagename() {
  has 'debian/control' 'Package: foo-dkms'
  check_run autodep8
}

test_dkms_depends_dkms() {
  has 'debian/control' "Depends: dkms"
  check_run autodep8
  assertFalse "test does must depend on dkms\n$(grep Depends: stdout)\n" "grep -q Depends:.*depends stdout"
}

. shunit2