vim: define default filename patterns for vimrc etc

This is meant to match:
 - vimrc, gvimrc (typically used in dotfiles repos or system-wide config)
 - .vimrc, _vimrc (config file name for unix/windows)
 - .gvimrc, _gvimrc (GUI config file name unix/windows)
units: Fix color output to support dash
units: Add decorate() function

Signed-off-by: Masatake YAMATO <yamato@redhat.com>

Conflicts:
	misc/units
Merge branch 'vhda-units/color-dash-support'
units: add shrink subcommand which do the same as badinput.c

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
units: define WITH_VALGRIND at the top level

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
units: introduce --colorized-output option

In the case that escape sequences in the output is not desired,
the option can be used.

New global variable COLORIZED_OUTPUT is introduced. _CONNECTED_TO_FILE
is replaced with it.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Merge pull request #120 from blueyed/vim-add-vimrc-pattern

vim: define default filename patterns for vimrc etc
units: record the result of test to RESULT.tmp

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
units: mark _VALGRIND_EXIT as readonly constant

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
units: use dos2unix to split the output of --list-* line by line

Following code didn't work well on windows:

     for f in $(ctags --list-features); do
     	do_something_with $f
     done

This patch introduces dos2unix to split the output of ctags line by line

This is suggested by #116 by @ffes.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
units: allow multiple units

multiple units seprated by comma can be specified with UNITS=.

  $ make -f testing.mak test.units UNITS=bug852368.cpp,bug816636.sml

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
units: simplfy units target
Fixed bug encounted when testing under Windows/Cygwin
units: Don't include the test directory in the output tags file

Not having the test directory name in the expected output makes it
easier to move the test case, e.g. from a ".i" or ".b" directory
(broken tests) to a ".d" one (normal test) e.g. when fixing a parser
bug.
units: Strip directory name from all expected output
units: add SHRINK parameter to testing.mak

If SHRINK=1 is specified as argument for units target of testing.mak,
and a test case if failed or timed out, shurink action is automaically
taken.

Here is an example (A bug is embedded for produce this exmpale):

    $ make -f testing.mak units SHRINK=1 UNITS_TIMEOUT=1
    Testing test.py as Python                                   passed
    Testing test.vhd as VHDL                                    failed (TIMED OUT)
    Shringking Units/test.vhd.t/input.vhd as VHDL
    [0     192381]...timeout(124)
    [0          0]...ok(0)
    [0     192381]...timeout(124)
    [0      96191]...timeout(124)
    [0      48096]...timeout(124)
    ...
    [158      160]...timeout(124)
    [159      160]...timeout(124)
    Minimal badinput input: Units/test.vhd.t/SHRINK-VHDL.tmp
    ............................................................
    a
    Testing traffic_signal.v as Verilog                         passed

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Merge pull request #122 from dtikhonov/master

Fixed a bug in readLine
Merge branch 'units-basename' of https://github.com/b4n/fishman-ctags into b4n-units-basename

Conflicts:
	misc/units
Merge branch 'b4n-units-basename'