File: kw-basic-test

package info (click to toggle)
kworkflow 1%3A0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,212 kB
  • sloc: sh: 31,869; perl: 2,172; sql: 268; ansic: 114; xml: 84; python: 76; makefile: 27
file content (28 lines) | stat: -rwxr-xr-x 607 bytes parent folder | download
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
#!/bin/sh

export HOME="$AUTOPKGTEST_TMP"

test_codestyle()
{
    kw_c=$(kw codestyle)
    assertEquals 'Neither the given path nor the working path is in a kernel tree.' "$kw_c"
}

test_maintainers()
{
    kw_m=$(kw maintainers)
    assertEquals 'Neither the given path nor the working path is in a kernel tree.' "$kw_m"
}

test_explore()
{
    git init 2> /dev/null
    echo 'Debian -- O Sistema Operacional Universal' > simple.txt
    git add simple.txt
    kw_e=$(kw explore 'Debian')
    assertEquals 'simple.txt:1:Debian -- O Sistema Operacional Universal' "$kw_e"
}

cd "$AUTOPKGTEST_TMP"

. shunit2