~willismonroe/ubuntu/precise/xdg-utils/typo-fix-996304

« back to all changes in this revision

Viewing changes to tests/generic/t.no_arg

  • Committer: Bazaar Package Importer
  • Author(s): Per Olofsson
  • Date: 2006-08-29 17:35:02 UTC
  • Revision ID: james.westby@ubuntu.com-20060829173502-ffe063dqe8ajg2rm
Tags: upstream-1.0~beta3
ImportĀ upstreamĀ versionĀ 1.0~beta3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
. "$XDG_TEST_DIR/include/testassertions.sh"
 
4
 
 
5
 
 
6
generic_no_arg() {
 
7
test_start "$FUNCNAME: generic noarg - $XDGUTIL"
 
8
test_purpose "Ensure that $XDGUTIL exits with an error and usage message when called without required arguments."
 
9
 
 
10
# Dependencies section
 
11
test_init
 
12
 
 
13
assert_util_var
 
14
set_no_display
 
15
 
 
16
# Test steps section
 
17
test_procedure
 
18
 
 
19
assert_exit 1 "$XDGUTIL" 
 
20
assert_stdout
 
21
assert_nostderr
 
22
 
 
23
test_result
 
24
}
 
25
GENERIC_TEST="generic_no_arg"