Debian Codegraph @

mysql-test/suite/ndb/t/ndb_perror.test

raw
1 --source include/have_ndb.inc
2
3 #
4 # Test ndb_perror which is a small tool used to
5 # lookup the textual description for various error
6 # codes returned from NDB and the mgmapi
7 #
8
9 --echo #
10 --echo # 1) Should print error number and error description
11 --echo # for NDB error codes like 4008
12 --exec $NDB_PERROR 4008 2>&1
13
14 --echo #
15 --echo # 1b) Should print error number and description for more
16 --echo # than one error codes
17 --exec $NDB_PERROR 4008 4009 2>&1
18
19 --echo #
20 --echo # 1c) Should print error description _only_ for
21 --echo # NDB error codes like 4008 when in silent mode
22 --exec $NDB_PERROR 4008 --silent 2>&1
23
24 --echo #
25 --echo # 3) Should print "ndbd exit string" for ndbd exit
26 --echo # code 2808
27 --exec $NDB_PERROR 2808 2>&1
28
29 --echo #
30 --echo # 4) Should print mgmapi error number and description
31 --echo # for mgmapi error number 1001
32 --exec $NDB_PERROR 1001 2>&1
33
34 --echo #
35 --echo # 5) Should print and return error for unknown error code
36 --error 1
37 --exec $NDB_PERROR 9999 2>&1
38
39 --echo #
40 --echo # 6) Should accept --ndb as argument although it's ignored
41 --echo # since it's always enabled
42 --exec $NDB_PERROR --ndb 4008 2>&1
43
44 --echo #
45 --echo # 7) Should print only the error message
46 --exec $NDB_PERROR --silent 3001 2>&1
47
48 --echo #
49 --echo # 8) Should print all
50 --exec $NDB_PERROR --verbose 4008 2>&1
51
52