summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2013-01-20 02:57:36 +0000
committerschmonz <schmonz@pkgsrc.org>2013-01-20 02:57:36 +0000
commita437cec55df3c94ccd5e7532c7128146d11835e0 (patch)
tree4a761f8762e6c20280720b3a7e572d3725a2cc2f /devel
parent092f373242828b555b0f701e9cd425f14cafb6ce (diff)
downloadpkgsrc-a437cec55df3c94ccd5e7532c7128146d11835e0.tar.gz
pkglint(1) determines its list of basic variable types by grepping
itself for certain if/elsif conditions. This combination of cleverness and large conditional block should be replaced with simple, table-driven code. But first we have to get the functionality under test, which I've begun to do here. Initialize a package global with the contents of $0, and override it in test (otherwise self-grepping breaks because $0 is the test script). Extract the dirty Test::Trap details to test_unit(). Test main() for a few common values of @ARGV. Notice the aforementioned cleverness because it broke an expected success, and fix it just enough to test get_vartypes_basictypes() for a couple expected types. No functional change intended. I've manually tested the small changes to pkglint.pl and have also verified that a couple packages lint the same as before.
Diffstat (limited to 'devel')
0 files changed, 0 insertions, 0 deletions