diff options
Diffstat (limited to 'src/regress/lib/libc/db/README')
| -rw-r--r-- | src/regress/lib/libc/db/README | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/regress/lib/libc/db/README b/src/regress/lib/libc/db/README new file mode 100644 index 0000000000..3b290b09d8 --- /dev/null +++ b/src/regress/lib/libc/db/README | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | # $NetBSD: README,v 1.4 1995/04/20 22:39:18 cgd Exp $ | ||
| 2 | # @(#)README 8.4 (Berkeley) 6/20/94 | ||
| 3 | |||
| 4 | To run the tests, enter "make regress". | ||
| 5 | |||
| 6 | Fairly large files (the command files) are built in this directory during | ||
| 7 | the test runs, and even larger files (the database files) are created in | ||
| 8 | "/var/tmp". If the latter directory doesn't exist, set the environmental | ||
| 9 | variable TMPDIR to a directory where the files can be built. | ||
| 10 | |||
| 11 | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | ||
| 12 | The script file consists of lines with a initial character which is | ||
| 13 | the "command" for that line. Legal characters are as follows: | ||
| 14 | |||
| 15 | c: compare a record | ||
| 16 | + must be followed by [kK][dD]; the data value in the database | ||
| 17 | associated with the specified key is compared to the specified | ||
| 18 | data value. | ||
| 19 | e: echo a string | ||
| 20 | + writes out the rest of the line into the output file; if the | ||
| 21 | last character is not a carriage-return, a newline is appended. | ||
| 22 | g: do a get command | ||
| 23 | + must be followed by [kK] | ||
| 24 | + writes out the retrieved data DBT. | ||
| 25 | p: do a put command | ||
| 26 | + must be followed by [kK][dD] | ||
| 27 | r: do a del command | ||
| 28 | + must be followed by [kK] | ||
| 29 | s: do a seq command | ||
| 30 | + writes out the retrieved data DBT. | ||
| 31 | f: set the flags for the next command | ||
| 32 | + no value zero's the flags | ||
| 33 | D [file]: data file | ||
| 34 | + set the current data value to the contents of the file | ||
| 35 | d [data]: | ||
| 36 | + set the current key value to the contents of the line. | ||
| 37 | K [file]: key file | ||
| 38 | + set the current key value to the contents of the file | ||
| 39 | k [data]: | ||
| 40 | + set the current key value to the contents of the line. | ||
| 41 | o [r]: dump [reverse] | ||
| 42 | + dump the database out, if 'r' is set, in reverse order. | ||
| 43 | |||
| 44 | Options to dbtest are as follows: | ||
| 45 | |||
| 46 | -f: Use the file argument as the database file. | ||
| 47 | -i: Use the rest of the argument to set elements in the info | ||
| 48 | structure. If the type is btree, then "-i cachesize=10240" | ||
| 49 | will set BTREEINFO.cachesize to 10240. | ||
| 50 | -o: The rest of the argument is the output file instead of | ||
| 51 | using stdout. | ||
| 52 | |||
| 53 | Dbtest requires two arguments, the type of access "hash", "recno" or | ||
| 54 | "btree", and the script name. | ||
