| 1 |
# When developing new tests, prefer using ndb_describe_table.inc |
| 2 |
# or running succinct queries from ndbinfo tables to including this file |
| 3 |
|
| 4 |
# Check ndb_desc_opts argument variable |
| 5 |
if (!$ndb_desc_opts) |
| 6 |
{ |
| 7 |
echo The variable ndb_desc_opts must be set when calling ndb_desc_print.inc; |
| 8 |
die Missing argument ndb_desc_opts; |
| 9 |
} |
| 10 |
|
| 11 |
let $ndb_desc_cmd= $NDB_DESC $ndb_desc_opts; |
| 12 |
|
| 13 |
# Uncomment the following line in order to run ndb_desc through valgrind |
| 14 |
#let $ndb_desc_cmd= valgrind -q $ndb_desc_cmd; |
| 15 |
|
| 16 |
# Use replace_regex to remove non-deterministic values from the |
| 17 |
# ndb_desc output |
| 18 |
# |
| 19 |
replace_regex /Version: [0-9]*/Version: Any/ |
| 20 |
/NDB\$BLOB_[0-9]*_/NDB$BLOB_XX_/ |
| 21 |
/Length of frm data: [0-9]*/Length of frm data: XXX/ |
| 22 |
/^[0-9]+\/[0-9]+/XX\/XX/ |
| 23 |
/IndexTable [0-9]*/IndexTable XX/ |
| 24 |
/^([0-9][0-9]*) [0-9 ]*/\1 .../ |
| 25 |
/Table id: [0-9]*/Table id: XXX/ |
| 26 |
/Tablespace id: [0-9]*/Tablespace id: XX/; |
| 27 |
--exec $ndb_desc_cmd |
| 28 |
|
| 29 |
# Reset argument variable in order to detect missing assignment |
| 30 |
let $ndb_desc_opts=; |