xref: /netbsd-src/external/ibm-public/postfix/dist/src/postmap/file_test.in (revision f3bc92a4f25066883a5d85d66df30605583c883c)
1echo -n this-is-file1 > postmap-file-1
2echo -n this-is-file2 > postmap-file-2
3echo 'file-1 postmap-file-1' | ${VALGRIND} ./postmap -iF file_test_map || exit 1
4echo 'file-2 postmap-file-2' | ${VALGRIND} ./postmap -iF file_test_map || exit 1
5echo 'file-3 postmap-file-3' | ${VALGRIND} ./postmap -iF file_test_map || exit 1
6echo 'entry-4 postmap-entry-4' | ${VALGRIND} ./postmap -i file_test_map || exit 1
7${VALGRIND} ./postmap -s file_test_map | LC_ALL=C sort
8${VALGRIND} ./postmap -q file-1 file_test_map
9${VALGRIND} ./postmap -q file-2 file_test_map
10${VALGRIND} ./postmap -q file-3 file_test_map
11${VALGRIND} ./postmap -q entry-4 file_test_map
12${VALGRIND} ./postmap -Fs file_test_map | LC_ALL=C sort
13${VALGRIND} ./postmap -Fq file-1 file_test_map
14${VALGRIND} ./postmap -Fq file-2 file_test_map
15${VALGRIND} ./postmap -Fq file-3 file_test_map
16${VALGRIND} ./postmap -Fq entry-4 file_test_map
17exit 0
18