Bash tool libraries

Registered by Daniel Nichter

Since Bash can source other files, we can develop "Bash libraries" for any common functions. These can be put into lib/ and tested.

A number of Bash libs were created and used for pt-stalk 2.0 and other tools, and released in Percona Toolkit 2.0.3. See lib/bash/* and t/lib/bash.t and t/lib/bash/*.

util/test-bash-functions is used to test Bash libs. It produces valid TAP output (so it works with Perl prove), and it mimics Perl Test::More by having test subs like ok(), is(), and no_diff(). t/lib/bash.t calls this helper script to test one or Bash libs in t/lib/bash/.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Medium
Drafter:
Daniel Nichter
Direction:
Approved
Assignee:
Daniel Nichter
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 2.0.3
Started by
Daniel Nichter
Completed by
Daniel Nichter

Whiteboard

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.