diff options
| author | beatrice <beatrice@dangofactory.net> | 2026-11-22 19:19:03 +0900 |
|---|---|---|
| committer | beatrice <beatrice@dangofactory.net> | 2026-11-22 19:19:03 +0900 |
| commit | bd4611555e18fca7c66afaef0f094e15038b0459 (patch) | |
| tree | 1b1a9109567b61ac259ead146f4bef21a0f886df /src/util/dict_debug_test.sh | |
| parent | 2324a9e97a727bf95690c9fb8fdca0f52301940e (diff) | |
| download | postfix-master.tar.gz postfix-master.zip | |
Release tarball postfix-3.11.7.tar.gz (dist-generated files / local differences from tag)HEADlocal/postfixmaster
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 |
