File: 01-nodelist-test.sh

package info (click to toggle)
crashmail 1.7-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,516 kB
  • sloc: ansic: 18,671; sh: 401; makefile: 171
file content (30 lines) | stat: -rw-r--r-- 604 bytes parent folder | download | duplicates (4)
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
#!/bin/sh

describe "nodelist"

. ./testcommon.sh

before () {
	setup_crashmail_env
}

after () {
	clean_crashmail_env
}

it_generates_nodelist_index () {
	$__tools__/crashlist nodelist && test -f nodelist/cmnodelist.index
}

it_finds_a_node () {
	$__tools__/crashlist nodelist
	$__tools__/crashgetnode 99:99/99 nodelist > crashgetnode.output
	diff crashgetnode.output $__topdir__/crashgetnode-node.expected
}

#it_finds_a_point () {
#	$__tools__/crashlist nodelist
#	$__tools__/crashgetnode 99:99/1.1 nodelist > crashgetnode.output
#	diff crashgetnode.output $__topdir__/crashgetnode-point.expected
#}