The testext
extension exercises parts of the extension API that
are not tested by the other samples. The extension/testext.c
file contains both the C code for the extension and awk
test code inside C comments that run the tests. The testing framework
extracts the awk
code and runs the tests. See the source file
for more information.