From ac2f5fbefc05314fcd97b03f2338b39e6efe643f Mon Sep 17 00:00:00 2001 From: John Levon Date: Sat, 7 Mar 2020 16:19:59 -0800 Subject: 12370 mdb tests should be packaged 12380 findtest needs listing in runfile Reviewed by: Andy Fiddaman Reviewed by: Robert Mustacchi Approved by: Dan McDonald --- usr/src/cmd/mdb/test/README | 18 -- usr/src/cmd/mdb/test/exit-e/err.cmdbadopt.ksh | 2 - usr/src/cmd/mdb/test/exit-e/err.enocmd.ksh | 2 - usr/src/cmd/mdb/test/exit-e/err.nowrite.ksh | 1 - usr/src/cmd/mdb/test/exit-e/err.unmapped.ksh | 1 - usr/src/cmd/mdb/test/exit-e/tst.output.ksh | 1 - usr/src/cmd/mdb/test/exit-e/tst.output.ksh.out | 1 - usr/src/cmd/mdb/test/exit-e/tst.simple.ksh | 1 - usr/src/cmd/mdb/test/format/tst.format-cap-E.mdb | 2 - .../cmd/mdb/test/format/tst.format-cap-E.mdb.out | 12 -- usr/src/cmd/mdb/test/format/tst.format-cap-G.mdb | 4 - .../cmd/mdb/test/format/tst.format-cap-G.mdb.out | 32 --- usr/src/cmd/mdb/test/format/tst.format-cap-J.mdb | 3 - .../cmd/mdb/test/format/tst.format-cap-J.mdb.out | 16 -- usr/src/cmd/mdb/test/format/tst.format-cap-P.mdb | 1 - .../cmd/mdb/test/format/tst.format-cap-P.mdb.out | 6 - usr/src/cmd/mdb/test/format/tst.format-cap-R.mdb | 4 - .../cmd/mdb/test/format/tst.format-cap-R.mdb.out | 14 -- usr/src/cmd/mdb/test/format/tst.format-e.mdb | 2 - usr/src/cmd/mdb/test/format/tst.format-e.mdb.out | 12 -- usr/src/cmd/mdb/test/format/tst.format-g.mdb | 5 - usr/src/cmd/mdb/test/format/tst.format-g.mdb.out | 40 ---- usr/src/cmd/mdb/test/format/tst.format-j.mdb | 8 - usr/src/cmd/mdb/test/format/tst.format-j.mdb.out | 238 --------------------- usr/src/cmd/mdb/test/format/tst.format-p.mdb | 1 - usr/src/cmd/mdb/test/format/tst.format-p.mdb.out | 6 - usr/src/cmd/mdb/test/mtest.sh | 235 -------------------- usr/src/cmd/mdb/test/options/tst.autowrap.mdb | 15 -- usr/src/cmd/mdb/test/options/tst.autowrap.mdb.out | 11 - usr/src/cmd/mdb/test/typedef/err.badid-leadnum.ksh | 1 - .../cmd/mdb/test/typedef/err.badid-leadschar.ksh | 1 - usr/src/cmd/mdb/test/typedef/err.badmodel.ksh | 1 - .../mdb/test/typedef/err.badstruct-extrabraces.ksh | 1 - .../mdb/test/typedef/err.badstruct-neglenarr.ksh | 1 - .../test/typedef/err.badstruct-noarrayclose.ksh | 1 - .../mdb/test/typedef/err.badstruct-noarraylen.ksh | 1 - .../mdb/test/typedef/err.badstruct-noarrayopen.ksh | 1 - .../mdb/test/typedef/err.badstruct-nobraces.ksh | 1 - .../test/typedef/err.badstruct-noclosebrace.ksh | 1 - .../mdb/test/typedef/err.badstruct-nomembers.ksh | 1 - .../mdb/test/typedef/err.badstruct-nomemname.ksh | 1 - .../mdb/test/typedef/err.badstruct-nomemsemi.ksh | 1 - .../mdb/test/typedef/err.badstruct-noopenbrace.ksh | 1 - .../mdb/test/typedef/err.badstruct-noquotes.ksh | 1 - .../mdb/test/typedef/err.badstruct-repmemname.ksh | 1 - .../cmd/mdb/test/typedef/err.badstruct-vlaonly.ksh | 1 - .../mdb/test/typedef/err.badstruct-zerolenarr.ksh | 1 - .../cmd/mdb/test/typedef/err.badunion-hasvla.ksh | 1 - usr/src/cmd/mdb/test/typedef/err.extraargs.ksh | 1 - usr/src/cmd/mdb/test/typedef/err.noargs.ksh | 1 - usr/src/cmd/mdb/test/typedef/err.nokeyword.ksh | 1 - usr/src/cmd/mdb/test/typedef/err.nomodel.ksh | 1 - usr/src/cmd/mdb/test/typedef/err.noname.ksh | 1 - usr/src/cmd/mdb/test/typedef/err.typeexists.ksh | 1 - usr/src/cmd/mdb/test/typedef/tst.anonstruct.mdb | 4 - .../cmd/mdb/test/typedef/tst.anonstruct.mdb.out | 5 - usr/src/cmd/mdb/test/typedef/tst.anonunion.mdb | 4 - usr/src/cmd/mdb/test/typedef/tst.anonunion.mdb.out | 6 - usr/src/cmd/mdb/test/typedef/tst.cleanupstruct.ksh | 22 -- usr/src/cmd/mdb/test/typedef/tst.deftypes32.mdb | 27 --- .../cmd/mdb/test/typedef/tst.deftypes32.mdb.out | 26 --- usr/src/cmd/mdb/test/typedef/tst.deftypes64.mdb | 27 --- .../cmd/mdb/test/typedef/tst.deftypes64.mdb.out | 26 --- usr/src/cmd/mdb/test/typedef/tst.dellist.mdb | 3 - usr/src/cmd/mdb/test/typedef/tst.emptylist.mdb | 1 - usr/src/cmd/mdb/test/typedef/tst.libctype.ksh | 6 - usr/src/cmd/mdb/test/typedef/tst.libctype.ksh.out | 4 - usr/src/cmd/mdb/test/typedef/tst.models.ksh | 11 - usr/src/cmd/mdb/test/typedef/tst.struct.mdb | 6 - usr/src/cmd/mdb/test/typedef/tst.struct.mdb.out | 10 - usr/src/cmd/mdb/test/typedef/tst.structselfref.mdb | 4 - .../cmd/mdb/test/typedef/tst.structselfref.mdb.out | 5 - usr/src/cmd/mdb/test/typedef/tst.structvla.mdb | 4 - usr/src/cmd/mdb/test/typedef/tst.structvla.mdb.out | 6 - usr/src/cmd/mdb/test/typedef/tst.union.mdb | 6 - usr/src/cmd/mdb/test/typedef/tst.union.mdb.out | 12 -- usr/src/pkg/manifests/system-test-utiltest.mf | 94 ++++++++ usr/src/test/util-tests/runfiles/default.run | 6 +- usr/src/test/util-tests/tests/Makefile | 2 +- usr/src/test/util-tests/tests/mdb/Makefile | 127 +++++++++++ usr/src/test/util-tests/tests/mdb/README | 18 ++ .../util-tests/tests/mdb/exit-e/err.cmdbadopt.ksh | 2 + .../util-tests/tests/mdb/exit-e/err.enocmd.ksh | 2 + .../util-tests/tests/mdb/exit-e/err.nowrite.ksh | 1 + .../util-tests/tests/mdb/exit-e/err.unmapped.ksh | 1 + .../util-tests/tests/mdb/exit-e/tst.output.ksh | 1 + .../util-tests/tests/mdb/exit-e/tst.output.ksh.out | 1 + .../util-tests/tests/mdb/exit-e/tst.simple.ksh | 1 + .../tests/mdb/format/tst.format-cap-E.mdb | 2 + .../tests/mdb/format/tst.format-cap-E.mdb.out | 12 ++ .../tests/mdb/format/tst.format-cap-G.mdb | 4 + .../tests/mdb/format/tst.format-cap-G.mdb.out | 32 +++ .../tests/mdb/format/tst.format-cap-J.mdb | 3 + .../tests/mdb/format/tst.format-cap-J.mdb.out | 16 ++ .../tests/mdb/format/tst.format-cap-P.mdb | 1 + .../tests/mdb/format/tst.format-cap-P.mdb.out | 6 + .../tests/mdb/format/tst.format-cap-R.mdb | 4 + .../tests/mdb/format/tst.format-cap-R.mdb.out | 14 ++ .../util-tests/tests/mdb/format/tst.format-e.mdb | 2 + .../tests/mdb/format/tst.format-e.mdb.out | 12 ++ .../util-tests/tests/mdb/format/tst.format-g.mdb | 5 + .../tests/mdb/format/tst.format-g.mdb.out | 40 ++++ .../util-tests/tests/mdb/format/tst.format-j.mdb | 8 + .../tests/mdb/format/tst.format-j.mdb.out | 238 +++++++++++++++++++++ .../util-tests/tests/mdb/format/tst.format-p.mdb | 1 + .../tests/mdb/format/tst.format-p.mdb.out | 6 + usr/src/test/util-tests/tests/mdb/mdbtest | 231 ++++++++++++++++++++ .../util-tests/tests/mdb/options/tst.autowrap.mdb | 15 ++ .../tests/mdb/options/tst.autowrap.mdb.out | 11 + .../tests/mdb/typedef/err.badid-leadnum.ksh | 1 + .../tests/mdb/typedef/err.badid-leadschar.ksh | 1 + .../util-tests/tests/mdb/typedef/err.badmodel.ksh | 1 + .../mdb/typedef/err.badstruct-extrabraces.ksh | 1 + .../tests/mdb/typedef/err.badstruct-neglenarr.ksh | 1 + .../mdb/typedef/err.badstruct-noarrayclose.ksh | 1 + .../tests/mdb/typedef/err.badstruct-noarraylen.ksh | 1 + .../mdb/typedef/err.badstruct-noarrayopen.ksh | 1 + .../tests/mdb/typedef/err.badstruct-nobraces.ksh | 1 + .../mdb/typedef/err.badstruct-noclosebrace.ksh | 1 + .../tests/mdb/typedef/err.badstruct-nomembers.ksh | 1 + .../tests/mdb/typedef/err.badstruct-nomemname.ksh | 1 + .../tests/mdb/typedef/err.badstruct-nomemsemi.ksh | 1 + .../mdb/typedef/err.badstruct-noopenbrace.ksh | 1 + .../tests/mdb/typedef/err.badstruct-noquotes.ksh | 1 + .../tests/mdb/typedef/err.badstruct-repmemname.ksh | 1 + .../tests/mdb/typedef/err.badstruct-vlaonly.ksh | 1 + .../tests/mdb/typedef/err.badstruct-zerolenarr.ksh | 1 + .../tests/mdb/typedef/err.badunion-hasvla.ksh | 1 + .../util-tests/tests/mdb/typedef/err.extraargs.ksh | 1 + .../util-tests/tests/mdb/typedef/err.noargs.ksh | 1 + .../util-tests/tests/mdb/typedef/err.nokeyword.ksh | 1 + .../util-tests/tests/mdb/typedef/err.nomodel.ksh | 1 + .../util-tests/tests/mdb/typedef/err.noname.ksh | 1 + .../tests/mdb/typedef/err.typeexists.ksh | 1 + .../tests/mdb/typedef/tst.anonstruct.mdb | 4 + .../tests/mdb/typedef/tst.anonstruct.mdb.out | 5 + .../util-tests/tests/mdb/typedef/tst.anonunion.mdb | 4 + .../tests/mdb/typedef/tst.anonunion.mdb.out | 6 + .../tests/mdb/typedef/tst.cleanupstruct.ksh | 22 ++ .../tests/mdb/typedef/tst.deftypes32.mdb | 27 +++ .../tests/mdb/typedef/tst.deftypes32.mdb.out | 26 +++ .../tests/mdb/typedef/tst.deftypes64.mdb | 27 +++ .../tests/mdb/typedef/tst.deftypes64.mdb.out | 26 +++ .../util-tests/tests/mdb/typedef/tst.dellist.mdb | 3 + .../util-tests/tests/mdb/typedef/tst.emptylist.mdb | 1 + .../util-tests/tests/mdb/typedef/tst.libctype.ksh | 6 + .../tests/mdb/typedef/tst.libctype.ksh.out | 4 + .../util-tests/tests/mdb/typedef/tst.models.ksh | 11 + .../util-tests/tests/mdb/typedef/tst.struct.mdb | 6 + .../tests/mdb/typedef/tst.struct.mdb.out | 10 + .../tests/mdb/typedef/tst.structselfref.mdb | 4 + .../tests/mdb/typedef/tst.structselfref.mdb.out | 5 + .../util-tests/tests/mdb/typedef/tst.structvla.mdb | 4 + .../tests/mdb/typedef/tst.structvla.mdb.out | 6 + .../util-tests/tests/mdb/typedef/tst.union.mdb | 6 + .../util-tests/tests/mdb/typedef/tst.union.mdb.out | 12 ++ usr/src/tools/findunref/exception_list.open | 2 +- 157 files changed, 1168 insertions(+), 947 deletions(-) delete mode 100644 usr/src/cmd/mdb/test/README delete mode 100644 usr/src/cmd/mdb/test/exit-e/err.cmdbadopt.ksh delete mode 100644 usr/src/cmd/mdb/test/exit-e/err.enocmd.ksh delete mode 100644 usr/src/cmd/mdb/test/exit-e/err.nowrite.ksh delete mode 100644 usr/src/cmd/mdb/test/exit-e/err.unmapped.ksh delete mode 100644 usr/src/cmd/mdb/test/exit-e/tst.output.ksh delete mode 100644 usr/src/cmd/mdb/test/exit-e/tst.output.ksh.out delete mode 100644 usr/src/cmd/mdb/test/exit-e/tst.simple.ksh delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-cap-E.mdb delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-cap-E.mdb.out delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-cap-G.mdb delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-cap-G.mdb.out delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-cap-J.mdb delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-cap-J.mdb.out delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-cap-P.mdb delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-cap-P.mdb.out delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-cap-R.mdb delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-cap-R.mdb.out delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-e.mdb delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-e.mdb.out delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-g.mdb delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-g.mdb.out delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-j.mdb delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-j.mdb.out delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-p.mdb delete mode 100644 usr/src/cmd/mdb/test/format/tst.format-p.mdb.out delete mode 100644 usr/src/cmd/mdb/test/mtest.sh delete mode 100644 usr/src/cmd/mdb/test/options/tst.autowrap.mdb delete mode 100644 usr/src/cmd/mdb/test/options/tst.autowrap.mdb.out delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badid-leadnum.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badid-leadschar.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badmodel.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badstruct-extrabraces.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badstruct-neglenarr.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badstruct-noarrayclose.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badstruct-noarraylen.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badstruct-noarrayopen.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badstruct-nobraces.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badstruct-noclosebrace.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badstruct-nomembers.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badstruct-nomemname.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badstruct-nomemsemi.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badstruct-noopenbrace.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badstruct-noquotes.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badstruct-repmemname.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badstruct-vlaonly.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badstruct-zerolenarr.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.badunion-hasvla.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.extraargs.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.noargs.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.nokeyword.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.nomodel.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.noname.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/err.typeexists.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.anonstruct.mdb delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.anonstruct.mdb.out delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.anonunion.mdb delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.anonunion.mdb.out delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.cleanupstruct.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.deftypes32.mdb delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.deftypes32.mdb.out delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.deftypes64.mdb delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.deftypes64.mdb.out delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.dellist.mdb delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.emptylist.mdb delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.libctype.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.libctype.ksh.out delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.models.ksh delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.struct.mdb delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.struct.mdb.out delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.structselfref.mdb delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.structselfref.mdb.out delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.structvla.mdb delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.structvla.mdb.out delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.union.mdb delete mode 100644 usr/src/cmd/mdb/test/typedef/tst.union.mdb.out create mode 100644 usr/src/test/util-tests/tests/mdb/Makefile create mode 100644 usr/src/test/util-tests/tests/mdb/README create mode 100644 usr/src/test/util-tests/tests/mdb/exit-e/err.cmdbadopt.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/exit-e/err.enocmd.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/exit-e/err.nowrite.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/exit-e/err.unmapped.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/exit-e/tst.output.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/exit-e/tst.output.ksh.out create mode 100644 usr/src/test/util-tests/tests/mdb/exit-e/tst.simple.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-cap-E.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-cap-E.mdb.out create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-cap-G.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-cap-G.mdb.out create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-cap-J.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-cap-J.mdb.out create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-cap-P.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-cap-P.mdb.out create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-cap-R.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-cap-R.mdb.out create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-e.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-e.mdb.out create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-g.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-g.mdb.out create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-j.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-j.mdb.out create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-p.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/format/tst.format-p.mdb.out create mode 100755 usr/src/test/util-tests/tests/mdb/mdbtest create mode 100644 usr/src/test/util-tests/tests/mdb/options/tst.autowrap.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/options/tst.autowrap.mdb.out create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badid-leadnum.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badid-leadschar.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badmodel.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badstruct-extrabraces.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badstruct-neglenarr.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badstruct-noarrayclose.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badstruct-noarraylen.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badstruct-noarrayopen.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badstruct-nobraces.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badstruct-noclosebrace.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badstruct-nomembers.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badstruct-nomemname.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badstruct-nomemsemi.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badstruct-noopenbrace.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badstruct-noquotes.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badstruct-repmemname.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badstruct-vlaonly.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badstruct-zerolenarr.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.badunion-hasvla.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.extraargs.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.noargs.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.nokeyword.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.nomodel.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.noname.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/err.typeexists.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.anonstruct.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.anonstruct.mdb.out create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.anonunion.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.anonunion.mdb.out create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.cleanupstruct.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.deftypes32.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.deftypes32.mdb.out create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.deftypes64.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.deftypes64.mdb.out create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.dellist.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.emptylist.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.libctype.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.libctype.ksh.out create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.models.ksh create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.struct.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.struct.mdb.out create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.structselfref.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.structselfref.mdb.out create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.structvla.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.structvla.mdb.out create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.union.mdb create mode 100644 usr/src/test/util-tests/tests/mdb/typedef/tst.union.mdb.out diff --git a/usr/src/cmd/mdb/test/README b/usr/src/cmd/mdb/test/README deleted file mode 100644 index 28127e5916..0000000000 --- a/usr/src/cmd/mdb/test/README +++ /dev/null @@ -1,18 +0,0 @@ -MDB Test suite - -This provides a primordial version of a test suite for mdb. To run the tests, -run mtest. Tests exist in various subdirectories. The name of the test is -important. - -A test must start with either: - - o tst - Indicating that it should exit zero - o err - Indicating that it should exit non-zero - -A test must end with either: - - o mdb - Indicating that the file should be passed as standard input to mdb - o ksh - Indicating that it should be run with ksh - -A test may have an optional .out file which if present indicates that the test -should pass if and only if its standard ouput matches its standar error. diff --git a/usr/src/cmd/mdb/test/exit-e/err.cmdbadopt.ksh b/usr/src/cmd/mdb/test/exit-e/err.cmdbadopt.ksh deleted file mode 100644 index de50faeb01..0000000000 --- a/usr/src/cmd/mdb/test/exit-e/err.cmdbadopt.ksh +++ /dev/null @@ -1,2 +0,0 @@ -$MDB -e '::typegraph' -exit $? diff --git a/usr/src/cmd/mdb/test/exit-e/err.enocmd.ksh b/usr/src/cmd/mdb/test/exit-e/err.enocmd.ksh deleted file mode 100644 index 038f121b26..0000000000 --- a/usr/src/cmd/mdb/test/exit-e/err.enocmd.ksh +++ /dev/null @@ -1,2 +0,0 @@ -$MDB -e '::commandthatdoesnotexist' -exit $? diff --git a/usr/src/cmd/mdb/test/exit-e/err.nowrite.ksh b/usr/src/cmd/mdb/test/exit-e/err.nowrite.ksh deleted file mode 100644 index 8f0fda2253..0000000000 --- a/usr/src/cmd/mdb/test/exit-e/err.nowrite.ksh +++ /dev/null @@ -1 +0,0 @@ -$MDB -e '0xbaddcafe/v 0x02' diff --git a/usr/src/cmd/mdb/test/exit-e/err.unmapped.ksh b/usr/src/cmd/mdb/test/exit-e/err.unmapped.ksh deleted file mode 100644 index 874283f186..0000000000 --- a/usr/src/cmd/mdb/test/exit-e/err.unmapped.ksh +++ /dev/null @@ -1 +0,0 @@ -$MDB -e '0x0/v 0x02' /bin/ls diff --git a/usr/src/cmd/mdb/test/exit-e/tst.output.ksh b/usr/src/cmd/mdb/test/exit-e/tst.output.ksh deleted file mode 100644 index 13b5db072d..0000000000 --- a/usr/src/cmd/mdb/test/exit-e/tst.output.ksh +++ /dev/null @@ -1 +0,0 @@ -$MDB -e '0t2 << 0t10=K' diff --git a/usr/src/cmd/mdb/test/exit-e/tst.output.ksh.out b/usr/src/cmd/mdb/test/exit-e/tst.output.ksh.out deleted file mode 100644 index 7a38ab6e65..0000000000 --- a/usr/src/cmd/mdb/test/exit-e/tst.output.ksh.out +++ /dev/null @@ -1 +0,0 @@ - 800 diff --git a/usr/src/cmd/mdb/test/exit-e/tst.simple.ksh b/usr/src/cmd/mdb/test/exit-e/tst.simple.ksh deleted file mode 100644 index 4c8a3c58ad..0000000000 --- a/usr/src/cmd/mdb/test/exit-e/tst.simple.ksh +++ /dev/null @@ -1 +0,0 @@ -$MDB -e '::dcmds' diff --git a/usr/src/cmd/mdb/test/format/tst.format-cap-E.mdb b/usr/src/cmd/mdb/test/format/tst.format-cap-E.mdb deleted file mode 100644 index 18e9053ce4..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-cap-E.mdb +++ /dev/null @@ -1,2 +0,0 @@ --1,10=E -1<<0t63,10=E diff --git a/usr/src/cmd/mdb/test/format/tst.format-cap-E.mdb.out b/usr/src/cmd/mdb/test/format/tst.format-cap-E.mdb.out deleted file mode 100644 index 2268a48be9..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-cap-E.mdb.out +++ /dev/null @@ -1,12 +0,0 @@ - 18446744073709551615 18446744073709551615 18446744073709551615 - 18446744073709551615 18446744073709551615 18446744073709551615 - 18446744073709551615 18446744073709551615 18446744073709551615 - 18446744073709551615 18446744073709551615 18446744073709551615 - 18446744073709551615 18446744073709551615 18446744073709551615 - 18446744073709551615 - 9223372036854775808 9223372036854775808 9223372036854775808 - 9223372036854775808 9223372036854775808 9223372036854775808 - 9223372036854775808 9223372036854775808 9223372036854775808 - 9223372036854775808 9223372036854775808 9223372036854775808 - 9223372036854775808 9223372036854775808 9223372036854775808 - 9223372036854775808 diff --git a/usr/src/cmd/mdb/test/format/tst.format-cap-G.mdb b/usr/src/cmd/mdb/test/format/tst.format-cap-G.mdb deleted file mode 100644 index f10f78336b..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-cap-G.mdb +++ /dev/null @@ -1,4 +0,0 @@ --1,10=G -1<<0t63,10=G -1<<0t60,10=G -1<<0t57,10=G diff --git a/usr/src/cmd/mdb/test/format/tst.format-cap-G.mdb.out b/usr/src/cmd/mdb/test/format/tst.format-cap-G.mdb.out deleted file mode 100644 index f1dfd5193b..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-cap-G.mdb.out +++ /dev/null @@ -1,32 +0,0 @@ - 1777777777777777777777 1777777777777777777777 - 1777777777777777777777 1777777777777777777777 - 1777777777777777777777 1777777777777777777777 - 1777777777777777777777 1777777777777777777777 - 1777777777777777777777 1777777777777777777777 - 1777777777777777777777 1777777777777777777777 - 1777777777777777777777 1777777777777777777777 - 1777777777777777777777 1777777777777777777777 - 1000000000000000000000 1000000000000000000000 - 1000000000000000000000 1000000000000000000000 - 1000000000000000000000 1000000000000000000000 - 1000000000000000000000 1000000000000000000000 - 1000000000000000000000 1000000000000000000000 - 1000000000000000000000 1000000000000000000000 - 1000000000000000000000 1000000000000000000000 - 1000000000000000000000 1000000000000000000000 - 100000000000000000000 100000000000000000000 - 100000000000000000000 100000000000000000000 - 100000000000000000000 100000000000000000000 - 100000000000000000000 100000000000000000000 - 100000000000000000000 100000000000000000000 - 100000000000000000000 100000000000000000000 - 100000000000000000000 100000000000000000000 - 100000000000000000000 100000000000000000000 - 10000000000000000000 10000000000000000000 - 10000000000000000000 10000000000000000000 - 10000000000000000000 10000000000000000000 - 10000000000000000000 10000000000000000000 - 10000000000000000000 10000000000000000000 - 10000000000000000000 10000000000000000000 - 10000000000000000000 10000000000000000000 - 10000000000000000000 10000000000000000000 diff --git a/usr/src/cmd/mdb/test/format/tst.format-cap-J.mdb b/usr/src/cmd/mdb/test/format/tst.format-cap-J.mdb deleted file mode 100644 index ff9dabbce9..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-cap-J.mdb +++ /dev/null @@ -1,3 +0,0 @@ --1,10=J -1<<0t63,10=J -1<<0t59,10=J diff --git a/usr/src/cmd/mdb/test/format/tst.format-cap-J.mdb.out b/usr/src/cmd/mdb/test/format/tst.format-cap-J.mdb.out deleted file mode 100644 index 644fee231e..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-cap-J.mdb.out +++ /dev/null @@ -1,16 +0,0 @@ - ffffffffffffffff ffffffffffffffff ffffffffffffffff - ffffffffffffffff ffffffffffffffff ffffffffffffffff - ffffffffffffffff ffffffffffffffff ffffffffffffffff - ffffffffffffffff ffffffffffffffff ffffffffffffffff - ffffffffffffffff ffffffffffffffff ffffffffffffffff - ffffffffffffffff - 8000000000000000 8000000000000000 8000000000000000 - 8000000000000000 8000000000000000 8000000000000000 - 8000000000000000 8000000000000000 8000000000000000 - 8000000000000000 8000000000000000 8000000000000000 - 8000000000000000 8000000000000000 8000000000000000 - 8000000000000000 - 800000000000000 800000000000000 800000000000000 800000000000000 - 800000000000000 800000000000000 800000000000000 800000000000000 - 800000000000000 800000000000000 800000000000000 800000000000000 - 800000000000000 800000000000000 800000000000000 800000000000000 diff --git a/usr/src/cmd/mdb/test/format/tst.format-cap-P.mdb b/usr/src/cmd/mdb/test/format/tst.format-cap-P.mdb deleted file mode 100644 index 88928fda29..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-cap-P.mdb +++ /dev/null @@ -1 +0,0 @@ -1<<0t63,10=P diff --git a/usr/src/cmd/mdb/test/format/tst.format-cap-P.mdb.out b/usr/src/cmd/mdb/test/format/tst.format-cap-P.mdb.out deleted file mode 100644 index 65e05e7220..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-cap-P.mdb.out +++ /dev/null @@ -1,6 +0,0 @@ - 0x8000000000000000 0x8000000000000000 0x8000000000000000 - 0x8000000000000000 0x8000000000000000 0x8000000000000000 - 0x8000000000000000 0x8000000000000000 0x8000000000000000 - 0x8000000000000000 0x8000000000000000 0x8000000000000000 - 0x8000000000000000 0x8000000000000000 0x8000000000000000 - 0x8000000000000000 diff --git a/usr/src/cmd/mdb/test/format/tst.format-cap-R.mdb b/usr/src/cmd/mdb/test/format/tst.format-cap-R.mdb deleted file mode 100644 index 9f55408276..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-cap-R.mdb +++ /dev/null @@ -1,4 +0,0 @@ -1=RRRR -1<<0t62=RRR -1<<0t63=RRR --1=RRRR diff --git a/usr/src/cmd/mdb/test/format/tst.format-cap-R.mdb.out b/usr/src/cmd/mdb/test/format/tst.format-cap-R.mdb.out deleted file mode 100644 index f05b0bac4d..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-cap-R.mdb.out +++ /dev/null @@ -1,14 +0,0 @@ - 1 - 1 - 1 - 1 - 100000000000000000000000000000000000000000000000000000000000000 - 100000000000000000000000000000000000000000000000000000000000000 - 100000000000000000000000000000000000000000000000000000000000000 - 1000000000000000000000000000000000000000000000000000000000000000 - 1000000000000000000000000000000000000000000000000000000000000000 - 1000000000000000000000000000000000000000000000000000000000000000 - 1111111111111111111111111111111111111111111111111111111111111111 - 1111111111111111111111111111111111111111111111111111111111111111 - 1111111111111111111111111111111111111111111111111111111111111111 - 1111111111111111111111111111111111111111111111111111111111111111 diff --git a/usr/src/cmd/mdb/test/format/tst.format-e.mdb b/usr/src/cmd/mdb/test/format/tst.format-e.mdb deleted file mode 100644 index 79d4b25af4..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-e.mdb +++ /dev/null @@ -1,2 +0,0 @@ --1,10=e -1<<0t63,10=e diff --git a/usr/src/cmd/mdb/test/format/tst.format-e.mdb.out b/usr/src/cmd/mdb/test/format/tst.format-e.mdb.out deleted file mode 100644 index 909c53cbc0..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-e.mdb.out +++ /dev/null @@ -1,12 +0,0 @@ - -1 -1 -1 - -1 -1 -1 - -1 -1 -1 - -1 -1 -1 - -1 -1 -1 - -1 - -9223372036854775808 -9223372036854775808 -9223372036854775808 - -9223372036854775808 -9223372036854775808 -9223372036854775808 - -9223372036854775808 -9223372036854775808 -9223372036854775808 - -9223372036854775808 -9223372036854775808 -9223372036854775808 - -9223372036854775808 -9223372036854775808 -9223372036854775808 - -9223372036854775808 diff --git a/usr/src/cmd/mdb/test/format/tst.format-g.mdb b/usr/src/cmd/mdb/test/format/tst.format-g.mdb deleted file mode 100644 index b3397d21ed..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-g.mdb +++ /dev/null @@ -1,5 +0,0 @@ --1,10=g -1<<0t63,10=g -(1<<0t63)-1,10=g -1<<0t60,10=g -1<<0t57,10=g diff --git a/usr/src/cmd/mdb/test/format/tst.format-g.mdb.out b/usr/src/cmd/mdb/test/format/tst.format-g.mdb.out deleted file mode 100644 index c46dff3594..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-g.mdb.out +++ /dev/null @@ -1,40 +0,0 @@ - -1 -1 - -1 -1 - -1 -1 - -1 -1 - -1 -1 - -1 -1 - -1 -1 - -1 -1 - -1000000000000000000000 -1000000000000000000000 - -1000000000000000000000 -1000000000000000000000 - -1000000000000000000000 -1000000000000000000000 - -1000000000000000000000 -1000000000000000000000 - -1000000000000000000000 -1000000000000000000000 - -1000000000000000000000 -1000000000000000000000 - -1000000000000000000000 -1000000000000000000000 - -1000000000000000000000 -1000000000000000000000 - 777777777777777777777 777777777777777777777 - 777777777777777777777 777777777777777777777 - 777777777777777777777 777777777777777777777 - 777777777777777777777 777777777777777777777 - 777777777777777777777 777777777777777777777 - 777777777777777777777 777777777777777777777 - 777777777777777777777 777777777777777777777 - 777777777777777777777 777777777777777777777 - 100000000000000000000 100000000000000000000 - 100000000000000000000 100000000000000000000 - 100000000000000000000 100000000000000000000 - 100000000000000000000 100000000000000000000 - 100000000000000000000 100000000000000000000 - 100000000000000000000 100000000000000000000 - 100000000000000000000 100000000000000000000 - 100000000000000000000 100000000000000000000 - 10000000000000000000 10000000000000000000 - 10000000000000000000 10000000000000000000 - 10000000000000000000 10000000000000000000 - 10000000000000000000 10000000000000000000 - 10000000000000000000 10000000000000000000 - 10000000000000000000 10000000000000000000 - 10000000000000000000 10000000000000000000 - 10000000000000000000 10000000000000000000 diff --git a/usr/src/cmd/mdb/test/format/tst.format-j.mdb b/usr/src/cmd/mdb/test/format/tst.format-j.mdb deleted file mode 100644 index 875a1e178f..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-j.mdb +++ /dev/null @@ -1,8 +0,0 @@ --1=JRjnn -0=JRjnn -1=JRjnn -feedface=JRjnn -badfeedcafe=JRjnn -deadba11e12a=JRjnn -badb100d=JRjnn -baddefec8ed=JRjnn diff --git a/usr/src/cmd/mdb/test/format/tst.format-j.mdb.out b/usr/src/cmd/mdb/test/format/tst.format-j.mdb.out deleted file mode 100644 index 3f5fa0afaf..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-j.mdb.out +++ /dev/null @@ -1,238 +0,0 @@ - ffffffffffffffff - 1111111111111111111111111111111111111111111111111111111111111111 - 1111111111111111111111111111111111111111111111111111111111111111 - |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| - |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+-- bit 0 mask 0x0000000000000001 - ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+--- bit 1 mask 0x0000000000000002 - |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+---- bit 2 mask 0x0000000000000004 - ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+----- bit 3 mask 0x0000000000000008 - |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+------ bit 4 mask 0x0000000000000010 - ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+------- bit 5 mask 0x0000000000000020 - |||||||||||||||||||||||||||||||||||||||||||||||||||||||||+-------- bit 6 mask 0x0000000000000040 - ||||||||||||||||||||||||||||||||||||||||||||||||||||||||+--------- bit 7 mask 0x0000000000000080 - |||||||||||||||||||||||||||||||||||||||||||||||||||||||+---------- bit 8 mask 0x0000000000000100 - ||||||||||||||||||||||||||||||||||||||||||||||||||||||+----------- bit 9 mask 0x0000000000000200 - |||||||||||||||||||||||||||||||||||||||||||||||||||||+------------ bit 10 mask 0x0000000000000400 - ||||||||||||||||||||||||||||||||||||||||||||||||||||+------------- bit 11 mask 0x0000000000000800 - |||||||||||||||||||||||||||||||||||||||||||||||||||+-------------- bit 12 mask 0x0000000000001000 - ||||||||||||||||||||||||||||||||||||||||||||||||||+--------------- bit 13 mask 0x0000000000002000 - |||||||||||||||||||||||||||||||||||||||||||||||||+---------------- bit 14 mask 0x0000000000004000 - ||||||||||||||||||||||||||||||||||||||||||||||||+----------------- bit 15 mask 0x0000000000008000 - |||||||||||||||||||||||||||||||||||||||||||||||+------------------ bit 16 mask 0x0000000000010000 - ||||||||||||||||||||||||||||||||||||||||||||||+------------------- bit 17 mask 0x0000000000020000 - |||||||||||||||||||||||||||||||||||||||||||||+-------------------- bit 18 mask 0x0000000000040000 - ||||||||||||||||||||||||||||||||||||||||||||+--------------------- bit 19 mask 0x0000000000080000 - |||||||||||||||||||||||||||||||||||||||||||+---------------------- bit 20 mask 0x0000000000100000 - ||||||||||||||||||||||||||||||||||||||||||+----------------------- bit 21 mask 0x0000000000200000 - |||||||||||||||||||||||||||||||||||||||||+------------------------ bit 22 mask 0x0000000000400000 - ||||||||||||||||||||||||||||||||||||||||+------------------------- bit 23 mask 0x0000000000800000 - |||||||||||||||||||||||||||||||||||||||+-------------------------- bit 24 mask 0x0000000001000000 - ||||||||||||||||||||||||||||||||||||||+--------------------------- bit 25 mask 0x0000000002000000 - |||||||||||||||||||||||||||||||||||||+---------------------------- bit 26 mask 0x0000000004000000 - ||||||||||||||||||||||||||||||||||||+----------------------------- bit 27 mask 0x0000000008000000 - |||||||||||||||||||||||||||||||||||+------------------------------ bit 28 mask 0x0000000010000000 - ||||||||||||||||||||||||||||||||||+------------------------------- bit 29 mask 0x0000000020000000 - |||||||||||||||||||||||||||||||||+-------------------------------- bit 30 mask 0x0000000040000000 - ||||||||||||||||||||||||||||||||+--------------------------------- bit 31 mask 0x0000000080000000 - |||||||||||||||||||||||||||||||+---------------------------------- bit 32 mask 0x0000000100000000 - ||||||||||||||||||||||||||||||+----------------------------------- bit 33 mask 0x0000000200000000 - |||||||||||||||||||||||||||||+------------------------------------ bit 34 mask 0x0000000400000000 - ||||||||||||||||||||||||||||+------------------------------------- bit 35 mask 0x0000000800000000 - |||||||||||||||||||||||||||+-------------------------------------- bit 36 mask 0x0000001000000000 - ||||||||||||||||||||||||||+--------------------------------------- bit 37 mask 0x0000002000000000 - |||||||||||||||||||||||||+---------------------------------------- bit 38 mask 0x0000004000000000 - ||||||||||||||||||||||||+----------------------------------------- bit 39 mask 0x0000008000000000 - |||||||||||||||||||||||+------------------------------------------ bit 40 mask 0x0000010000000000 - ||||||||||||||||||||||+------------------------------------------- bit 41 mask 0x0000020000000000 - |||||||||||||||||||||+-------------------------------------------- bit 42 mask 0x0000040000000000 - ||||||||||||||||||||+--------------------------------------------- bit 43 mask 0x0000080000000000 - |||||||||||||||||||+---------------------------------------------- bit 44 mask 0x0000100000000000 - ||||||||||||||||||+----------------------------------------------- bit 45 mask 0x0000200000000000 - |||||||||||||||||+------------------------------------------------ bit 46 mask 0x0000400000000000 - ||||||||||||||||+------------------------------------------------- bit 47 mask 0x0000800000000000 - |||||||||||||||+-------------------------------------------------- bit 48 mask 0x0001000000000000 - ||||||||||||||+--------------------------------------------------- bit 49 mask 0x0002000000000000 - |||||||||||||+---------------------------------------------------- bit 50 mask 0x0004000000000000 - ||||||||||||+----------------------------------------------------- bit 51 mask 0x0008000000000000 - |||||||||||+------------------------------------------------------ bit 52 mask 0x0010000000000000 - ||||||||||+------------------------------------------------------- bit 53 mask 0x0020000000000000 - |||||||||+-------------------------------------------------------- bit 54 mask 0x0040000000000000 - ||||||||+--------------------------------------------------------- bit 55 mask 0x0080000000000000 - |||||||+---------------------------------------------------------- bit 56 mask 0x0100000000000000 - ||||||+----------------------------------------------------------- bit 57 mask 0x0200000000000000 - |||||+------------------------------------------------------------ bit 58 mask 0x0400000000000000 - ||||+------------------------------------------------------------- bit 59 mask 0x0800000000000000 - |||+-------------------------------------------------------------- bit 60 mask 0x1000000000000000 - ||+--------------------------------------------------------------- bit 61 mask 0x2000000000000000 - |+---------------------------------------------------------------- bit 62 mask 0x4000000000000000 - +----------------------------------------------------------------- bit 63 mask 0x8000000000000000 - - - 0 - 0 - 0 - - - 1 - 1 - 1 - | - +-- bit 0 mask 0x1 - - - feedface - 11111110111011011111101011001110 - 11111110111011011111101011001110 - ||||||| ||| || |||||| | || ||| - ||||||| ||| || |||||| | || ||+--- bit 1 mask 0x00000002 - ||||||| ||| || |||||| | || |+---- bit 2 mask 0x00000004 - ||||||| ||| || |||||| | || +----- bit 3 mask 0x00000008 - ||||||| ||| || |||||| | |+-------- bit 6 mask 0x00000040 - ||||||| ||| || |||||| | +--------- bit 7 mask 0x00000080 - ||||||| ||| || |||||| +----------- bit 9 mask 0x00000200 - ||||||| ||| || |||||+------------- bit 11 mask 0x00000800 - ||||||| ||| || ||||+-------------- bit 12 mask 0x00001000 - ||||||| ||| || |||+--------------- bit 13 mask 0x00002000 - ||||||| ||| || ||+---------------- bit 14 mask 0x00004000 - ||||||| ||| || |+----------------- bit 15 mask 0x00008000 - ||||||| ||| || +------------------ bit 16 mask 0x00010000 - ||||||| ||| |+-------------------- bit 18 mask 0x00040000 - ||||||| ||| +--------------------- bit 19 mask 0x00080000 - ||||||| ||+----------------------- bit 21 mask 0x00200000 - ||||||| |+------------------------ bit 22 mask 0x00400000 - ||||||| +------------------------- bit 23 mask 0x00800000 - ||||||+--------------------------- bit 25 mask 0x02000000 - |||||+---------------------------- bit 26 mask 0x04000000 - ||||+----------------------------- bit 27 mask 0x08000000 - |||+------------------------------ bit 28 mask 0x10000000 - ||+------------------------------- bit 29 mask 0x20000000 - |+-------------------------------- bit 30 mask 0x40000000 - +--------------------------------- bit 31 mask 0x80000000 - - - badfeedcafe - 10111010110111111110111011011100101011111110 - 10111010110111111110111011011100101011111110 - | ||| | || |||||||| ||| || ||| | | ||||||| - | ||| | || |||||||| ||| || ||| | | ||||||+--- bit 1 mask 0x00000000002 - | ||| | || |||||||| ||| || ||| | | |||||+---- bit 2 mask 0x00000000004 - | ||| | || |||||||| ||| || ||| | | ||||+----- bit 3 mask 0x00000000008 - | ||| | || |||||||| ||| || ||| | | |||+------ bit 4 mask 0x00000000010 - | ||| | || |||||||| ||| || ||| | | ||+------- bit 5 mask 0x00000000020 - | ||| | || |||||||| ||| || ||| | | |+-------- bit 6 mask 0x00000000040 - | ||| | || |||||||| ||| || ||| | | +--------- bit 7 mask 0x00000000080 - | ||| | || |||||||| ||| || ||| | +----------- bit 9 mask 0x00000000200 - | ||| | || |||||||| ||| || ||| +------------- bit 11 mask 0x00000000800 - | ||| | || |||||||| ||| || ||+---------------- bit 14 mask 0x00000004000 - | ||| | || |||||||| ||| || |+----------------- bit 15 mask 0x00000008000 - | ||| | || |||||||| ||| || +------------------ bit 16 mask 0x00000010000 - | ||| | || |||||||| ||| |+-------------------- bit 18 mask 0x00000040000 - | ||| | || |||||||| ||| +--------------------- bit 19 mask 0x00000080000 - | ||| | || |||||||| ||+----------------------- bit 21 mask 0x00000200000 - | ||| | || |||||||| |+------------------------ bit 22 mask 0x00000400000 - | ||| | || |||||||| +------------------------- bit 23 mask 0x00000800000 - | ||| | || |||||||+--------------------------- bit 25 mask 0x00002000000 - | ||| | || ||||||+---------------------------- bit 26 mask 0x00004000000 - | ||| | || |||||+----------------------------- bit 27 mask 0x00008000000 - | ||| | || ||||+------------------------------ bit 28 mask 0x00010000000 - | ||| | || |||+------------------------------- bit 29 mask 0x00020000000 - | ||| | || ||+-------------------------------- bit 30 mask 0x00040000000 - | ||| | || |+--------------------------------- bit 31 mask 0x00080000000 - | ||| | || +---------------------------------- bit 32 mask 0x00100000000 - | ||| | |+------------------------------------ bit 34 mask 0x00400000000 - | ||| | +------------------------------------- bit 35 mask 0x00800000000 - | ||| +--------------------------------------- bit 37 mask 0x02000000000 - | ||+----------------------------------------- bit 39 mask 0x08000000000 - | |+------------------------------------------ bit 40 mask 0x10000000000 - | +------------------------------------------- bit 41 mask 0x20000000000 - +--------------------------------------------- bit 43 mask 0x80000000000 - - - deadba11e12a - 110111101010110110111010000100011110000100101010 - 110111101010110110111010000100011110000100101010 - || |||| | | || || ||| | | |||| | | | | - || |||| | | || || ||| | | |||| | | | +--- bit 1 mask 0x000000000002 - || |||| | | || || ||| | | |||| | | +----- bit 3 mask 0x000000000008 - || |||| | | || || ||| | | |||| | +------- bit 5 mask 0x000000000020 - || |||| | | || || ||| | | |||| +---------- bit 8 mask 0x000000000100 - || |||| | | || || ||| | | |||+--------------- bit 13 mask 0x000000002000 - || |||| | | || || ||| | | ||+---------------- bit 14 mask 0x000000004000 - || |||| | | || || ||| | | |+----------------- bit 15 mask 0x000000008000 - || |||| | | || || ||| | | +------------------ bit 16 mask 0x000000010000 - || |||| | | || || ||| | +---------------------- bit 20 mask 0x000000100000 - || |||| | | || || ||| +--------------------------- bit 25 mask 0x000002000000 - || |||| | | || || ||+----------------------------- bit 27 mask 0x000008000000 - || |||| | | || || |+------------------------------ bit 28 mask 0x000010000000 - || |||| | | || || +------------------------------- bit 29 mask 0x000020000000 - || |||| | | || |+--------------------------------- bit 31 mask 0x000080000000 - || |||| | | || +---------------------------------- bit 32 mask 0x000100000000 - || |||| | | |+------------------------------------ bit 34 mask 0x000400000000 - || |||| | | +------------------------------------- bit 35 mask 0x000800000000 - || |||| | +--------------------------------------- bit 37 mask 0x002000000000 - || |||| +----------------------------------------- bit 39 mask 0x008000000000 - || |||+------------------------------------------- bit 41 mask 0x020000000000 - || ||+-------------------------------------------- bit 42 mask 0x040000000000 - || |+--------------------------------------------- bit 43 mask 0x080000000000 - || +---------------------------------------------- bit 44 mask 0x100000000000 - |+------------------------------------------------ bit 46 mask 0x400000000000 - +------------------------------------------------- bit 47 mask 0x800000000000 - - - badb100d - 10111010110110110001000000001101 - 10111010110110110001000000001101 - | ||| | || || || | || | - | ||| | || || || | || +-- bit 0 mask 0x00000001 - | ||| | || || || | |+---- bit 2 mask 0x00000004 - | ||| | || || || | +----- bit 3 mask 0x00000008 - | ||| | || || || +-------------- bit 12 mask 0x00001000 - | ||| | || || |+------------------ bit 16 mask 0x00010000 - | ||| | || || +------------------- bit 17 mask 0x00020000 - | ||| | || |+--------------------- bit 19 mask 0x00080000 - | ||| | || +---------------------- bit 20 mask 0x00100000 - | ||| | |+------------------------ bit 22 mask 0x00400000 - | ||| | +------------------------- bit 23 mask 0x00800000 - | ||| +--------------------------- bit 25 mask 0x02000000 - | ||+----------------------------- bit 27 mask 0x08000000 - | |+------------------------------ bit 28 mask 0x10000000 - | +------------------------------- bit 29 mask 0x20000000 - +--------------------------------- bit 31 mask 0x80000000 - - - baddefec8ed - 10111010110111011110111111101100100011101101 - 10111010110111011110111111101100100011101101 - | ||| | || ||| |||| ||||||| || | ||| || | - | ||| | || ||| |||| ||||||| || | ||| || +-- bit 0 mask 0x00000000001 - | ||| | || ||| |||| ||||||| || | ||| |+---- bit 2 mask 0x00000000004 - | ||| | || ||| |||| ||||||| || | ||| +----- bit 3 mask 0x00000000008 - | ||| | || ||| |||| ||||||| || | ||+------- bit 5 mask 0x00000000020 - | ||| | || ||| |||| ||||||| || | |+-------- bit 6 mask 0x00000000040 - | ||| | || ||| |||| ||||||| || | +--------- bit 7 mask 0x00000000080 - | ||| | || ||| |||| ||||||| || +------------- bit 11 mask 0x00000000800 - | ||| | || ||| |||| ||||||| |+---------------- bit 14 mask 0x00000004000 - | ||| | || ||| |||| ||||||| +----------------- bit 15 mask 0x00000008000 - | ||| | || ||| |||| ||||||+------------------- bit 17 mask 0x00000020000 - | ||| | || ||| |||| |||||+-------------------- bit 18 mask 0x00000040000 - | ||| | || ||| |||| ||||+--------------------- bit 19 mask 0x00000080000 - | ||| | || ||| |||| |||+---------------------- bit 20 mask 0x00000100000 - | ||| | || ||| |||| ||+----------------------- bit 21 mask 0x00000200000 - | ||| | || ||| |||| |+------------------------ bit 22 mask 0x00000400000 - | ||| | || ||| |||| +------------------------- bit 23 mask 0x00000800000 - | ||| | || ||| |||+--------------------------- bit 25 mask 0x00002000000 - | ||| | || ||| ||+---------------------------- bit 26 mask 0x00004000000 - | ||| | || ||| |+----------------------------- bit 27 mask 0x00008000000 - | ||| | || ||| +------------------------------ bit 28 mask 0x00010000000 - | ||| | || ||+-------------------------------- bit 30 mask 0x00040000000 - | ||| | || |+--------------------------------- bit 31 mask 0x00080000000 - | ||| | || +---------------------------------- bit 32 mask 0x00100000000 - | ||| | |+------------------------------------ bit 34 mask 0x00400000000 - | ||| | +------------------------------------- bit 35 mask 0x00800000000 - | ||| +--------------------------------------- bit 37 mask 0x02000000000 - | ||+----------------------------------------- bit 39 mask 0x08000000000 - | |+------------------------------------------ bit 40 mask 0x10000000000 - | +------------------------------------------- bit 41 mask 0x20000000000 - +--------------------------------------------- bit 43 mask 0x80000000000 - - diff --git a/usr/src/cmd/mdb/test/format/tst.format-p.mdb b/usr/src/cmd/mdb/test/format/tst.format-p.mdb deleted file mode 100644 index ee2b989d1b..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-p.mdb +++ /dev/null @@ -1 +0,0 @@ -1<<0t63,10=p diff --git a/usr/src/cmd/mdb/test/format/tst.format-p.mdb.out b/usr/src/cmd/mdb/test/format/tst.format-p.mdb.out deleted file mode 100644 index 65e05e7220..0000000000 --- a/usr/src/cmd/mdb/test/format/tst.format-p.mdb.out +++ /dev/null @@ -1,6 +0,0 @@ - 0x8000000000000000 0x8000000000000000 0x8000000000000000 - 0x8000000000000000 0x8000000000000000 0x8000000000000000 - 0x8000000000000000 0x8000000000000000 0x8000000000000000 - 0x8000000000000000 0x8000000000000000 0x8000000000000000 - 0x8000000000000000 0x8000000000000000 0x8000000000000000 - 0x8000000000000000 diff --git a/usr/src/cmd/mdb/test/mtest.sh b/usr/src/cmd/mdb/test/mtest.sh deleted file mode 100644 index f21d0faa21..0000000000 --- a/usr/src/cmd/mdb/test/mtest.sh +++ /dev/null @@ -1,235 +0,0 @@ -#!/bin/bash -# -# This file and its contents are supplied under the terms of the -# Common Development and Distribution License ("CDDL"), version 1.0. -# You may only use this file in accordance with the terms of version -# 1.0 of the CDDL. -# -# A full copy of the text of the CDDL should have accompanied this -# source. A copy of the CDDL is also available via the Internet at -# http://www.illumos.org/license/CDDL. -# - -# -# Copyright 2012 (c), Joyent, Inc. -# - -# -# mdb test driver -# -unalias -a -shopt -s xpg_echo -#set -o xtrace - -mt_arg0=$(basename $0) -mt_ksh="/usr/bin/ksh" -mt_mdb="/usr/bin/mdb" -mt_outdir= -mt_keep= -mt_all= -mt_tests= -mt_tnum=0 -mt_tfail=0 -mt_tsuc=0 - -function usage -{ - local msg="$*" - [[ -z "$msg" ]] || echo "$msg" 2>&1 - cat <&2 -Usage: $mt_arg0 [ -o dir ] [ -k ] [ -m executable ] [ -a | test ... ] - - -o dir Sets 'dir' as the output directory - -a Runs all tests, ignores tests passed in - -k Keep output from all tests, not just failures - -m mdb binary to test -USAGE - exit 2 -} - -function fatal -{ - local msg="$*" - [[ -z "$msg" ]] && msg="failed" - echo "$mt_arg0: $msg" >&2 - exit 1 -} - -function setup_outdir -{ - mt_outdir="$mt_outdir/$mt_arg0.$$" - mkdir -p $mt_outdir || fatal "failed to make output dir $mt_outdir" -} - -function run_single -{ - local name=$1 - local expect base ext exe command odir res reason input - - [[ -z "$name" ]] && fail "missing test to run" - base=${name##*/} - ext=${base##*.} - expect=${base%%.*} - odir="$mt_outdir/current" - [[ -z "$ext" ]] && fatal "found test without ext: $name" - [[ -z "$expect" ]] && fatal "found test without prefix: $name" - - case "$ext" in - "ksh") - command="$mt_ksh $name" - ;; - "mdb") - command="$mt_mdb" - input="$name" - ;; - "out") - # - # This is the file format for checking output against. - # - return 0 - ;; - *) - echo "skipping test $name (unknown extensino)" - return 0 - ;; - esac - - echo "Executing test $name ... \c" - mkdir -p "$odir" >/dev/null || fatal "can't make output directory" - if [[ -z "$input" ]]; then - MDB=$mt_mdb $command > "$odir/stdout" 2>"$odir/stderr" - res=$? - else - MDB=$mt_mdb $command < $input > "$odir/stdout" 2>"$odir/stderr" - res=$? - fi - - if [[ -f "$name.out" ]] && ! diff "$name.out" "$odir/stdout" >/dev/null; then - cp $name.out $odir/$base.out - reason="stdout mismatch" - elif [[ "$expect" == "tst" && $res -ne 0 ]]; then - reason="test exited $res, not zero" - elif [[ "$expect" == "err" && $res -eq 0 ]]; then - reason="test exited $res, not non-zero" - fi - - if [[ -n "$reason" ]]; then - echo "$reason" - ((mt_tfail++)) - mv "$odir" "$mt_outdir/failure.$mt_tfail" || fatal \ - "failed to move test output directory" - cp "$name" "$mt_outdir/failure.$mt_tfail/test" || fatal \ - "failed to copy test into output directory" - else - echo "passed" - ((mt_tsuc++)) - mv "$odir" "$mt_outdir/success.$mt_tsuc" || fatal \ - "failed to move test directory" - fi - - ((mt_tnum++)) -} - -function run_all -{ - local tests t - - tests=$(find . -type f -name '[tst,err]*.*.[ksh,mdb]*') - for t in $tests; do - run_single $t - done -} - -function welcome -{ - cat <&1 - exit 1 -fi - -$MDB < $TMPFILE -EOF - -DATA=$(cat $TMPFILE) -rm -f $TMPFILE - -[[ -z $DATA ]] diff --git a/usr/src/cmd/mdb/test/typedef/tst.deftypes32.mdb b/usr/src/cmd/mdb/test/typedef/tst.deftypes32.mdb deleted file mode 100644 index 12c28075a8..0000000000 --- a/usr/src/cmd/mdb/test/typedef/tst.deftypes32.mdb +++ /dev/null @@ -1,27 +0,0 @@ -::typedef -c LP32 -::sizeof int8_t -::sizeof int16_t -::sizeof int32_t -::sizeof int64_t -::sizeof uint8_t -::sizeof uint16_t -::sizeof uint32_t -::sizeof uint64_t -::sizeof intptr_t -::sizeof uintptr_t -::sizeof uchar_t -::sizeof ushort_t -::sizeof uint_t -::sizeof ulong_t -::sizeof u_longlong_t -::sizeof ptrdiff_t -::sizeof signed -::sizeof unsigned -::sizeof void -::sizeof char -::sizeof short -::sizeof int -::sizeof long -::sizeof _Bool -::sizeof float -::sizeof double diff --git a/usr/src/cmd/mdb/test/typedef/tst.deftypes32.mdb.out b/usr/src/cmd/mdb/test/typedef/tst.deftypes32.mdb.out deleted file mode 100644 index 792f42fbf2..0000000000 --- a/usr/src/cmd/mdb/test/typedef/tst.deftypes32.mdb.out +++ /dev/null @@ -1,26 +0,0 @@ -sizeof (int8_t) = 1 -sizeof (int16_t) = 2 -sizeof (int32_t) = 4 -sizeof (int64_t) = 8 -sizeof (uint8_t) = 1 -sizeof (uint16_t) = 2 -sizeof (uint32_t) = 4 -sizeof (uint64_t) = 8 -sizeof (intptr_t) = 4 -sizeof (uintptr_t) = 4 -sizeof (uchar_t) = 1 -sizeof (ushort_t) = 2 -sizeof (uint_t) = 4 -sizeof (ulong_t) = 4 -sizeof (u_longlong_t) = 8 -sizeof (ptrdiff_t) = 4 -sizeof (signed) = 4 -sizeof (unsigned) = 4 -sizeof (void) = 0 -sizeof (char) = 1 -sizeof (short) = 2 -sizeof (int) = 4 -sizeof (long) = 4 -sizeof (_Bool) = 1 -sizeof (float) = 4 -sizeof (double) = 8 diff --git a/usr/src/cmd/mdb/test/typedef/tst.deftypes64.mdb b/usr/src/cmd/mdb/test/typedef/tst.deftypes64.mdb deleted file mode 100644 index 5ae94cdea0..0000000000 --- a/usr/src/cmd/mdb/test/typedef/tst.deftypes64.mdb +++ /dev/null @@ -1,27 +0,0 @@ -::typedef -c LP64 -::sizeof int8_t -::sizeof int16_t -::sizeof int32_t -::sizeof int64_t -::sizeof uint8_t -::sizeof uint16_t -::sizeof uint32_t -::sizeof uint64_t -::sizeof intptr_t -::sizeof uintptr_t -::sizeof uchar_t -::sizeof ushort_t -::sizeof uint_t -::sizeof ulong_t -::sizeof u_longlong_t -::sizeof ptrdiff_t -::sizeof signed -::sizeof unsigned -::sizeof void -::sizeof char -::sizeof short -::sizeof int -::sizeof long -::sizeof _Bool -::sizeof float -::sizeof double diff --git a/usr/src/cmd/mdb/test/typedef/tst.deftypes64.mdb.out b/usr/src/cmd/mdb/test/typedef/tst.deftypes64.mdb.out deleted file mode 100644 index 83b85b943a..0000000000 --- a/usr/src/cmd/mdb/test/typedef/tst.deftypes64.mdb.out +++ /dev/null @@ -1,26 +0,0 @@ -sizeof (int8_t) = 1 -sizeof (int16_t) = 2 -sizeof (int32_t) = 4 -sizeof (int64_t) = 8 -sizeof (uint8_t) = 1 -sizeof (uint16_t) = 2 -sizeof (uint32_t) = 4 -sizeof (uint64_t) = 8 -sizeof (intptr_t) = 8 -sizeof (uintptr_t) = 8 -sizeof (uchar_t) = 1 -sizeof (ushort_t) = 2 -sizeof (uint_t) = 4 -sizeof (ulong_t) = 8 -sizeof (u_longlong_t) = 8 -sizeof (ptrdiff_t) = 8 -sizeof (signed) = 4 -sizeof (unsigned) = 4 -sizeof (void) = 0 -sizeof (char) = 1 -sizeof (short) = 2 -sizeof (int) = 4 -sizeof (long) = 8 -sizeof (_Bool) = 1 -sizeof (float) = 4 -sizeof (double) = 8 diff --git a/usr/src/cmd/mdb/test/typedef/tst.dellist.mdb b/usr/src/cmd/mdb/test/typedef/tst.dellist.mdb deleted file mode 100644 index e9009d7b68..0000000000 --- a/usr/src/cmd/mdb/test/typedef/tst.dellist.mdb +++ /dev/null @@ -1,3 +0,0 @@ -::typdef -c lp32 -::typedef -d -::typedef -l diff --git a/usr/src/cmd/mdb/test/typedef/tst.emptylist.mdb b/usr/src/cmd/mdb/test/typedef/tst.emptylist.mdb deleted file mode 100644 index 6c7505ac1c..0000000000 --- a/usr/src/cmd/mdb/test/typedef/tst.emptylist.mdb +++ /dev/null @@ -1 +0,0 @@ -::typedef -l diff --git a/usr/src/cmd/mdb/test/typedef/tst.libctype.ksh b/usr/src/cmd/mdb/test/typedef/tst.libctype.ksh deleted file mode 100644 index cf517cf937..0000000000 --- a/usr/src/cmd/mdb/test/typedef/tst.libctype.ksh +++ /dev/null @@ -1,6 +0,0 @@ -$MDB /lib/libc.so <&1 - exit 1 - fi -done -exit 0 diff --git a/usr/src/cmd/mdb/test/typedef/tst.struct.mdb b/usr/src/cmd/mdb/test/typedef/tst.struct.mdb deleted file mode 100644 index 2e0206e7ec..0000000000 --- a/usr/src/cmd/mdb/test/typedef/tst.struct.mdb +++ /dev/null @@ -1,6 +0,0 @@ -::typedef -c lp32 -::typedef "struct gift { uintptr_t stone[7]; void **white; }" gift_t -::sizeof gift_t -::print -at gift_t -::sizeof struct gift -::print -at struct gift diff --git a/usr/src/cmd/mdb/test/typedef/tst.struct.mdb.out b/usr/src/cmd/mdb/test/typedef/tst.struct.mdb.out deleted file mode 100644 index 9a7d801742..0000000000 --- a/usr/src/cmd/mdb/test/typedef/tst.struct.mdb.out +++ /dev/null @@ -1,10 +0,0 @@ -sizeof (gift_t) = 0x28 -0 gift_t { - 0 uintptr_t [7] stone - 20 void **white -} -sizeof (struct gift) = 0x28 -0 struct gift { - 0 uintptr_t [7] stone - 20 void **white -} diff --git a/usr/src/cmd/mdb/test/typedef/tst.structselfref.mdb b/usr/src/cmd/mdb/test/typedef/tst.structselfref.mdb deleted file mode 100644 index 85b3068e00..0000000000 --- a/usr/src/cmd/mdb/test/typedef/tst.structselfref.mdb +++ /dev/null @@ -1,4 +0,0 @@ -::typedef -c lp32 -::typedef "struct list { struct list *prev; struct list *next; }" list_t -::sizeof list_t -::print -at list_t diff --git a/usr/src/cmd/mdb/test/typedef/tst.structselfref.mdb.out b/usr/src/cmd/mdb/test/typedef/tst.structselfref.mdb.out deleted file mode 100644 index a6f4823ad1..0000000000 --- a/usr/src/cmd/mdb/test/typedef/tst.structselfref.mdb.out +++ /dev/null @@ -1,5 +0,0 @@ -sizeof (list_t) = 0x10 -0 list_t { - 0 struct list *prev - 8 struct list *next -} diff --git a/usr/src/cmd/mdb/test/typedef/tst.structvla.mdb b/usr/src/cmd/mdb/test/typedef/tst.structvla.mdb deleted file mode 100644 index 27cd56c186..0000000000 --- a/usr/src/cmd/mdb/test/typedef/tst.structvla.mdb +++ /dev/null @@ -1,4 +0,0 @@ -::typedef -c lp32 -::typedef "struct gift { uintptr_t stone[7]; void **white; char owner[]; }" gift_t -::sizeof gift_t -::print -at gift_t diff --git a/usr/src/cmd/mdb/test/typedef/tst.structvla.mdb.out b/usr/src/cmd/mdb/test/typedef/tst.structvla.mdb.out deleted file mode 100644 index 0a0d3d4029..0000000000 --- a/usr/src/cmd/mdb/test/typedef/tst.structvla.mdb.out +++ /dev/null @@ -1,6 +0,0 @@ -sizeof (gift_t) = 0x28 -0 gift_t { - 0 uintptr_t [7] stone - 20 void **white - 28 char [0] owner -} diff --git a/usr/src/cmd/mdb/test/typedef/tst.union.mdb b/usr/src/cmd/mdb/test/typedef/tst.union.mdb deleted file mode 100644 index 966446caee..0000000000 --- a/usr/src/cmd/mdb/test/typedef/tst.union.mdb +++ /dev/null @@ -1,6 +0,0 @@ -::typedef -c lp64 -::typedef "union ringbearer { int frodo; char sam; long gandalf; }" ringbearer_t; -::sizeof ringbearer_t -::print -at ringbearer_t -::sizeof union ringbearer -::print -at union ringbearer diff --git a/usr/src/cmd/mdb/test/typedef/tst.union.mdb.out b/usr/src/cmd/mdb/test/typedef/tst.union.mdb.out deleted file mode 100644 index 2afc2eabb9..0000000000 --- a/usr/src/cmd/mdb/test/typedef/tst.union.mdb.out +++ /dev/null @@ -1,12 +0,0 @@ -sizeof (ringbearer_t) = 8 -0 ringbearer_t { - 0 int frodo - 0 char sam - 0 long gandalf -} -sizeof (union ringbearer) = 8 -0 union ringbearer { - 0 int frodo - 0 char sam - 0 long gandalf -} diff --git a/usr/src/pkg/manifests/system-test-utiltest.mf b/usr/src/pkg/manifests/system-test-utiltest.mf index 848daeac78..53c57375ef 100644 --- a/usr/src/pkg/manifests/system-test-utiltest.mf +++ b/usr/src/pkg/manifests/system-test-utiltest.mf @@ -59,6 +59,11 @@ dir path=opt/util-tests/tests/find dir path=opt/util-tests/tests/libcustr dir path=opt/util-tests/tests/libnvpair_json dir path=opt/util-tests/tests/libsff +dir path=opt/util-tests/tests/mdb +dir path=opt/util-tests/tests/mdb/exit-e +dir path=opt/util-tests/tests/mdb/format +dir path=opt/util-tests/tests/mdb/options +dir path=opt/util-tests/tests/mdb/typedef dir path=opt/util-tests/tests/mergeq dir path=opt/util-tests/tests/sleep file path=opt/util-tests/README mode=0444 @@ -1468,6 +1473,95 @@ file path=opt/util-tests/tests/libsff/libsff_strings mode=0555 file path=opt/util-tests/tests/libsff/libsff_wave mode=0555 file path=opt/util-tests/tests/libsff/libsff_wave.out mode=0444 file path=opt/util-tests/tests/make_test mode=0555 +file path=opt/util-tests/tests/mdb/exit-e/err.cmdbadopt.ksh mode=0444 +file path=opt/util-tests/tests/mdb/exit-e/err.enocmd.ksh mode=0444 +file path=opt/util-tests/tests/mdb/exit-e/err.nowrite.ksh mode=0444 +file path=opt/util-tests/tests/mdb/exit-e/err.unmapped.ksh mode=0444 +file path=opt/util-tests/tests/mdb/exit-e/tst.output.ksh mode=0444 +file path=opt/util-tests/tests/mdb/exit-e/tst.output.ksh.out mode=0444 +file path=opt/util-tests/tests/mdb/exit-e/tst.simple.ksh mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-cap-E.mdb mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-cap-E.mdb.out mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-cap-G.mdb mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-cap-G.mdb.out mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-cap-J.mdb mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-cap-J.mdb.out mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-cap-P.mdb mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-cap-P.mdb.out mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-cap-R.mdb mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-cap-R.mdb.out mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-e.mdb mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-e.mdb.out mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-g.mdb mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-g.mdb.out mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-j.mdb mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-j.mdb.out mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-p.mdb mode=0444 +file path=opt/util-tests/tests/mdb/format/tst.format-p.mdb.out mode=0444 +file path=opt/util-tests/tests/mdb/mdbtest mode=0555 +file path=opt/util-tests/tests/mdb/options/tst.autowrap.mdb mode=0444 +file path=opt/util-tests/tests/mdb/options/tst.autowrap.mdb.out mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badid-leadnum.ksh mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badid-leadschar.ksh mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badmodel.ksh mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badstruct-extrabraces.ksh \ + mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badstruct-neglenarr.ksh \ + mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badstruct-noarrayclose.ksh \ + mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badstruct-noarraylen.ksh \ + mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badstruct-noarrayopen.ksh \ + mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badstruct-nobraces.ksh \ + mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badstruct-noclosebrace.ksh \ + mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badstruct-nomembers.ksh \ + mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badstruct-nomemname.ksh \ + mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badstruct-nomemsemi.ksh \ + mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badstruct-noopenbrace.ksh \ + mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badstruct-noquotes.ksh \ + mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badstruct-repmemname.ksh \ + mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badstruct-vlaonly.ksh mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badstruct-zerolenarr.ksh \ + mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.badunion-hasvla.ksh mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.extraargs.ksh mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.noargs.ksh mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.nokeyword.ksh mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.nomodel.ksh mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.noname.ksh mode=0444 +file path=opt/util-tests/tests/mdb/typedef/err.typeexists.ksh mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.anonstruct.mdb mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.anonstruct.mdb.out mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.anonunion.mdb mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.anonunion.mdb.out mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.cleanupstruct.ksh mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.deftypes32.mdb mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.deftypes32.mdb.out mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.deftypes64.mdb mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.deftypes64.mdb.out mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.dellist.mdb mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.emptylist.mdb mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.libctype.ksh mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.libctype.ksh.out mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.models.ksh mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.struct.mdb mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.struct.mdb.out mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.structselfref.mdb mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.structselfref.mdb.out mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.structvla.mdb mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.structvla.mdb.out mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.union.mdb mode=0444 +file path=opt/util-tests/tests/mdb/typedef/tst.union.mdb.out mode=0444 file path=opt/util-tests/tests/mergeq/mqt mode=0555 file path=opt/util-tests/tests/mergeq/wqt mode=0555 file path=opt/util-tests/tests/printf_test mode=0555 diff --git a/usr/src/test/util-tests/runfiles/default.run b/usr/src/test/util-tests/runfiles/default.run index 04f59f9ab4..feafa77623 100644 --- a/usr/src/test/util-tests/runfiles/default.run +++ b/usr/src/test/util-tests/runfiles/default.run @@ -13,7 +13,7 @@ # Copyright (c) 2012 by Delphix. All rights reserved. # Copyright 2014 Garrett D'Amore # Copyright 2014 Nexenta Systems, Inc. All rights reserved. -# Copyright 2019 Joyent, Inc. +# Copyright 2020 Joyent, Inc. # Copyright 2019 OmniOS Community Edition (OmniOSce) Association. # @@ -73,3 +73,7 @@ tests = [ 'ctftest' ] [/opt/util-tests/tests/libcustr] tests = ['custr_remove', 'custr_trunc'] + +[/opt/util-tests/tests/find/findtest] + +[/opt/util-tests/tests/mdb/mdbtest] diff --git a/usr/src/test/util-tests/tests/Makefile b/usr/src/test/util-tests/tests/Makefile index 6ccf391395..84ad7ca564 100644 --- a/usr/src/test/util-tests/tests/Makefile +++ b/usr/src/test/util-tests/tests/Makefile @@ -20,6 +20,6 @@ SUBDIRS = date dis dladm iconv libnvpair_json libsff printf xargs grep_xpg4 SUBDIRS += demangle mergeq workq chown ctf smbios libjedec awk make sleep -SUBDIRS += libcustr find +SUBDIRS += libcustr find mdb include $(SRC)/test/Makefile.com diff --git a/usr/src/test/util-tests/tests/mdb/Makefile b/usr/src/test/util-tests/tests/mdb/Makefile new file mode 100644 index 0000000000..d7d205bc82 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/Makefile @@ -0,0 +1,127 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2020 Joyent, Inc. +# + +include $(SRC)/cmd/Makefile.cmd +include $(SRC)/test/Makefile.com + +ROOTOPTPKG = $(ROOT)/opt/util-tests +TESTDIR = $(ROOTOPTPKG)/tests/mdb + +PROG = mdbtest + +ROOTPROG = $(PROG:%=$(TESTDIR)/%) + +MAKEDIRS = \ + exit-e \ + format \ + options \ + typedef + +FILES = \ + exit-e/err.cmdbadopt.ksh \ + exit-e/err.enocmd.ksh \ + exit-e/err.nowrite.ksh \ + exit-e/err.unmapped.ksh \ + exit-e/tst.output.ksh \ + exit-e/tst.output.ksh.out \ + exit-e/tst.simple.ksh \ + format/tst.format-cap-E.mdb \ + format/tst.format-cap-E.mdb.out \ + format/tst.format-cap-G.mdb \ + format/tst.format-cap-G.mdb.out \ + format/tst.format-cap-J.mdb \ + format/tst.format-cap-J.mdb.out \ + format/tst.format-cap-P.mdb \ + format/tst.format-cap-P.mdb.out \ + format/tst.format-cap-R.mdb \ + format/tst.format-cap-R.mdb.out \ + format/tst.format-e.mdb \ + format/tst.format-e.mdb.out \ + format/tst.format-g.mdb \ + format/tst.format-g.mdb.out \ + format/tst.format-j.mdb \ + format/tst.format-j.mdb.out \ + format/tst.format-p.mdb \ + format/tst.format-p.mdb.out \ + options/tst.autowrap.mdb \ + options/tst.autowrap.mdb.out \ + typedef/err.badid-leadnum.ksh \ + typedef/err.badid-leadschar.ksh \ + typedef/err.badmodel.ksh \ + typedef/err.badstruct-extrabraces.ksh \ + typedef/err.badstruct-neglenarr.ksh \ + typedef/err.badstruct-noarrayclose.ksh \ + typedef/err.badstruct-noarraylen.ksh \ + typedef/err.badstruct-noarrayopen.ksh \ + typedef/err.badstruct-nobraces.ksh \ + typedef/err.badstruct-noclosebrace.ksh \ + typedef/err.badstruct-nomembers.ksh \ + typedef/err.badstruct-nomemname.ksh \ + typedef/err.badstruct-nomemsemi.ksh \ + typedef/err.badstruct-noopenbrace.ksh \ + typedef/err.badstruct-noquotes.ksh \ + typedef/err.badstruct-repmemname.ksh \ + typedef/err.badstruct-vlaonly.ksh \ + typedef/err.badstruct-zerolenarr.ksh \ + typedef/err.badunion-hasvla.ksh \ + typedef/err.extraargs.ksh \ + typedef/err.noargs.ksh \ + typedef/err.nokeyword.ksh \ + typedef/err.nomodel.ksh \ + typedef/err.noname.ksh \ + typedef/err.typeexists.ksh \ + typedef/tst.anonstruct.mdb \ + typedef/tst.anonstruct.mdb.out \ + typedef/tst.anonunion.mdb \ + typedef/tst.anonunion.mdb.out \ + typedef/tst.cleanupstruct.ksh \ + typedef/tst.deftypes32.mdb \ + typedef/tst.deftypes32.mdb.out \ + typedef/tst.deftypes64.mdb \ + typedef/tst.deftypes64.mdb.out \ + typedef/tst.dellist.mdb \ + typedef/tst.emptylist.mdb \ + typedef/tst.libctype.ksh \ + typedef/tst.libctype.ksh.out \ + typedef/tst.models.ksh \ + typedef/tst.struct.mdb \ + typedef/tst.struct.mdb.out \ + typedef/tst.structselfref.mdb \ + typedef/tst.structselfref.mdb.out \ + typedef/tst.structvla.mdb \ + typedef/tst.structvla.mdb.out \ + typedef/tst.union.mdb \ + typedef/tst.union.mdb.out \ + +ROOTFILES = $(FILES:%=$(TESTDIR)/%) +ROOTMAKEDIRS = $(MAKEDIRS:%=$(TESTDIR)/%) + +FILEMODE = 0444 + +$(TESTDIR)/mdbtest := FILEMODE = 0555 + +all: + +install: all $(ROOTFILES) $(ROOTPROG) + +clean clobber: + +$(ROOTFILES): $(TESTDIR) $(ROOTMAKEDIRS) $(FILES) + +$(TESTDIR) $(ROOTMAKEDIRS): + $(INS.dir) + +$(TESTDIR)/%: % + $(INS.file) diff --git a/usr/src/test/util-tests/tests/mdb/README b/usr/src/test/util-tests/tests/mdb/README new file mode 100644 index 0000000000..28127e5916 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/README @@ -0,0 +1,18 @@ +MDB Test suite + +This provides a primordial version of a test suite for mdb. To run the tests, +run mtest. Tests exist in various subdirectories. The name of the test is +important. + +A test must start with either: + + o tst - Indicating that it should exit zero + o err - Indicating that it should exit non-zero + +A test must end with either: + + o mdb - Indicating that the file should be passed as standard input to mdb + o ksh - Indicating that it should be run with ksh + +A test may have an optional .out file which if present indicates that the test +should pass if and only if its standard ouput matches its standar error. diff --git a/usr/src/test/util-tests/tests/mdb/exit-e/err.cmdbadopt.ksh b/usr/src/test/util-tests/tests/mdb/exit-e/err.cmdbadopt.ksh new file mode 100644 index 0000000000..de50faeb01 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/exit-e/err.cmdbadopt.ksh @@ -0,0 +1,2 @@ +$MDB -e '::typegraph' +exit $? diff --git a/usr/src/test/util-tests/tests/mdb/exit-e/err.enocmd.ksh b/usr/src/test/util-tests/tests/mdb/exit-e/err.enocmd.ksh new file mode 100644 index 0000000000..038f121b26 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/exit-e/err.enocmd.ksh @@ -0,0 +1,2 @@ +$MDB -e '::commandthatdoesnotexist' +exit $? diff --git a/usr/src/test/util-tests/tests/mdb/exit-e/err.nowrite.ksh b/usr/src/test/util-tests/tests/mdb/exit-e/err.nowrite.ksh new file mode 100644 index 0000000000..8f0fda2253 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/exit-e/err.nowrite.ksh @@ -0,0 +1 @@ +$MDB -e '0xbaddcafe/v 0x02' diff --git a/usr/src/test/util-tests/tests/mdb/exit-e/err.unmapped.ksh b/usr/src/test/util-tests/tests/mdb/exit-e/err.unmapped.ksh new file mode 100644 index 0000000000..874283f186 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/exit-e/err.unmapped.ksh @@ -0,0 +1 @@ +$MDB -e '0x0/v 0x02' /bin/ls diff --git a/usr/src/test/util-tests/tests/mdb/exit-e/tst.output.ksh b/usr/src/test/util-tests/tests/mdb/exit-e/tst.output.ksh new file mode 100644 index 0000000000..13b5db072d --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/exit-e/tst.output.ksh @@ -0,0 +1 @@ +$MDB -e '0t2 << 0t10=K' diff --git a/usr/src/test/util-tests/tests/mdb/exit-e/tst.output.ksh.out b/usr/src/test/util-tests/tests/mdb/exit-e/tst.output.ksh.out new file mode 100644 index 0000000000..7a38ab6e65 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/exit-e/tst.output.ksh.out @@ -0,0 +1 @@ + 800 diff --git a/usr/src/test/util-tests/tests/mdb/exit-e/tst.simple.ksh b/usr/src/test/util-tests/tests/mdb/exit-e/tst.simple.ksh new file mode 100644 index 0000000000..4c8a3c58ad --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/exit-e/tst.simple.ksh @@ -0,0 +1 @@ +$MDB -e '::dcmds' diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-E.mdb b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-E.mdb new file mode 100644 index 0000000000..18e9053ce4 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-E.mdb @@ -0,0 +1,2 @@ +-1,10=E +1<<0t63,10=E diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-E.mdb.out b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-E.mdb.out new file mode 100644 index 0000000000..2268a48be9 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-E.mdb.out @@ -0,0 +1,12 @@ + 18446744073709551615 18446744073709551615 18446744073709551615 + 18446744073709551615 18446744073709551615 18446744073709551615 + 18446744073709551615 18446744073709551615 18446744073709551615 + 18446744073709551615 18446744073709551615 18446744073709551615 + 18446744073709551615 18446744073709551615 18446744073709551615 + 18446744073709551615 + 9223372036854775808 9223372036854775808 9223372036854775808 + 9223372036854775808 9223372036854775808 9223372036854775808 + 9223372036854775808 9223372036854775808 9223372036854775808 + 9223372036854775808 9223372036854775808 9223372036854775808 + 9223372036854775808 9223372036854775808 9223372036854775808 + 9223372036854775808 diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-G.mdb b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-G.mdb new file mode 100644 index 0000000000..f10f78336b --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-G.mdb @@ -0,0 +1,4 @@ +-1,10=G +1<<0t63,10=G +1<<0t60,10=G +1<<0t57,10=G diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-G.mdb.out b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-G.mdb.out new file mode 100644 index 0000000000..f1dfd5193b --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-G.mdb.out @@ -0,0 +1,32 @@ + 1777777777777777777777 1777777777777777777777 + 1777777777777777777777 1777777777777777777777 + 1777777777777777777777 1777777777777777777777 + 1777777777777777777777 1777777777777777777777 + 1777777777777777777777 1777777777777777777777 + 1777777777777777777777 1777777777777777777777 + 1777777777777777777777 1777777777777777777777 + 1777777777777777777777 1777777777777777777777 + 1000000000000000000000 1000000000000000000000 + 1000000000000000000000 1000000000000000000000 + 1000000000000000000000 1000000000000000000000 + 1000000000000000000000 1000000000000000000000 + 1000000000000000000000 1000000000000000000000 + 1000000000000000000000 1000000000000000000000 + 1000000000000000000000 1000000000000000000000 + 1000000000000000000000 1000000000000000000000 + 100000000000000000000 100000000000000000000 + 100000000000000000000 100000000000000000000 + 100000000000000000000 100000000000000000000 + 100000000000000000000 100000000000000000000 + 100000000000000000000 100000000000000000000 + 100000000000000000000 100000000000000000000 + 100000000000000000000 100000000000000000000 + 100000000000000000000 100000000000000000000 + 10000000000000000000 10000000000000000000 + 10000000000000000000 10000000000000000000 + 10000000000000000000 10000000000000000000 + 10000000000000000000 10000000000000000000 + 10000000000000000000 10000000000000000000 + 10000000000000000000 10000000000000000000 + 10000000000000000000 10000000000000000000 + 10000000000000000000 10000000000000000000 diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-J.mdb b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-J.mdb new file mode 100644 index 0000000000..ff9dabbce9 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-J.mdb @@ -0,0 +1,3 @@ +-1,10=J +1<<0t63,10=J +1<<0t59,10=J diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-J.mdb.out b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-J.mdb.out new file mode 100644 index 0000000000..644fee231e --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-J.mdb.out @@ -0,0 +1,16 @@ + ffffffffffffffff ffffffffffffffff ffffffffffffffff + ffffffffffffffff ffffffffffffffff ffffffffffffffff + ffffffffffffffff ffffffffffffffff ffffffffffffffff + ffffffffffffffff ffffffffffffffff ffffffffffffffff + ffffffffffffffff ffffffffffffffff ffffffffffffffff + ffffffffffffffff + 8000000000000000 8000000000000000 8000000000000000 + 8000000000000000 8000000000000000 8000000000000000 + 8000000000000000 8000000000000000 8000000000000000 + 8000000000000000 8000000000000000 8000000000000000 + 8000000000000000 8000000000000000 8000000000000000 + 8000000000000000 + 800000000000000 800000000000000 800000000000000 800000000000000 + 800000000000000 800000000000000 800000000000000 800000000000000 + 800000000000000 800000000000000 800000000000000 800000000000000 + 800000000000000 800000000000000 800000000000000 800000000000000 diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-P.mdb b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-P.mdb new file mode 100644 index 0000000000..88928fda29 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-P.mdb @@ -0,0 +1 @@ +1<<0t63,10=P diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-P.mdb.out b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-P.mdb.out new file mode 100644 index 0000000000..65e05e7220 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-P.mdb.out @@ -0,0 +1,6 @@ + 0x8000000000000000 0x8000000000000000 0x8000000000000000 + 0x8000000000000000 0x8000000000000000 0x8000000000000000 + 0x8000000000000000 0x8000000000000000 0x8000000000000000 + 0x8000000000000000 0x8000000000000000 0x8000000000000000 + 0x8000000000000000 0x8000000000000000 0x8000000000000000 + 0x8000000000000000 diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-R.mdb b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-R.mdb new file mode 100644 index 0000000000..9f55408276 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-R.mdb @@ -0,0 +1,4 @@ +1=RRRR +1<<0t62=RRR +1<<0t63=RRR +-1=RRRR diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-R.mdb.out b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-R.mdb.out new file mode 100644 index 0000000000..f05b0bac4d --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-cap-R.mdb.out @@ -0,0 +1,14 @@ + 1 + 1 + 1 + 1 + 100000000000000000000000000000000000000000000000000000000000000 + 100000000000000000000000000000000000000000000000000000000000000 + 100000000000000000000000000000000000000000000000000000000000000 + 1000000000000000000000000000000000000000000000000000000000000000 + 1000000000000000000000000000000000000000000000000000000000000000 + 1000000000000000000000000000000000000000000000000000000000000000 + 1111111111111111111111111111111111111111111111111111111111111111 + 1111111111111111111111111111111111111111111111111111111111111111 + 1111111111111111111111111111111111111111111111111111111111111111 + 1111111111111111111111111111111111111111111111111111111111111111 diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-e.mdb b/usr/src/test/util-tests/tests/mdb/format/tst.format-e.mdb new file mode 100644 index 0000000000..79d4b25af4 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-e.mdb @@ -0,0 +1,2 @@ +-1,10=e +1<<0t63,10=e diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-e.mdb.out b/usr/src/test/util-tests/tests/mdb/format/tst.format-e.mdb.out new file mode 100644 index 0000000000..909c53cbc0 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-e.mdb.out @@ -0,0 +1,12 @@ + -1 -1 -1 + -1 -1 -1 + -1 -1 -1 + -1 -1 -1 + -1 -1 -1 + -1 + -9223372036854775808 -9223372036854775808 -9223372036854775808 + -9223372036854775808 -9223372036854775808 -9223372036854775808 + -9223372036854775808 -9223372036854775808 -9223372036854775808 + -9223372036854775808 -9223372036854775808 -9223372036854775808 + -9223372036854775808 -9223372036854775808 -9223372036854775808 + -9223372036854775808 diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-g.mdb b/usr/src/test/util-tests/tests/mdb/format/tst.format-g.mdb new file mode 100644 index 0000000000..b3397d21ed --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-g.mdb @@ -0,0 +1,5 @@ +-1,10=g +1<<0t63,10=g +(1<<0t63)-1,10=g +1<<0t60,10=g +1<<0t57,10=g diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-g.mdb.out b/usr/src/test/util-tests/tests/mdb/format/tst.format-g.mdb.out new file mode 100644 index 0000000000..c46dff3594 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-g.mdb.out @@ -0,0 +1,40 @@ + -1 -1 + -1 -1 + -1 -1 + -1 -1 + -1 -1 + -1 -1 + -1 -1 + -1 -1 + -1000000000000000000000 -1000000000000000000000 + -1000000000000000000000 -1000000000000000000000 + -1000000000000000000000 -1000000000000000000000 + -1000000000000000000000 -1000000000000000000000 + -1000000000000000000000 -1000000000000000000000 + -1000000000000000000000 -1000000000000000000000 + -1000000000000000000000 -1000000000000000000000 + -1000000000000000000000 -1000000000000000000000 + 777777777777777777777 777777777777777777777 + 777777777777777777777 777777777777777777777 + 777777777777777777777 777777777777777777777 + 777777777777777777777 777777777777777777777 + 777777777777777777777 777777777777777777777 + 777777777777777777777 777777777777777777777 + 777777777777777777777 777777777777777777777 + 777777777777777777777 777777777777777777777 + 100000000000000000000 100000000000000000000 + 100000000000000000000 100000000000000000000 + 100000000000000000000 100000000000000000000 + 100000000000000000000 100000000000000000000 + 100000000000000000000 100000000000000000000 + 100000000000000000000 100000000000000000000 + 100000000000000000000 100000000000000000000 + 100000000000000000000 100000000000000000000 + 10000000000000000000 10000000000000000000 + 10000000000000000000 10000000000000000000 + 10000000000000000000 10000000000000000000 + 10000000000000000000 10000000000000000000 + 10000000000000000000 10000000000000000000 + 10000000000000000000 10000000000000000000 + 10000000000000000000 10000000000000000000 + 10000000000000000000 10000000000000000000 diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-j.mdb b/usr/src/test/util-tests/tests/mdb/format/tst.format-j.mdb new file mode 100644 index 0000000000..875a1e178f --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-j.mdb @@ -0,0 +1,8 @@ +-1=JRjnn +0=JRjnn +1=JRjnn +feedface=JRjnn +badfeedcafe=JRjnn +deadba11e12a=JRjnn +badb100d=JRjnn +baddefec8ed=JRjnn diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-j.mdb.out b/usr/src/test/util-tests/tests/mdb/format/tst.format-j.mdb.out new file mode 100644 index 0000000000..3f5fa0afaf --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-j.mdb.out @@ -0,0 +1,238 @@ + ffffffffffffffff + 1111111111111111111111111111111111111111111111111111111111111111 + 1111111111111111111111111111111111111111111111111111111111111111 + |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| + |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+-- bit 0 mask 0x0000000000000001 + ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+--- bit 1 mask 0x0000000000000002 + |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+---- bit 2 mask 0x0000000000000004 + ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+----- bit 3 mask 0x0000000000000008 + |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+------ bit 4 mask 0x0000000000000010 + ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||+------- bit 5 mask 0x0000000000000020 + |||||||||||||||||||||||||||||||||||||||||||||||||||||||||+-------- bit 6 mask 0x0000000000000040 + ||||||||||||||||||||||||||||||||||||||||||||||||||||||||+--------- bit 7 mask 0x0000000000000080 + |||||||||||||||||||||||||||||||||||||||||||||||||||||||+---------- bit 8 mask 0x0000000000000100 + ||||||||||||||||||||||||||||||||||||||||||||||||||||||+----------- bit 9 mask 0x0000000000000200 + |||||||||||||||||||||||||||||||||||||||||||||||||||||+------------ bit 10 mask 0x0000000000000400 + ||||||||||||||||||||||||||||||||||||||||||||||||||||+------------- bit 11 mask 0x0000000000000800 + |||||||||||||||||||||||||||||||||||||||||||||||||||+-------------- bit 12 mask 0x0000000000001000 + ||||||||||||||||||||||||||||||||||||||||||||||||||+--------------- bit 13 mask 0x0000000000002000 + |||||||||||||||||||||||||||||||||||||||||||||||||+---------------- bit 14 mask 0x0000000000004000 + ||||||||||||||||||||||||||||||||||||||||||||||||+----------------- bit 15 mask 0x0000000000008000 + |||||||||||||||||||||||||||||||||||||||||||||||+------------------ bit 16 mask 0x0000000000010000 + ||||||||||||||||||||||||||||||||||||||||||||||+------------------- bit 17 mask 0x0000000000020000 + |||||||||||||||||||||||||||||||||||||||||||||+-------------------- bit 18 mask 0x0000000000040000 + ||||||||||||||||||||||||||||||||||||||||||||+--------------------- bit 19 mask 0x0000000000080000 + |||||||||||||||||||||||||||||||||||||||||||+---------------------- bit 20 mask 0x0000000000100000 + ||||||||||||||||||||||||||||||||||||||||||+----------------------- bit 21 mask 0x0000000000200000 + |||||||||||||||||||||||||||||||||||||||||+------------------------ bit 22 mask 0x0000000000400000 + ||||||||||||||||||||||||||||||||||||||||+------------------------- bit 23 mask 0x0000000000800000 + |||||||||||||||||||||||||||||||||||||||+-------------------------- bit 24 mask 0x0000000001000000 + ||||||||||||||||||||||||||||||||||||||+--------------------------- bit 25 mask 0x0000000002000000 + |||||||||||||||||||||||||||||||||||||+---------------------------- bit 26 mask 0x0000000004000000 + ||||||||||||||||||||||||||||||||||||+----------------------------- bit 27 mask 0x0000000008000000 + |||||||||||||||||||||||||||||||||||+------------------------------ bit 28 mask 0x0000000010000000 + ||||||||||||||||||||||||||||||||||+------------------------------- bit 29 mask 0x0000000020000000 + |||||||||||||||||||||||||||||||||+-------------------------------- bit 30 mask 0x0000000040000000 + ||||||||||||||||||||||||||||||||+--------------------------------- bit 31 mask 0x0000000080000000 + |||||||||||||||||||||||||||||||+---------------------------------- bit 32 mask 0x0000000100000000 + ||||||||||||||||||||||||||||||+----------------------------------- bit 33 mask 0x0000000200000000 + |||||||||||||||||||||||||||||+------------------------------------ bit 34 mask 0x0000000400000000 + ||||||||||||||||||||||||||||+------------------------------------- bit 35 mask 0x0000000800000000 + |||||||||||||||||||||||||||+-------------------------------------- bit 36 mask 0x0000001000000000 + ||||||||||||||||||||||||||+--------------------------------------- bit 37 mask 0x0000002000000000 + |||||||||||||||||||||||||+---------------------------------------- bit 38 mask 0x0000004000000000 + ||||||||||||||||||||||||+----------------------------------------- bit 39 mask 0x0000008000000000 + |||||||||||||||||||||||+------------------------------------------ bit 40 mask 0x0000010000000000 + ||||||||||||||||||||||+------------------------------------------- bit 41 mask 0x0000020000000000 + |||||||||||||||||||||+-------------------------------------------- bit 42 mask 0x0000040000000000 + ||||||||||||||||||||+--------------------------------------------- bit 43 mask 0x0000080000000000 + |||||||||||||||||||+---------------------------------------------- bit 44 mask 0x0000100000000000 + ||||||||||||||||||+----------------------------------------------- bit 45 mask 0x0000200000000000 + |||||||||||||||||+------------------------------------------------ bit 46 mask 0x0000400000000000 + ||||||||||||||||+------------------------------------------------- bit 47 mask 0x0000800000000000 + |||||||||||||||+-------------------------------------------------- bit 48 mask 0x0001000000000000 + ||||||||||||||+--------------------------------------------------- bit 49 mask 0x0002000000000000 + |||||||||||||+---------------------------------------------------- bit 50 mask 0x0004000000000000 + ||||||||||||+----------------------------------------------------- bit 51 mask 0x0008000000000000 + |||||||||||+------------------------------------------------------ bit 52 mask 0x0010000000000000 + ||||||||||+------------------------------------------------------- bit 53 mask 0x0020000000000000 + |||||||||+-------------------------------------------------------- bit 54 mask 0x0040000000000000 + ||||||||+--------------------------------------------------------- bit 55 mask 0x0080000000000000 + |||||||+---------------------------------------------------------- bit 56 mask 0x0100000000000000 + ||||||+----------------------------------------------------------- bit 57 mask 0x0200000000000000 + |||||+------------------------------------------------------------ bit 58 mask 0x0400000000000000 + ||||+------------------------------------------------------------- bit 59 mask 0x0800000000000000 + |||+-------------------------------------------------------------- bit 60 mask 0x1000000000000000 + ||+--------------------------------------------------------------- bit 61 mask 0x2000000000000000 + |+---------------------------------------------------------------- bit 62 mask 0x4000000000000000 + +----------------------------------------------------------------- bit 63 mask 0x8000000000000000 + + + 0 + 0 + 0 + + + 1 + 1 + 1 + | + +-- bit 0 mask 0x1 + + + feedface + 11111110111011011111101011001110 + 11111110111011011111101011001110 + ||||||| ||| || |||||| | || ||| + ||||||| ||| || |||||| | || ||+--- bit 1 mask 0x00000002 + ||||||| ||| || |||||| | || |+---- bit 2 mask 0x00000004 + ||||||| ||| || |||||| | || +----- bit 3 mask 0x00000008 + ||||||| ||| || |||||| | |+-------- bit 6 mask 0x00000040 + ||||||| ||| || |||||| | +--------- bit 7 mask 0x00000080 + ||||||| ||| || |||||| +----------- bit 9 mask 0x00000200 + ||||||| ||| || |||||+------------- bit 11 mask 0x00000800 + ||||||| ||| || ||||+-------------- bit 12 mask 0x00001000 + ||||||| ||| || |||+--------------- bit 13 mask 0x00002000 + ||||||| ||| || ||+---------------- bit 14 mask 0x00004000 + ||||||| ||| || |+----------------- bit 15 mask 0x00008000 + ||||||| ||| || +------------------ bit 16 mask 0x00010000 + ||||||| ||| |+-------------------- bit 18 mask 0x00040000 + ||||||| ||| +--------------------- bit 19 mask 0x00080000 + ||||||| ||+----------------------- bit 21 mask 0x00200000 + ||||||| |+------------------------ bit 22 mask 0x00400000 + ||||||| +------------------------- bit 23 mask 0x00800000 + ||||||+--------------------------- bit 25 mask 0x02000000 + |||||+---------------------------- bit 26 mask 0x04000000 + ||||+----------------------------- bit 27 mask 0x08000000 + |||+------------------------------ bit 28 mask 0x10000000 + ||+------------------------------- bit 29 mask 0x20000000 + |+-------------------------------- bit 30 mask 0x40000000 + +--------------------------------- bit 31 mask 0x80000000 + + + badfeedcafe + 10111010110111111110111011011100101011111110 + 10111010110111111110111011011100101011111110 + | ||| | || |||||||| ||| || ||| | | ||||||| + | ||| | || |||||||| ||| || ||| | | ||||||+--- bit 1 mask 0x00000000002 + | ||| | || |||||||| ||| || ||| | | |||||+---- bit 2 mask 0x00000000004 + | ||| | || |||||||| ||| || ||| | | ||||+----- bit 3 mask 0x00000000008 + | ||| | || |||||||| ||| || ||| | | |||+------ bit 4 mask 0x00000000010 + | ||| | || |||||||| ||| || ||| | | ||+------- bit 5 mask 0x00000000020 + | ||| | || |||||||| ||| || ||| | | |+-------- bit 6 mask 0x00000000040 + | ||| | || |||||||| ||| || ||| | | +--------- bit 7 mask 0x00000000080 + | ||| | || |||||||| ||| || ||| | +----------- bit 9 mask 0x00000000200 + | ||| | || |||||||| ||| || ||| +------------- bit 11 mask 0x00000000800 + | ||| | || |||||||| ||| || ||+---------------- bit 14 mask 0x00000004000 + | ||| | || |||||||| ||| || |+----------------- bit 15 mask 0x00000008000 + | ||| | || |||||||| ||| || +------------------ bit 16 mask 0x00000010000 + | ||| | || |||||||| ||| |+-------------------- bit 18 mask 0x00000040000 + | ||| | || |||||||| ||| +--------------------- bit 19 mask 0x00000080000 + | ||| | || |||||||| ||+----------------------- bit 21 mask 0x00000200000 + | ||| | || |||||||| |+------------------------ bit 22 mask 0x00000400000 + | ||| | || |||||||| +------------------------- bit 23 mask 0x00000800000 + | ||| | || |||||||+--------------------------- bit 25 mask 0x00002000000 + | ||| | || ||||||+---------------------------- bit 26 mask 0x00004000000 + | ||| | || |||||+----------------------------- bit 27 mask 0x00008000000 + | ||| | || ||||+------------------------------ bit 28 mask 0x00010000000 + | ||| | || |||+------------------------------- bit 29 mask 0x00020000000 + | ||| | || ||+-------------------------------- bit 30 mask 0x00040000000 + | ||| | || |+--------------------------------- bit 31 mask 0x00080000000 + | ||| | || +---------------------------------- bit 32 mask 0x00100000000 + | ||| | |+------------------------------------ bit 34 mask 0x00400000000 + | ||| | +------------------------------------- bit 35 mask 0x00800000000 + | ||| +--------------------------------------- bit 37 mask 0x02000000000 + | ||+----------------------------------------- bit 39 mask 0x08000000000 + | |+------------------------------------------ bit 40 mask 0x10000000000 + | +------------------------------------------- bit 41 mask 0x20000000000 + +--------------------------------------------- bit 43 mask 0x80000000000 + + + deadba11e12a + 110111101010110110111010000100011110000100101010 + 110111101010110110111010000100011110000100101010 + || |||| | | || || ||| | | |||| | | | | + || |||| | | || || ||| | | |||| | | | +--- bit 1 mask 0x000000000002 + || |||| | | || || ||| | | |||| | | +----- bit 3 mask 0x000000000008 + || |||| | | || || ||| | | |||| | +------- bit 5 mask 0x000000000020 + || |||| | | || || ||| | | |||| +---------- bit 8 mask 0x000000000100 + || |||| | | || || ||| | | |||+--------------- bit 13 mask 0x000000002000 + || |||| | | || || ||| | | ||+---------------- bit 14 mask 0x000000004000 + || |||| | | || || ||| | | |+----------------- bit 15 mask 0x000000008000 + || |||| | | || || ||| | | +------------------ bit 16 mask 0x000000010000 + || |||| | | || || ||| | +---------------------- bit 20 mask 0x000000100000 + || |||| | | || || ||| +--------------------------- bit 25 mask 0x000002000000 + || |||| | | || || ||+----------------------------- bit 27 mask 0x000008000000 + || |||| | | || || |+------------------------------ bit 28 mask 0x000010000000 + || |||| | | || || +------------------------------- bit 29 mask 0x000020000000 + || |||| | | || |+--------------------------------- bit 31 mask 0x000080000000 + || |||| | | || +---------------------------------- bit 32 mask 0x000100000000 + || |||| | | |+------------------------------------ bit 34 mask 0x000400000000 + || |||| | | +------------------------------------- bit 35 mask 0x000800000000 + || |||| | +--------------------------------------- bit 37 mask 0x002000000000 + || |||| +----------------------------------------- bit 39 mask 0x008000000000 + || |||+------------------------------------------- bit 41 mask 0x020000000000 + || ||+-------------------------------------------- bit 42 mask 0x040000000000 + || |+--------------------------------------------- bit 43 mask 0x080000000000 + || +---------------------------------------------- bit 44 mask 0x100000000000 + |+------------------------------------------------ bit 46 mask 0x400000000000 + +------------------------------------------------- bit 47 mask 0x800000000000 + + + badb100d + 10111010110110110001000000001101 + 10111010110110110001000000001101 + | ||| | || || || | || | + | ||| | || || || | || +-- bit 0 mask 0x00000001 + | ||| | || || || | |+---- bit 2 mask 0x00000004 + | ||| | || || || | +----- bit 3 mask 0x00000008 + | ||| | || || || +-------------- bit 12 mask 0x00001000 + | ||| | || || |+------------------ bit 16 mask 0x00010000 + | ||| | || || +------------------- bit 17 mask 0x00020000 + | ||| | || |+--------------------- bit 19 mask 0x00080000 + | ||| | || +---------------------- bit 20 mask 0x00100000 + | ||| | |+------------------------ bit 22 mask 0x00400000 + | ||| | +------------------------- bit 23 mask 0x00800000 + | ||| +--------------------------- bit 25 mask 0x02000000 + | ||+----------------------------- bit 27 mask 0x08000000 + | |+------------------------------ bit 28 mask 0x10000000 + | +------------------------------- bit 29 mask 0x20000000 + +--------------------------------- bit 31 mask 0x80000000 + + + baddefec8ed + 10111010110111011110111111101100100011101101 + 10111010110111011110111111101100100011101101 + | ||| | || ||| |||| ||||||| || | ||| || | + | ||| | || ||| |||| ||||||| || | ||| || +-- bit 0 mask 0x00000000001 + | ||| | || ||| |||| ||||||| || | ||| |+---- bit 2 mask 0x00000000004 + | ||| | || ||| |||| ||||||| || | ||| +----- bit 3 mask 0x00000000008 + | ||| | || ||| |||| ||||||| || | ||+------- bit 5 mask 0x00000000020 + | ||| | || ||| |||| ||||||| || | |+-------- bit 6 mask 0x00000000040 + | ||| | || ||| |||| ||||||| || | +--------- bit 7 mask 0x00000000080 + | ||| | || ||| |||| ||||||| || +------------- bit 11 mask 0x00000000800 + | ||| | || ||| |||| ||||||| |+---------------- bit 14 mask 0x00000004000 + | ||| | || ||| |||| ||||||| +----------------- bit 15 mask 0x00000008000 + | ||| | || ||| |||| ||||||+------------------- bit 17 mask 0x00000020000 + | ||| | || ||| |||| |||||+-------------------- bit 18 mask 0x00000040000 + | ||| | || ||| |||| ||||+--------------------- bit 19 mask 0x00000080000 + | ||| | || ||| |||| |||+---------------------- bit 20 mask 0x00000100000 + | ||| | || ||| |||| ||+----------------------- bit 21 mask 0x00000200000 + | ||| | || ||| |||| |+------------------------ bit 22 mask 0x00000400000 + | ||| | || ||| |||| +------------------------- bit 23 mask 0x00000800000 + | ||| | || ||| |||+--------------------------- bit 25 mask 0x00002000000 + | ||| | || ||| ||+---------------------------- bit 26 mask 0x00004000000 + | ||| | || ||| |+----------------------------- bit 27 mask 0x00008000000 + | ||| | || ||| +------------------------------ bit 28 mask 0x00010000000 + | ||| | || ||+-------------------------------- bit 30 mask 0x00040000000 + | ||| | || |+--------------------------------- bit 31 mask 0x00080000000 + | ||| | || +---------------------------------- bit 32 mask 0x00100000000 + | ||| | |+------------------------------------ bit 34 mask 0x00400000000 + | ||| | +------------------------------------- bit 35 mask 0x00800000000 + | ||| +--------------------------------------- bit 37 mask 0x02000000000 + | ||+----------------------------------------- bit 39 mask 0x08000000000 + | |+------------------------------------------ bit 40 mask 0x10000000000 + | +------------------------------------------- bit 41 mask 0x20000000000 + +--------------------------------------------- bit 43 mask 0x80000000000 + + diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-p.mdb b/usr/src/test/util-tests/tests/mdb/format/tst.format-p.mdb new file mode 100644 index 0000000000..ee2b989d1b --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-p.mdb @@ -0,0 +1 @@ +1<<0t63,10=p diff --git a/usr/src/test/util-tests/tests/mdb/format/tst.format-p.mdb.out b/usr/src/test/util-tests/tests/mdb/format/tst.format-p.mdb.out new file mode 100644 index 0000000000..65e05e7220 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/format/tst.format-p.mdb.out @@ -0,0 +1,6 @@ + 0x8000000000000000 0x8000000000000000 0x8000000000000000 + 0x8000000000000000 0x8000000000000000 0x8000000000000000 + 0x8000000000000000 0x8000000000000000 0x8000000000000000 + 0x8000000000000000 0x8000000000000000 0x8000000000000000 + 0x8000000000000000 0x8000000000000000 0x8000000000000000 + 0x8000000000000000 diff --git a/usr/src/test/util-tests/tests/mdb/mdbtest b/usr/src/test/util-tests/tests/mdb/mdbtest new file mode 100755 index 0000000000..96ffdc4c2d --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/mdbtest @@ -0,0 +1,231 @@ +#!/bin/bash +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2020 Joyent, Inc. +# + +# +# mdb test driver +# +unalias -a +shopt -s xpg_echo +#set -o xtrace + +mt_arg0=$(basename $0) +mt_ksh="/usr/bin/ksh" +mt_mdb="/usr/bin/mdb" +mt_outdir= +mt_keep= +mt_all= +mt_tests= +mt_tnum=0 +mt_tfail=0 +mt_tsuc=0 + +function usage +{ + local msg="$*" + [[ -z "$msg" ]] || echo "$msg" 2>&1 + cat <&2 +Usage: $mt_arg0 [ -o dir ] [ -k ] [ -m executable ] [ -a | test ... ] + + -o dir Sets 'dir' as the output directory + -k Keep output from all tests, not just failures + -m mdb binary to test +USAGE + exit 2 +} + +function fatal +{ + local msg="$*" + [[ -z "$msg" ]] && msg="failed" + echo "$mt_arg0: $msg" >&2 + exit 1 +} + +function setup_outdir +{ + mt_outdir="$mt_outdir/$mt_arg0.$$" + mkdir -p $mt_outdir || fatal "failed to make output dir $mt_outdir" +} + +function run_single +{ + local name=$1 + local expect base ext exe command odir res reason input + + [[ -z "$name" ]] && fail "missing test to run" + base=${name##*/} + ext=${base##*.} + expect=${base%%.*} + odir="$mt_outdir/current" + [[ -z "$ext" ]] && fatal "found test without ext: $name" + [[ -z "$expect" ]] && fatal "found test without prefix: $name" + + case "$ext" in + "ksh") + command="$mt_ksh $name" + ;; + "mdb") + command="$mt_mdb" + input="$name" + ;; + "out") + # + # This is the file format for checking output against. + # + return 0 + ;; + *) + echo "skipping test $name (unknown extensino)" + return 0 + ;; + esac + + echo "Executing test $name ... \c" + mkdir -p "$odir" >/dev/null || fatal "can't make output directory" + if [[ -z "$input" ]]; then + MDB=$mt_mdb $command > "$odir/stdout" 2>"$odir/stderr" + res=$? + else + MDB=$mt_mdb $command < $input > "$odir/stdout" 2>"$odir/stderr" + res=$? + fi + + if [[ -f "$name.out" ]] && ! diff "$name.out" "$odir/stdout" >/dev/null; then + cp $name.out $odir/$base.out + reason="stdout mismatch" + elif [[ "$expect" == "tst" && $res -ne 0 ]]; then + reason="test exited $res, not zero" + elif [[ "$expect" == "err" && $res -eq 0 ]]; then + reason="test exited $res, not non-zero" + fi + + if [[ -n "$reason" ]]; then + echo "$reason" + ((mt_tfail++)) + mv "$odir" "$mt_outdir/failure.$mt_tfail" || fatal \ + "failed to move test output directory" + cp "$name" "$mt_outdir/failure.$mt_tfail/test" || fatal \ + "failed to copy test into output directory" + else + echo "passed" + ((mt_tsuc++)) + mv "$odir" "$mt_outdir/success.$mt_tsuc" || fatal \ + "failed to move test directory" + fi + + ((mt_tnum++)) +} + +function run_all +{ + local tests t + + tests=$(find . -type f -name '[tst,err]*.*.[ksh,mdb]*') + for t in $tests; do + run_single $t + done +} + +function welcome +{ + cat <&1 + exit 1 +fi + +$MDB < $TMPFILE +EOF + +DATA=$(cat $TMPFILE) +rm -f $TMPFILE + +[[ -z $DATA ]] diff --git a/usr/src/test/util-tests/tests/mdb/typedef/tst.deftypes32.mdb b/usr/src/test/util-tests/tests/mdb/typedef/tst.deftypes32.mdb new file mode 100644 index 0000000000..12c28075a8 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/typedef/tst.deftypes32.mdb @@ -0,0 +1,27 @@ +::typedef -c LP32 +::sizeof int8_t +::sizeof int16_t +::sizeof int32_t +::sizeof int64_t +::sizeof uint8_t +::sizeof uint16_t +::sizeof uint32_t +::sizeof uint64_t +::sizeof intptr_t +::sizeof uintptr_t +::sizeof uchar_t +::sizeof ushort_t +::sizeof uint_t +::sizeof ulong_t +::sizeof u_longlong_t +::sizeof ptrdiff_t +::sizeof signed +::sizeof unsigned +::sizeof void +::sizeof char +::sizeof short +::sizeof int +::sizeof long +::sizeof _Bool +::sizeof float +::sizeof double diff --git a/usr/src/test/util-tests/tests/mdb/typedef/tst.deftypes32.mdb.out b/usr/src/test/util-tests/tests/mdb/typedef/tst.deftypes32.mdb.out new file mode 100644 index 0000000000..792f42fbf2 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/typedef/tst.deftypes32.mdb.out @@ -0,0 +1,26 @@ +sizeof (int8_t) = 1 +sizeof (int16_t) = 2 +sizeof (int32_t) = 4 +sizeof (int64_t) = 8 +sizeof (uint8_t) = 1 +sizeof (uint16_t) = 2 +sizeof (uint32_t) = 4 +sizeof (uint64_t) = 8 +sizeof (intptr_t) = 4 +sizeof (uintptr_t) = 4 +sizeof (uchar_t) = 1 +sizeof (ushort_t) = 2 +sizeof (uint_t) = 4 +sizeof (ulong_t) = 4 +sizeof (u_longlong_t) = 8 +sizeof (ptrdiff_t) = 4 +sizeof (signed) = 4 +sizeof (unsigned) = 4 +sizeof (void) = 0 +sizeof (char) = 1 +sizeof (short) = 2 +sizeof (int) = 4 +sizeof (long) = 4 +sizeof (_Bool) = 1 +sizeof (float) = 4 +sizeof (double) = 8 diff --git a/usr/src/test/util-tests/tests/mdb/typedef/tst.deftypes64.mdb b/usr/src/test/util-tests/tests/mdb/typedef/tst.deftypes64.mdb new file mode 100644 index 0000000000..5ae94cdea0 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/typedef/tst.deftypes64.mdb @@ -0,0 +1,27 @@ +::typedef -c LP64 +::sizeof int8_t +::sizeof int16_t +::sizeof int32_t +::sizeof int64_t +::sizeof uint8_t +::sizeof uint16_t +::sizeof uint32_t +::sizeof uint64_t +::sizeof intptr_t +::sizeof uintptr_t +::sizeof uchar_t +::sizeof ushort_t +::sizeof uint_t +::sizeof ulong_t +::sizeof u_longlong_t +::sizeof ptrdiff_t +::sizeof signed +::sizeof unsigned +::sizeof void +::sizeof char +::sizeof short +::sizeof int +::sizeof long +::sizeof _Bool +::sizeof float +::sizeof double diff --git a/usr/src/test/util-tests/tests/mdb/typedef/tst.deftypes64.mdb.out b/usr/src/test/util-tests/tests/mdb/typedef/tst.deftypes64.mdb.out new file mode 100644 index 0000000000..83b85b943a --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/typedef/tst.deftypes64.mdb.out @@ -0,0 +1,26 @@ +sizeof (int8_t) = 1 +sizeof (int16_t) = 2 +sizeof (int32_t) = 4 +sizeof (int64_t) = 8 +sizeof (uint8_t) = 1 +sizeof (uint16_t) = 2 +sizeof (uint32_t) = 4 +sizeof (uint64_t) = 8 +sizeof (intptr_t) = 8 +sizeof (uintptr_t) = 8 +sizeof (uchar_t) = 1 +sizeof (ushort_t) = 2 +sizeof (uint_t) = 4 +sizeof (ulong_t) = 8 +sizeof (u_longlong_t) = 8 +sizeof (ptrdiff_t) = 8 +sizeof (signed) = 4 +sizeof (unsigned) = 4 +sizeof (void) = 0 +sizeof (char) = 1 +sizeof (short) = 2 +sizeof (int) = 4 +sizeof (long) = 8 +sizeof (_Bool) = 1 +sizeof (float) = 4 +sizeof (double) = 8 diff --git a/usr/src/test/util-tests/tests/mdb/typedef/tst.dellist.mdb b/usr/src/test/util-tests/tests/mdb/typedef/tst.dellist.mdb new file mode 100644 index 0000000000..e9009d7b68 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/typedef/tst.dellist.mdb @@ -0,0 +1,3 @@ +::typdef -c lp32 +::typedef -d +::typedef -l diff --git a/usr/src/test/util-tests/tests/mdb/typedef/tst.emptylist.mdb b/usr/src/test/util-tests/tests/mdb/typedef/tst.emptylist.mdb new file mode 100644 index 0000000000..6c7505ac1c --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/typedef/tst.emptylist.mdb @@ -0,0 +1 @@ +::typedef -l diff --git a/usr/src/test/util-tests/tests/mdb/typedef/tst.libctype.ksh b/usr/src/test/util-tests/tests/mdb/typedef/tst.libctype.ksh new file mode 100644 index 0000000000..cf517cf937 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/typedef/tst.libctype.ksh @@ -0,0 +1,6 @@ +$MDB /lib/libc.so <&1 + exit 1 + fi +done +exit 0 diff --git a/usr/src/test/util-tests/tests/mdb/typedef/tst.struct.mdb b/usr/src/test/util-tests/tests/mdb/typedef/tst.struct.mdb new file mode 100644 index 0000000000..2e0206e7ec --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/typedef/tst.struct.mdb @@ -0,0 +1,6 @@ +::typedef -c lp32 +::typedef "struct gift { uintptr_t stone[7]; void **white; }" gift_t +::sizeof gift_t +::print -at gift_t +::sizeof struct gift +::print -at struct gift diff --git a/usr/src/test/util-tests/tests/mdb/typedef/tst.struct.mdb.out b/usr/src/test/util-tests/tests/mdb/typedef/tst.struct.mdb.out new file mode 100644 index 0000000000..9a7d801742 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/typedef/tst.struct.mdb.out @@ -0,0 +1,10 @@ +sizeof (gift_t) = 0x28 +0 gift_t { + 0 uintptr_t [7] stone + 20 void **white +} +sizeof (struct gift) = 0x28 +0 struct gift { + 0 uintptr_t [7] stone + 20 void **white +} diff --git a/usr/src/test/util-tests/tests/mdb/typedef/tst.structselfref.mdb b/usr/src/test/util-tests/tests/mdb/typedef/tst.structselfref.mdb new file mode 100644 index 0000000000..85b3068e00 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/typedef/tst.structselfref.mdb @@ -0,0 +1,4 @@ +::typedef -c lp32 +::typedef "struct list { struct list *prev; struct list *next; }" list_t +::sizeof list_t +::print -at list_t diff --git a/usr/src/test/util-tests/tests/mdb/typedef/tst.structselfref.mdb.out b/usr/src/test/util-tests/tests/mdb/typedef/tst.structselfref.mdb.out new file mode 100644 index 0000000000..a6f4823ad1 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/typedef/tst.structselfref.mdb.out @@ -0,0 +1,5 @@ +sizeof (list_t) = 0x10 +0 list_t { + 0 struct list *prev + 8 struct list *next +} diff --git a/usr/src/test/util-tests/tests/mdb/typedef/tst.structvla.mdb b/usr/src/test/util-tests/tests/mdb/typedef/tst.structvla.mdb new file mode 100644 index 0000000000..27cd56c186 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/typedef/tst.structvla.mdb @@ -0,0 +1,4 @@ +::typedef -c lp32 +::typedef "struct gift { uintptr_t stone[7]; void **white; char owner[]; }" gift_t +::sizeof gift_t +::print -at gift_t diff --git a/usr/src/test/util-tests/tests/mdb/typedef/tst.structvla.mdb.out b/usr/src/test/util-tests/tests/mdb/typedef/tst.structvla.mdb.out new file mode 100644 index 0000000000..0a0d3d4029 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/typedef/tst.structvla.mdb.out @@ -0,0 +1,6 @@ +sizeof (gift_t) = 0x28 +0 gift_t { + 0 uintptr_t [7] stone + 20 void **white + 28 char [0] owner +} diff --git a/usr/src/test/util-tests/tests/mdb/typedef/tst.union.mdb b/usr/src/test/util-tests/tests/mdb/typedef/tst.union.mdb new file mode 100644 index 0000000000..966446caee --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/typedef/tst.union.mdb @@ -0,0 +1,6 @@ +::typedef -c lp64 +::typedef "union ringbearer { int frodo; char sam; long gandalf; }" ringbearer_t; +::sizeof ringbearer_t +::print -at ringbearer_t +::sizeof union ringbearer +::print -at union ringbearer diff --git a/usr/src/test/util-tests/tests/mdb/typedef/tst.union.mdb.out b/usr/src/test/util-tests/tests/mdb/typedef/tst.union.mdb.out new file mode 100644 index 0000000000..2afc2eabb9 --- /dev/null +++ b/usr/src/test/util-tests/tests/mdb/typedef/tst.union.mdb.out @@ -0,0 +1,12 @@ +sizeof (ringbearer_t) = 8 +0 ringbearer_t { + 0 int frodo + 0 char sam + 0 long gandalf +} +sizeof (union ringbearer) = 8 +0 union ringbearer { + 0 int frodo + 0 char sam + 0 long gandalf +} diff --git a/usr/src/tools/findunref/exception_list.open b/usr/src/tools/findunref/exception_list.open index 6c432c78c1..ae18a9c8ac 100644 --- a/usr/src/tools/findunref/exception_list.open +++ b/usr/src/tools/findunref/exception_list.open @@ -23,6 +23,7 @@ # # Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright 2014 Garrett D'Amore +# Copyright 2020 Joyent, Inc. # # # open-tree exception list @@ -239,4 +240,3 @@ # ld tests which are not currently delivered # ./usr/src/cmd/sgs/test -./usr/src/cmd/mdb/test -- cgit v1.2.3