plugins/check-xor-filt.c File Reference

This testcase builds on check-xor.c to verify that:. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dlfcn.h>
#include "mysqlfs-plugin.h"
#include <mysqlfs.h>

Include dependency graph for check-xor-filt.c:

Go to the source code of this file.

Functions

unsigned char checksum (const unsigned char *x, size_t size)
 The most trivial 8-bit checksum known to mankind.
int main (int argc, char **argv)
 Test program to check that the dummy loads; based on the example in dlopen() man page.


Detailed Description

This testcase builds on check-xor.c to verify that:.

This testcase can be used to similar test any other plugin during development.

Many of the build-up tests that this testcase does are previously verified by check-xor.c, so they are compressed into one-line maintenance nightmares to reduce the on-screen realestate. I'm not a fan typically of compressed onscreen realestate (which is why I favour my coding style, but that's a holywar): compressed code is more difficult to maintain, newer engineers and gurus alike; this is a testcase.

Definition in file check-xor-filt.c.


Function Documentation

unsigned char checksum ( const unsigned char *  x,
size_t  size 
)

The most trivial 8-bit checksum known to mankind.

Definition at line 32 of file check-xor-filt.c.

int main ( int  argc,
char **  argv 
)

Test program to check that the dummy loads; based on the example in dlopen() man page.

Definition at line 44 of file check-xor-filt.c.

References DATA_BLOCK_SIZE, and VERSION.


Generated on Sun Jul 12 20:25:27 2009 for mysqlfs by  doxygen 1.4.7