aboutsummaryrefslogtreecommitdiff
path: root/test_testlib.sh
blob: bfaecaa850d495ab02dec0b8c625854075f8e1c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# testsuite for testlib

. ./testlib.sh

test_success() {
    exit 0
}

test_fail() {
    exit 1
}

test_options() {
    echo "$@"
    exit 1
}

expect_success test_success
expect_fail test_fail
expect_fail test_options "hello world"
testlib_summary