Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:update tests
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:06a9590975ce1077f8812e9d38f1a37674a53d6e
User & Date: brandon 2016-06-12 19:19:59
Context
2016-06-12
19:20
update Makefile.am for latest gnulib check-in: 79119b347c user: brandon tags: trunk
19:19
update tests check-in: 06a9590975 user: brandon tags: trunk
19:11
bump version number check-in: 46c88194a7 user: brandon tags: trunk
Changes

Changes to tests/system_tests.test.in.

55
56
57
58
59
60
61
62
63
64
65
66
67













68
69
70
71
72
73
74
...
153
154
155
156
157
158
159
160
161
162

163
164
165
166
167
168
169
170
    fi
    rm ${TESTDB}
}

test_large_args () {
    "${ZDBC}" --cache-size=1000000000000000000 \
        --mmap-size=1000000000000000000 ${TESTDB} || \
        fail $1 "large database creation failed"
    if [ -f ${TESTDB} ]; then
        pass $1 "large argument usage succeeded"
    else
        fail $1 "large argument usage failed"
    fi













    rm ${TESTDB}
    return $?
}

create_test_db () {
    "${ZDBC}" ${TESTDB}
}
................................................................................
        fail $1 "remove records - some records remain"
    else
        pass $1 "remove records succeeded"
    fi
    return $?
}

echo 1..8
test_create_db 1
test_create_large_db 2

create_test_db
test_store_records 3
test_store_records_with_alt_delim 4
test_fetch_records 5
test_fetch_records_with_delim 6
test_fetch_all_records 7
test_remove_records 8
remove_test_db







|





>
>
>
>
>
>
>
>
>
>
>
>
>







 







|

|
>

|
|
|
|
|
|

55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
...
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
    fi
    rm ${TESTDB}
}

test_large_args () {
    "${ZDBC}" --cache-size=1000000000000000000 \
        --mmap-size=1000000000000000000 ${TESTDB} || \
        fail $1 "large argument usage failed"
    if [ -f ${TESTDB} ]; then
        pass $1 "large argument usage succeeded"
    else
        fail $1 "large argument usage failed"
    fi
    rm ${TESTDB}
    return $?
}

test_neg_args () {
    "${ZDBC}" --cache-size=-5 \
        --mmap-size=-5 ${TESTDB} || \
        fail $1 "negative argument usage failed"
    if [ -f ${TESTDB} ]; then
        pass $1 "negative argument usage succeeded"
    else
        fail $1 "negative argument usage failed"
    fi
    rm ${TESTDB}
    return $?
}

create_test_db () {
    "${ZDBC}" ${TESTDB}
}
................................................................................
        fail $1 "remove records - some records remain"
    else
        pass $1 "remove records succeeded"
    fi
    return $?
}

echo 1..9
test_create_db 1
test_large_args 2
test_neg_args 3
create_test_db
test_store_records 4
test_store_records_with_alt_delim 5
test_fetch_records 6
test_fetch_records_with_delim 7
test_fetch_all_records 8
test_remove_records 9
remove_test_db