diff options
Diffstat (limited to 'src/util/dict_debug_test.sh')
| -rwxr-xr-x | src/util/dict_debug_test.sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/util/dict_debug_test.sh b/src/util/dict_debug_test.sh new file mode 100755 index 000000000..a5c12a239 --- /dev/null +++ b/src/util/dict_debug_test.sh @@ -0,0 +1,37 @@ +#!/bin/sh +set -e + +echo ">>> dict_open 'debug:' read" +! ${VALGRIND} ./dict_open 'debug:' read </dev/null || exit 1 + +echo ">>> dict_open 'debug:missing_colon_and_name' read" +! ${VALGRIND} ./dict_open 'debug:missing_colon_and_name' read </dev/null || exit 1 + +echo ">>> dict_open 'debug:static:{space in name}' read" +${VALGRIND} ./dict_open 'debug:static:{space in name}' read <<EOF +get k +EOF + +echo ">>> dict_open 'debug:debug:static:value' read" +${VALGRIND} ./dict_open 'debug:debug:static:value' read <<EOF +get k +EOF + +echo ">>> dict_open 'debug:internal:name' write" +${VALGRIND} ./dict_open 'debug:internal:name' write <<EOF +get k +put k=v +get k +first +next +del k +get k +del k +first +EOF + +echo ">>> dict_open 'debug:fail:{oh no}' read" +${VALGRIND} ./dict_open 'debug:fail:{oh no}' read <<EOF +get k +first +EOF |
