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
|