From 0bc58b66a4850cdb8458a86c3d9a2fc81de82aa3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:14:42 +0200 Subject: Adding upstream version 1:2.11. Signed-off-by: Daniel Baumann --- test/fixtures/7z/a.7z | Bin 0 -> 109 bytes test/fixtures/7z/f.txt | 1 + test/fixtures/_filedir/a b/i | 0 test/fixtures/_filedir/a$b/h | 0 test/fixtures/_filedir/a&b/f | 0 test/fixtures/_filedir/a'b/c | 0 test/fixtures/_filedir/ab/e | 0 "test/fixtures/_filedir/a\303\251/g" | 0 test/fixtures/_filedir/brackets/[x] | 1 + test/fixtures/_filedir/brackets/x | 1 + test/fixtures/_filedir/ext/ee.e1 | 0 test/fixtures/_filedir/ext/ff.e2 | 0 test/fixtures/_filedir/ext/foo/.gitignore | 0 test/fixtures/_filedir/ext/gg.e1 | 0 test/fixtures/_filedir/ext/hh.e2 | 0 test/fixtures/_filedir/ext/ii.E1 | 0 test/fixtures/_get_cword/sea | 0 test/fixtures/_get_cword/seb | 0 test/fixtures/_get_cword/sec | 0 .../\303\244\303\244\303\244\303\244\302\247" | 0 .../_known_hosts_real/.ssh/config_asterisk_1 | 1 + .../_known_hosts_real/.ssh/config_asterisk_2 | 1 + .../_known_hosts_real/.ssh/config_question_mark | 1 + .../_known_hosts_real/.ssh/config_relative_path | 1 + test/fixtures/_known_hosts_real/config | 7 ++ test/fixtures/_known_hosts_real/config_full_path | 1 + test/fixtures/_known_hosts_real/config_include | 7 ++ .../_known_hosts_real/config_include_recursion | 1 + test/fixtures/_known_hosts_real/config_tilde | 4 + .../fixtures/_known_hosts_real/gee-filename-canary | 0 test/fixtures/_known_hosts_real/known_hosts | 14 +++ test/fixtures/_known_hosts_real/known_hosts2 | 1 + test/fixtures/_known_hosts_real/known_hosts3 | 1 + test/fixtures/_known_hosts_real/known_hosts4 | 1 + test/fixtures/_known_hosts_real/localhost_config | 1 + test/fixtures/_known_hosts_real/localhost_hosts | 3 + test/fixtures/_known_hosts_real/spaced conf | 8 ++ .../fixtures/_known_hosts_real/spaced known_hosts | 4 + test/fixtures/_longopt/grep--help.txt | 70 ++++++++++++ test/fixtures/_longopt/various.txt | 5 + test/fixtures/acroread/bar | 0 test/fixtures/acroread/foo.d/.gitignore | 0 test/fixtures/acroread/t.pdf | 0 test/fixtures/ant/.gitignore | 1 + test/fixtures/ant/build-with-import.xml | 8 ++ test/fixtures/ant/build.xml | 17 +++ test/fixtures/ant/imported-build.xml | 6 + test/fixtures/ant/named-build.xml | 6 + test/fixtures/compgen/a'b/c | 0 test/fixtures/compgen/t1.txt | 121 +++++++++++++++++++++ test/fixtures/compgen/t2.txt | 121 +++++++++++++++++++++ test/fixtures/compgen/t3.txt | 121 +++++++++++++++++++++ test/fixtures/cvs/.cvspass | 2 + test/fixtures/cvs/foo/CVS/Entries | 2 + test/fixtures/cvs/foo/bar | 0 test/fixtures/cvs/foo/quux | 0 test/fixtures/dnssec-keygen/dnssec-keygen | 76 +++++++++++++ .../dpkg/bash-completion-test-nonsubject.txt | 0 .../fixtures/dpkg/bash-completion-test-subject.deb | 0 test/fixtures/evince/.BMP | 0 test/fixtures/evince/.CBR | 0 test/fixtures/evince/.CBZ | 0 test/fixtures/evince/.DJV | 0 test/fixtures/evince/.DJVU | 0 test/fixtures/evince/.DVI | 0 test/fixtures/evince/.DVI.BZ2 | 0 test/fixtures/evince/.DVI.GZ | 0 test/fixtures/evince/.DVI.bz2 | 0 test/fixtures/evince/.DVI.gz | 0 test/fixtures/evince/.EPS | 0 test/fixtures/evince/.EPS.BZ2 | 0 test/fixtures/evince/.EPS.GZ | 0 test/fixtures/evince/.EPS.bz2 | 0 test/fixtures/evince/.EPS.gz | 0 test/fixtures/evince/.GIF | 0 test/fixtures/evince/.ICO | 0 test/fixtures/evince/.JPEG | 0 test/fixtures/evince/.JPG | 0 test/fixtures/evince/.MIFF | 0 test/fixtures/evince/.PBM | 0 test/fixtures/evince/.PCX | 0 test/fixtures/evince/.PDF | 0 test/fixtures/evince/.PDF.BZ2 | 0 test/fixtures/evince/.PDF.GZ | 0 test/fixtures/evince/.PDF.bz2 | 0 test/fixtures/evince/.PDF.gz | 0 test/fixtures/evince/.PGM | 0 test/fixtures/evince/.PNG | 0 test/fixtures/evince/.PNM | 0 test/fixtures/evince/.PPM | 0 test/fixtures/evince/.PS | 0 test/fixtures/evince/.PS.BZ2 | 0 test/fixtures/evince/.PS.GZ | 0 test/fixtures/evince/.PS.bz2 | 0 test/fixtures/evince/.PS.gz | 0 test/fixtures/evince/.TGA | 0 test/fixtures/evince/.TIF | 0 test/fixtures/evince/.TIFF | 0 test/fixtures/evince/.XPM | 0 test/fixtures/evince/.XWD | 0 test/fixtures/evince/.bmp | 0 test/fixtures/evince/.cbr | 0 test/fixtures/evince/.cbz | 0 test/fixtures/evince/.djv | 0 test/fixtures/evince/.djvu | 0 test/fixtures/evince/.dvi | 0 test/fixtures/evince/.dvi.BZ2 | 0 test/fixtures/evince/.dvi.GZ | 0 test/fixtures/evince/.dvi.bz2 | 0 test/fixtures/evince/.dvi.gz | 0 test/fixtures/evince/.eps | 0 test/fixtures/evince/.eps.BZ2 | 0 test/fixtures/evince/.eps.GZ | 0 test/fixtures/evince/.eps.bz2 | 0 test/fixtures/evince/.eps.gz | 0 test/fixtures/evince/.gif | 0 test/fixtures/evince/.ico | 0 test/fixtures/evince/.jpeg | 0 test/fixtures/evince/.jpg | 0 test/fixtures/evince/.miff | 0 test/fixtures/evince/.pbm | 0 test/fixtures/evince/.pcx | 0 test/fixtures/evince/.pdf | 0 test/fixtures/evince/.pdf.BZ2 | 0 test/fixtures/evince/.pdf.GZ | 0 test/fixtures/evince/.pdf.bz2 | 0 test/fixtures/evince/.pdf.gz | 0 test/fixtures/evince/.pgm | 0 test/fixtures/evince/.png | 0 test/fixtures/evince/.pnm | 0 test/fixtures/evince/.ppm | 0 test/fixtures/evince/.ps | 0 test/fixtures/evince/.ps.BZ2 | 0 test/fixtures/evince/.ps.GZ | 0 test/fixtures/evince/.ps.bz2 | 0 test/fixtures/evince/.ps.gz | 0 test/fixtures/evince/.tga | 0 test/fixtures/evince/.tif | 0 test/fixtures/evince/.tiff | 0 test/fixtures/evince/.txt | 0 test/fixtures/evince/.xpm | 0 test/fixtures/evince/.xwd | 0 test/fixtures/evince/foo/.gitignore | 0 test/fixtures/gdb/core | 0 test/fixtures/gdb/core-NOT | 0 test/fixtures/gdb/core.12345 | 0 ...core.weston.1000.deadbeef.5308.1555362132000000 | 0 test/fixtures/gdb/corenot | 0 test/fixtures/htpasswd/htpasswd | 2 + test/fixtures/info/bash-completion.info | 0 test/fixtures/isql/odbc.ini | 3 + test/fixtures/java/a/b$c.class | 0 test/fixtures/java/a/b.class | 0 test/fixtures/java/a/c/README.txt | 2 + test/fixtures/java/a/c/d.class | 0 test/fixtures/java/a/d.txt | 0 test/fixtures/java/bashcomp.jar | Bin 0 -> 788 bytes test/fixtures/java/bashcomp.war | 0 test/fixtures/java/no-complete.txt | 1 + test/fixtures/kdvi/.DVI | 0 test/fixtures/kdvi/.DVI.Z | 0 test/fixtures/kdvi/.DVI.bz2 | 0 test/fixtures/kdvi/.DVI.gz | 0 test/fixtures/kdvi/.dvi | 0 test/fixtures/kdvi/.dvi.Z | 0 test/fixtures/kdvi/.dvi.bz2 | 0 test/fixtures/kdvi/.dvi.gz | 0 test/fixtures/kdvi/.txt | 0 test/fixtures/kdvi/foo/.gitignore | 0 test/fixtures/kpdf/.EPS | 0 test/fixtures/kpdf/.PDF | 0 test/fixtures/kpdf/.PS | 0 test/fixtures/kpdf/.eps | 0 test/fixtures/kpdf/.pdf | 0 test/fixtures/kpdf/.ps | 0 test/fixtures/kpdf/.txt | 0 test/fixtures/kpdf/foo/.gitignore | 0 test/fixtures/lftp/.lftp/bookmarks | 3 + test/fixtures/lilo/lilo.conf | 34 ++++++ test/fixtures/make/.gitignore | 1 + test/fixtures/make/Makefile | 46 ++++++++ test/fixtures/make/sample.c | 8 ++ test/fixtures/make/sample.d | 3 + test/fixtures/make/sample.h | 0 test/fixtures/man/man/quux.8 | 0 .../man/man1/bash-completion-testcase.1.bz2 | 0 test/fixtures/man/man1/foo.1 | 0 test/fixtures/mount/bin/showmount | 12 ++ test/fixtures/mount/test-fstab | 24 ++++ test/fixtures/mplayer/.mplayer/config | 2 + test/fixtures/mplayer/.mplayer/mencoder.conf | 1 + test/fixtures/mutt/bar/.gitignore | 0 test/fixtures/mutt/bar/muttrc_b | 1 + test/fixtures/mutt/foo/.gitignore | 0 test/fixtures/mutt/foo/muttrc_f | 0 test/fixtures/mutt/muttrc | 4 + test/fixtures/nmap/nmap-h.txt | 114 +++++++++++++++++++ test/fixtures/perl/Devel/BashCompletion.pm | 3 + test/fixtures/perldoc/BashCompletionDoc.pod | 0 test/fixtures/perldoc/BashCompletionModule.pm | 4 + test/fixtures/pkgtools/db/a-1.0,1/.gitignore | 0 test/fixtures/pkgtools/db/b-c-d-2.0_2/.gitignore | 0 test/fixtures/pkgtools/ports/.gitignore | 2 + test/fixtures/pkgtools/ports/INDEX.dist | 3 + test/fixtures/pytest/test_async.py | 17 +++ .../ri/BashCompletion/cdesc-BashCompletion.ri | Bin 0 -> 197 bytes .../ri/BashCompletion/cdesc-BashCompletion.yaml | 15 +++ test/fixtures/ri/bashcompletion.rb | 2 + test/fixtures/ri/cache.ri | Bin 0 -> 136 bytes test/fixtures/ri/created.rid | 1 + test/fixtures/scp/config | 8 ++ test/fixtures/scp/known_hosts | 5 + test/fixtures/scp/spaced conf | 6 + test/fixtures/sftp/config | 8 ++ test/fixtures/sftp/known_hosts | 5 + test/fixtures/sftp/spaced conf | 6 + test/fixtures/shared/.ssh/known_hosts | 1 + test/fixtures/shared/bin/arp | 16 +++ test/fixtures/shared/bin/ifconfig | 24 ++++ test/fixtures/shared/default/bar | 0 test/fixtures/shared/default/bar bar.d/foo | 0 test/fixtures/shared/default/foo | 1 + test/fixtures/shared/default/foo.d/foo | 0 test/fixtures/shared/empty_dir/.nothing_here | 0 test/fixtures/shared/ld.so.conf.d/foo.txt | 0 test/fixtures/shared/ld.so.conf.d/libfoo.conf | 0 test/fixtures/shared/ld.so.conf.d/libfoo.so | 0 test/fixtures/shared/ld.so.conf.d/libfoo.so.1 | 0 test/fixtures/slackware/home/abc-4-i686-1.txz | 1 + test/fixtures/slackware/home/opq-1.0-2.i386.rpm | 1 + test/fixtures/slackware/home/tcl.d/tcl.tgz | 1 + .../slackware/usr/src/slapt-src/slackbuilds_data | 20 ++++ .../var/log/packages/radeontool-1.6.1-i486-1 | 24 ++++ .../slackware/var/log/packages/rzip-2.1-i486-1 | 29 +++++ test/fixtures/slackware/var/slapt-get/package_data | 47 ++++++++ test/fixtures/ssh-copy-id/.ssh/id_rsa | 0 test/fixtures/ssh-copy-id/.ssh/id_rsa.pub | 1 + test/fixtures/ssh/config | 1 + test/fixtures/ssh/known_hosts | 5 + test/fixtures/ssh/spaced conf | 6 + test/fixtures/tar/archive.tar.xz | Bin 0 -> 10240 bytes test/fixtures/tar/dir/fileA | 0 test/fixtures/tar/dir/fileB | 0 test/fixtures/tar/dir/fileC | 0 test/fixtures/tar/dir/hello | 0 test/fixtures/tar/dir2/.nothing_here | 0 test/fixtures/tar/escape.tar | Bin 0 -> 10240 bytes test/fixtures/tox/tox.ini | 6 + test/fixtures/xz/a/b | 0 test/fixtures/xz/bashcomp.lzma | 0 test/fixtures/xz/bashcomp.tar | 0 test/fixtures/xz/bashcomp.tar.xz | Bin 0 -> 196 bytes test/fixtures/xz/bashcomp.tlz | 0 test/fixtures/xz/bashcomp.xz | 0 254 files changed, 1146 insertions(+) create mode 100644 test/fixtures/7z/a.7z create mode 100644 test/fixtures/7z/f.txt create mode 100644 test/fixtures/_filedir/a b/i create mode 100644 test/fixtures/_filedir/a$b/h create mode 100644 test/fixtures/_filedir/a&b/f create mode 100644 test/fixtures/_filedir/a'b/c create mode 100644 test/fixtures/_filedir/ab/e create mode 100644 "test/fixtures/_filedir/a\303\251/g" create mode 100644 test/fixtures/_filedir/brackets/[x] create mode 100644 test/fixtures/_filedir/brackets/x create mode 100644 test/fixtures/_filedir/ext/ee.e1 create mode 100644 test/fixtures/_filedir/ext/ff.e2 create mode 100644 test/fixtures/_filedir/ext/foo/.gitignore create mode 100644 test/fixtures/_filedir/ext/gg.e1 create mode 100644 test/fixtures/_filedir/ext/hh.e2 create mode 100644 test/fixtures/_filedir/ext/ii.E1 create mode 100644 test/fixtures/_get_cword/sea create mode 100644 test/fixtures/_get_cword/seb create mode 100644 test/fixtures/_get_cword/sec create mode 100644 "test/fixtures/_get_cword/\303\244\303\244\303\244\303\244\302\247" create mode 100644 test/fixtures/_known_hosts_real/.ssh/config_asterisk_1 create mode 100644 test/fixtures/_known_hosts_real/.ssh/config_asterisk_2 create mode 100644 test/fixtures/_known_hosts_real/.ssh/config_question_mark create mode 100644 test/fixtures/_known_hosts_real/.ssh/config_relative_path create mode 100644 test/fixtures/_known_hosts_real/config create mode 100644 test/fixtures/_known_hosts_real/config_full_path create mode 100644 test/fixtures/_known_hosts_real/config_include create mode 100644 test/fixtures/_known_hosts_real/config_include_recursion create mode 100644 test/fixtures/_known_hosts_real/config_tilde create mode 100644 test/fixtures/_known_hosts_real/gee-filename-canary create mode 100644 test/fixtures/_known_hosts_real/known_hosts create mode 100644 test/fixtures/_known_hosts_real/known_hosts2 create mode 100644 test/fixtures/_known_hosts_real/known_hosts3 create mode 100644 test/fixtures/_known_hosts_real/known_hosts4 create mode 100644 test/fixtures/_known_hosts_real/localhost_config create mode 100644 test/fixtures/_known_hosts_real/localhost_hosts create mode 100644 test/fixtures/_known_hosts_real/spaced conf create mode 100644 test/fixtures/_known_hosts_real/spaced known_hosts create mode 100644 test/fixtures/_longopt/grep--help.txt create mode 100644 test/fixtures/_longopt/various.txt create mode 100644 test/fixtures/acroread/bar create mode 100644 test/fixtures/acroread/foo.d/.gitignore create mode 100644 test/fixtures/acroread/t.pdf create mode 100644 test/fixtures/ant/.gitignore create mode 100644 test/fixtures/ant/build-with-import.xml create mode 100644 test/fixtures/ant/build.xml create mode 100644 test/fixtures/ant/imported-build.xml create mode 100644 test/fixtures/ant/named-build.xml create mode 100644 test/fixtures/compgen/a'b/c create mode 100644 test/fixtures/compgen/t1.txt create mode 100644 test/fixtures/compgen/t2.txt create mode 100644 test/fixtures/compgen/t3.txt create mode 100644 test/fixtures/cvs/.cvspass create mode 100644 test/fixtures/cvs/foo/CVS/Entries create mode 100644 test/fixtures/cvs/foo/bar create mode 100644 test/fixtures/cvs/foo/quux create mode 100755 test/fixtures/dnssec-keygen/dnssec-keygen create mode 100644 test/fixtures/dpkg/bash-completion-test-nonsubject.txt create mode 100644 test/fixtures/dpkg/bash-completion-test-subject.deb create mode 100644 test/fixtures/evince/.BMP create mode 100644 test/fixtures/evince/.CBR create mode 100644 test/fixtures/evince/.CBZ create mode 100644 test/fixtures/evince/.DJV create mode 100644 test/fixtures/evince/.DJVU create mode 100644 test/fixtures/evince/.DVI create mode 100644 test/fixtures/evince/.DVI.BZ2 create mode 100644 test/fixtures/evince/.DVI.GZ create mode 100644 test/fixtures/evince/.DVI.bz2 create mode 100644 test/fixtures/evince/.DVI.gz create mode 100644 test/fixtures/evince/.EPS create mode 100644 test/fixtures/evince/.EPS.BZ2 create mode 100644 test/fixtures/evince/.EPS.GZ create mode 100644 test/fixtures/evince/.EPS.bz2 create mode 100644 test/fixtures/evince/.EPS.gz create mode 100644 test/fixtures/evince/.GIF create mode 100644 test/fixtures/evince/.ICO create mode 100644 test/fixtures/evince/.JPEG create mode 100644 test/fixtures/evince/.JPG create mode 100644 test/fixtures/evince/.MIFF create mode 100644 test/fixtures/evince/.PBM create mode 100644 test/fixtures/evince/.PCX create mode 100644 test/fixtures/evince/.PDF create mode 100644 test/fixtures/evince/.PDF.BZ2 create mode 100644 test/fixtures/evince/.PDF.GZ create mode 100644 test/fixtures/evince/.PDF.bz2 create mode 100644 test/fixtures/evince/.PDF.gz create mode 100644 test/fixtures/evince/.PGM create mode 100644 test/fixtures/evince/.PNG create mode 100644 test/fixtures/evince/.PNM create mode 100644 test/fixtures/evince/.PPM create mode 100644 test/fixtures/evince/.PS create mode 100644 test/fixtures/evince/.PS.BZ2 create mode 100644 test/fixtures/evince/.PS.GZ create mode 100644 test/fixtures/evince/.PS.bz2 create mode 100644 test/fixtures/evince/.PS.gz create mode 100644 test/fixtures/evince/.TGA create mode 100644 test/fixtures/evince/.TIF create mode 100644 test/fixtures/evince/.TIFF create mode 100644 test/fixtures/evince/.XPM create mode 100644 test/fixtures/evince/.XWD create mode 100644 test/fixtures/evince/.bmp create mode 100644 test/fixtures/evince/.cbr create mode 100644 test/fixtures/evince/.cbz create mode 100644 test/fixtures/evince/.djv create mode 100644 test/fixtures/evince/.djvu create mode 100644 test/fixtures/evince/.dvi create mode 100644 test/fixtures/evince/.dvi.BZ2 create mode 100644 test/fixtures/evince/.dvi.GZ create mode 100644 test/fixtures/evince/.dvi.bz2 create mode 100644 test/fixtures/evince/.dvi.gz create mode 100644 test/fixtures/evince/.eps create mode 100644 test/fixtures/evince/.eps.BZ2 create mode 100644 test/fixtures/evince/.eps.GZ create mode 100644 test/fixtures/evince/.eps.bz2 create mode 100644 test/fixtures/evince/.eps.gz create mode 100644 test/fixtures/evince/.gif create mode 100644 test/fixtures/evince/.ico create mode 100644 test/fixtures/evince/.jpeg create mode 100644 test/fixtures/evince/.jpg create mode 100644 test/fixtures/evince/.miff create mode 100644 test/fixtures/evince/.pbm create mode 100644 test/fixtures/evince/.pcx create mode 100644 test/fixtures/evince/.pdf create mode 100644 test/fixtures/evince/.pdf.BZ2 create mode 100644 test/fixtures/evince/.pdf.GZ create mode 100644 test/fixtures/evince/.pdf.bz2 create mode 100644 test/fixtures/evince/.pdf.gz create mode 100644 test/fixtures/evince/.pgm create mode 100644 test/fixtures/evince/.png create mode 100644 test/fixtures/evince/.pnm create mode 100644 test/fixtures/evince/.ppm create mode 100644 test/fixtures/evince/.ps create mode 100644 test/fixtures/evince/.ps.BZ2 create mode 100644 test/fixtures/evince/.ps.GZ create mode 100644 test/fixtures/evince/.ps.bz2 create mode 100644 test/fixtures/evince/.ps.gz create mode 100644 test/fixtures/evince/.tga create mode 100644 test/fixtures/evince/.tif create mode 100644 test/fixtures/evince/.tiff create mode 100644 test/fixtures/evince/.txt create mode 100644 test/fixtures/evince/.xpm create mode 100644 test/fixtures/evince/.xwd create mode 100644 test/fixtures/evince/foo/.gitignore create mode 100644 test/fixtures/gdb/core create mode 100644 test/fixtures/gdb/core-NOT create mode 100644 test/fixtures/gdb/core.12345 create mode 100644 test/fixtures/gdb/core.weston.1000.deadbeef.5308.1555362132000000 create mode 100644 test/fixtures/gdb/corenot create mode 100644 test/fixtures/htpasswd/htpasswd create mode 100644 test/fixtures/info/bash-completion.info create mode 100644 test/fixtures/isql/odbc.ini create mode 100644 test/fixtures/java/a/b$c.class create mode 100644 test/fixtures/java/a/b.class create mode 100644 test/fixtures/java/a/c/README.txt create mode 100644 test/fixtures/java/a/c/d.class create mode 100644 test/fixtures/java/a/d.txt create mode 100644 test/fixtures/java/bashcomp.jar create mode 100644 test/fixtures/java/bashcomp.war create mode 100644 test/fixtures/java/no-complete.txt create mode 100644 test/fixtures/kdvi/.DVI create mode 100644 test/fixtures/kdvi/.DVI.Z create mode 100644 test/fixtures/kdvi/.DVI.bz2 create mode 100644 test/fixtures/kdvi/.DVI.gz create mode 100644 test/fixtures/kdvi/.dvi create mode 100644 test/fixtures/kdvi/.dvi.Z create mode 100644 test/fixtures/kdvi/.dvi.bz2 create mode 100644 test/fixtures/kdvi/.dvi.gz create mode 100644 test/fixtures/kdvi/.txt create mode 100644 test/fixtures/kdvi/foo/.gitignore create mode 100644 test/fixtures/kpdf/.EPS create mode 100644 test/fixtures/kpdf/.PDF create mode 100644 test/fixtures/kpdf/.PS create mode 100644 test/fixtures/kpdf/.eps create mode 100644 test/fixtures/kpdf/.pdf create mode 100644 test/fixtures/kpdf/.ps create mode 100644 test/fixtures/kpdf/.txt create mode 100644 test/fixtures/kpdf/foo/.gitignore create mode 100644 test/fixtures/lftp/.lftp/bookmarks create mode 100644 test/fixtures/lilo/lilo.conf create mode 100644 test/fixtures/make/.gitignore create mode 100644 test/fixtures/make/Makefile create mode 100644 test/fixtures/make/sample.c create mode 100644 test/fixtures/make/sample.d create mode 100644 test/fixtures/make/sample.h create mode 100644 test/fixtures/man/man/quux.8 create mode 100644 test/fixtures/man/man1/bash-completion-testcase.1.bz2 create mode 100644 test/fixtures/man/man1/foo.1 create mode 100755 test/fixtures/mount/bin/showmount create mode 100644 test/fixtures/mount/test-fstab create mode 100644 test/fixtures/mplayer/.mplayer/config create mode 100644 test/fixtures/mplayer/.mplayer/mencoder.conf create mode 100644 test/fixtures/mutt/bar/.gitignore create mode 100644 test/fixtures/mutt/bar/muttrc_b create mode 100644 test/fixtures/mutt/foo/.gitignore create mode 100644 test/fixtures/mutt/foo/muttrc_f create mode 100644 test/fixtures/mutt/muttrc create mode 100644 test/fixtures/nmap/nmap-h.txt create mode 100644 test/fixtures/perl/Devel/BashCompletion.pm create mode 100644 test/fixtures/perldoc/BashCompletionDoc.pod create mode 100644 test/fixtures/perldoc/BashCompletionModule.pm create mode 100644 test/fixtures/pkgtools/db/a-1.0,1/.gitignore create mode 100644 test/fixtures/pkgtools/db/b-c-d-2.0_2/.gitignore create mode 100644 test/fixtures/pkgtools/ports/.gitignore create mode 100644 test/fixtures/pkgtools/ports/INDEX.dist create mode 100644 test/fixtures/pytest/test_async.py create mode 100644 test/fixtures/ri/BashCompletion/cdesc-BashCompletion.ri create mode 100644 test/fixtures/ri/BashCompletion/cdesc-BashCompletion.yaml create mode 100644 test/fixtures/ri/bashcompletion.rb create mode 100644 test/fixtures/ri/cache.ri create mode 100644 test/fixtures/ri/created.rid create mode 100644 test/fixtures/scp/config create mode 100644 test/fixtures/scp/known_hosts create mode 100644 test/fixtures/scp/spaced conf create mode 100644 test/fixtures/sftp/config create mode 100644 test/fixtures/sftp/known_hosts create mode 100644 test/fixtures/sftp/spaced conf create mode 100644 test/fixtures/shared/.ssh/known_hosts create mode 100755 test/fixtures/shared/bin/arp create mode 100755 test/fixtures/shared/bin/ifconfig create mode 100644 test/fixtures/shared/default/bar create mode 100644 test/fixtures/shared/default/bar bar.d/foo create mode 100644 test/fixtures/shared/default/foo create mode 100644 test/fixtures/shared/default/foo.d/foo create mode 100644 test/fixtures/shared/empty_dir/.nothing_here create mode 100644 test/fixtures/shared/ld.so.conf.d/foo.txt create mode 100644 test/fixtures/shared/ld.so.conf.d/libfoo.conf create mode 100644 test/fixtures/shared/ld.so.conf.d/libfoo.so create mode 100644 test/fixtures/shared/ld.so.conf.d/libfoo.so.1 create mode 100644 test/fixtures/slackware/home/abc-4-i686-1.txz create mode 100644 test/fixtures/slackware/home/opq-1.0-2.i386.rpm create mode 100644 test/fixtures/slackware/home/tcl.d/tcl.tgz create mode 100644 test/fixtures/slackware/usr/src/slapt-src/slackbuilds_data create mode 100644 test/fixtures/slackware/var/log/packages/radeontool-1.6.1-i486-1 create mode 100644 test/fixtures/slackware/var/log/packages/rzip-2.1-i486-1 create mode 100644 test/fixtures/slackware/var/slapt-get/package_data create mode 100644 test/fixtures/ssh-copy-id/.ssh/id_rsa create mode 100644 test/fixtures/ssh-copy-id/.ssh/id_rsa.pub create mode 100644 test/fixtures/ssh/config create mode 100644 test/fixtures/ssh/known_hosts create mode 100644 test/fixtures/ssh/spaced conf create mode 100644 test/fixtures/tar/archive.tar.xz create mode 100644 test/fixtures/tar/dir/fileA create mode 100644 test/fixtures/tar/dir/fileB create mode 100644 test/fixtures/tar/dir/fileC create mode 100644 test/fixtures/tar/dir/hello create mode 100644 test/fixtures/tar/dir2/.nothing_here create mode 100644 test/fixtures/tar/escape.tar create mode 100644 test/fixtures/tox/tox.ini create mode 100644 test/fixtures/xz/a/b create mode 100644 test/fixtures/xz/bashcomp.lzma create mode 100644 test/fixtures/xz/bashcomp.tar create mode 100644 test/fixtures/xz/bashcomp.tar.xz create mode 100644 test/fixtures/xz/bashcomp.tlz create mode 100644 test/fixtures/xz/bashcomp.xz (limited to 'test/fixtures') diff --git a/test/fixtures/7z/a.7z b/test/fixtures/7z/a.7z new file mode 100644 index 0000000..3357064 Binary files /dev/null and b/test/fixtures/7z/a.7z differ diff --git a/test/fixtures/7z/f.txt b/test/fixtures/7z/f.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/test/fixtures/7z/f.txt @@ -0,0 +1 @@ + diff --git a/test/fixtures/_filedir/a b/i b/test/fixtures/_filedir/a b/i new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/_filedir/a$b/h b/test/fixtures/_filedir/a$b/h new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/_filedir/a&b/f b/test/fixtures/_filedir/a&b/f new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/_filedir/a'b/c b/test/fixtures/_filedir/a'b/c new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/_filedir/ab/e b/test/fixtures/_filedir/ab/e new file mode 100644 index 0000000..e69de29 diff --git "a/test/fixtures/_filedir/a\303\251/g" "b/test/fixtures/_filedir/a\303\251/g" new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/_filedir/brackets/[x] b/test/fixtures/_filedir/brackets/[x] new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/test/fixtures/_filedir/brackets/[x] @@ -0,0 +1 @@ + diff --git a/test/fixtures/_filedir/brackets/x b/test/fixtures/_filedir/brackets/x new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/test/fixtures/_filedir/brackets/x @@ -0,0 +1 @@ + diff --git a/test/fixtures/_filedir/ext/ee.e1 b/test/fixtures/_filedir/ext/ee.e1 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/_filedir/ext/ff.e2 b/test/fixtures/_filedir/ext/ff.e2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/_filedir/ext/foo/.gitignore b/test/fixtures/_filedir/ext/foo/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/_filedir/ext/gg.e1 b/test/fixtures/_filedir/ext/gg.e1 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/_filedir/ext/hh.e2 b/test/fixtures/_filedir/ext/hh.e2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/_filedir/ext/ii.E1 b/test/fixtures/_filedir/ext/ii.E1 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/_get_cword/sea b/test/fixtures/_get_cword/sea new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/_get_cword/seb b/test/fixtures/_get_cword/seb new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/_get_cword/sec b/test/fixtures/_get_cword/sec new file mode 100644 index 0000000..e69de29 diff --git "a/test/fixtures/_get_cword/\303\244\303\244\303\244\303\244\302\247" "b/test/fixtures/_get_cword/\303\244\303\244\303\244\303\244\302\247" new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/_known_hosts_real/.ssh/config_asterisk_1 b/test/fixtures/_known_hosts_real/.ssh/config_asterisk_1 new file mode 100644 index 0000000..fc09eb0 --- /dev/null +++ b/test/fixtures/_known_hosts_real/.ssh/config_asterisk_1 @@ -0,0 +1 @@ +Host asterisk_1 diff --git a/test/fixtures/_known_hosts_real/.ssh/config_asterisk_2 b/test/fixtures/_known_hosts_real/.ssh/config_asterisk_2 new file mode 100644 index 0000000..42243ad --- /dev/null +++ b/test/fixtures/_known_hosts_real/.ssh/config_asterisk_2 @@ -0,0 +1 @@ +Host asterisk_2 diff --git a/test/fixtures/_known_hosts_real/.ssh/config_question_mark b/test/fixtures/_known_hosts_real/.ssh/config_question_mark new file mode 100644 index 0000000..08e1201 --- /dev/null +++ b/test/fixtures/_known_hosts_real/.ssh/config_question_mark @@ -0,0 +1 @@ +Host question_mark diff --git a/test/fixtures/_known_hosts_real/.ssh/config_relative_path b/test/fixtures/_known_hosts_real/.ssh/config_relative_path new file mode 100644 index 0000000..a7ad4d1 --- /dev/null +++ b/test/fixtures/_known_hosts_real/.ssh/config_relative_path @@ -0,0 +1 @@ +Host relative_path diff --git a/test/fixtures/_known_hosts_real/config b/test/fixtures/_known_hosts_real/config new file mode 100644 index 0000000..fe3fb54 --- /dev/null +++ b/test/fixtures/_known_hosts_real/config @@ -0,0 +1,7 @@ + UserKnownHostsFile _known_hosts_real/known_hosts + + # Unindented +Host gee* jar?this-part-we-do-not-complete-at-least-yet + HostName %h.example.com + # Indented + Host hus%%eth0 !negated #not-a-comment diff --git a/test/fixtures/_known_hosts_real/config_full_path b/test/fixtures/_known_hosts_real/config_full_path new file mode 100644 index 0000000..a91649b --- /dev/null +++ b/test/fixtures/_known_hosts_real/config_full_path @@ -0,0 +1 @@ +Include ~/config_include_recursion diff --git a/test/fixtures/_known_hosts_real/config_include b/test/fixtures/_known_hosts_real/config_include new file mode 100644 index 0000000..a1ae763 --- /dev/null +++ b/test/fixtures/_known_hosts_real/config_include @@ -0,0 +1,7 @@ +#$HOME set to fixtures/_known_hosts_real in unit test +# Include with full path (recursive one) +Include ~/config_full_path +# Include with relative path +Include config_relative_path +# Include with wildcards, and more than one on same row +Include config_asterisk* config_?uestion_mark diff --git a/test/fixtures/_known_hosts_real/config_include_recursion b/test/fixtures/_known_hosts_real/config_include_recursion new file mode 100644 index 0000000..2777069 --- /dev/null +++ b/test/fixtures/_known_hosts_real/config_include_recursion @@ -0,0 +1 @@ +Host recursion diff --git a/test/fixtures/_known_hosts_real/config_tilde b/test/fixtures/_known_hosts_real/config_tilde new file mode 100644 index 0000000..4181aaf --- /dev/null +++ b/test/fixtures/_known_hosts_real/config_tilde @@ -0,0 +1,4 @@ +# With quotes and tilde +UserKnownHostsFile "~/_known_hosts_real/known_hosts2" +# Without quotes, with tilde, and another on the same line +UserKnownHostsFile ~/_known_hosts_real/known_hosts3 _known_hosts_real/known_hosts4 diff --git a/test/fixtures/_known_hosts_real/gee-filename-canary b/test/fixtures/_known_hosts_real/gee-filename-canary new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/_known_hosts_real/known_hosts b/test/fixtures/_known_hosts_real/known_hosts new file mode 100644 index 0000000..646b5b6 --- /dev/null +++ b/test/fixtures/_known_hosts_real/known_hosts @@ -0,0 +1,14 @@ +|1|abc +|1|def +doo +# this is a comment +ike ssh-rsa qwerty1234/Qwerty+1234== +jub,10.0.0.1 +@cert-authority kyl,100.0.0.2 xxxfoo +[10.10.0.3]:10022 +[blah]:1234 +fd00:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:5555 +fe80::123:0xff:dead:beef%eth0 +1111:2222:3333:4444:5555:6666:xxxx:abab +11xx:2222:3333:4444:5555:6666:xxxx:abab +::42 diff --git a/test/fixtures/_known_hosts_real/known_hosts2 b/test/fixtures/_known_hosts_real/known_hosts2 new file mode 100644 index 0000000..2eb4d4f --- /dev/null +++ b/test/fixtures/_known_hosts_real/known_hosts2 @@ -0,0 +1 @@ +two,two2,two3,two*,t?o,two4 diff --git a/test/fixtures/_known_hosts_real/known_hosts3 b/test/fixtures/_known_hosts_real/known_hosts3 new file mode 100644 index 0000000..2bdf67a --- /dev/null +++ b/test/fixtures/_known_hosts_real/known_hosts3 @@ -0,0 +1 @@ +three diff --git a/test/fixtures/_known_hosts_real/known_hosts4 b/test/fixtures/_known_hosts_real/known_hosts4 new file mode 100644 index 0000000..8510665 --- /dev/null +++ b/test/fixtures/_known_hosts_real/known_hosts4 @@ -0,0 +1 @@ +four diff --git a/test/fixtures/_known_hosts_real/localhost_config b/test/fixtures/_known_hosts_real/localhost_config new file mode 100644 index 0000000..30b6623 --- /dev/null +++ b/test/fixtures/_known_hosts_real/localhost_config @@ -0,0 +1 @@ +UserKnownHostsFile _known_hosts_real/localhost_hosts diff --git a/test/fixtures/_known_hosts_real/localhost_hosts b/test/fixtures/_known_hosts_real/localhost_hosts new file mode 100644 index 0000000..ff752c2 --- /dev/null +++ b/test/fixtures/_known_hosts_real/localhost_hosts @@ -0,0 +1,3 @@ +localhost +127.0.0.1 +::1 diff --git a/test/fixtures/_known_hosts_real/spaced conf b/test/fixtures/_known_hosts_real/spaced conf new file mode 100644 index 0000000..566b92c --- /dev/null +++ b/test/fixtures/_known_hosts_real/spaced conf @@ -0,0 +1,8 @@ + + # Unindented +Host gee + UserKnownHostsFile "_known_hosts_real/spaced known_hosts" + + # Indented + Host hus #not-a-comment + UserKnownHostsFile "_known_hosts_real/known_hosts2" diff --git a/test/fixtures/_known_hosts_real/spaced known_hosts b/test/fixtures/_known_hosts_real/spaced known_hosts new file mode 100644 index 0000000..d54a04d --- /dev/null +++ b/test/fixtures/_known_hosts_real/spaced known_hosts @@ -0,0 +1,4 @@ +|1|abc +|1|def +doo +ike ssh-rsa qwerty1234/Qwerty+1234== diff --git a/test/fixtures/_longopt/grep--help.txt b/test/fixtures/_longopt/grep--help.txt new file mode 100644 index 0000000..9266256 --- /dev/null +++ b/test/fixtures/_longopt/grep--help.txt @@ -0,0 +1,70 @@ +Usage: grep [OPTION]... PATTERN [FILE]... +Search for PATTERN in each FILE. +Example: grep -i 'hello world' menu.h main.c + +Pattern selection and interpretation: + -E, --extended-regexp PATTERN is an extended regular expression + -F, --fixed-strings PATTERN is a set of newline-separated strings + -G, --basic-regexp PATTERN is a basic regular expression (default) + -P, --perl-regexp PATTERN is a Perl regular expression + -e, --regexp=PATTERN use PATTERN for matching + -f, --file=FILE obtain PATTERN from FILE + -i, --ignore-case ignore case distinctions + -w, --word-regexp force PATTERN to match only whole words + -x, --line-regexp force PATTERN to match only whole lines + -z, --null-data a data line ends in 0 byte, not newline + +Miscellaneous: + -s, --no-messages suppress error messages + -v, --invert-match select non-matching lines + -V, --version display version information and exit + --help display this help text and exit + +Output control: + -m, --max-count=NUM stop after NUM selected lines + -b, --byte-offset print the byte offset with output lines + -n, --line-number print line number with output lines + --line-buffered flush output on every line + -H, --with-filename print file name with output lines + -h, --no-filename suppress the file name prefix on output + --label=LABEL use LABEL as the standard input file name prefix + -o, --only-matching show only the part of a line matching PATTERN + -q, --quiet, --silent suppress all normal output + --binary-files=TYPE assume that binary files are TYPE; + TYPE is 'binary', 'text', or 'without-match' + -a, --text equivalent to --binary-files=text + -I equivalent to --binary-files=without-match + -d, --directories=ACTION how to handle directories; + ACTION is 'read', 'recurse', or 'skip' + -D, --devices=ACTION how to handle devices, FIFOs and sockets; + ACTION is 'read' or 'skip' + -r, --recursive like --directories=recurse + -R, --dereference-recursive likewise, but follow all symlinks + --include=FILE_PATTERN search only files that match FILE_PATTERN + --exclude=FILE_PATTERN skip files and directories matching FILE_PATTERN + --exclude-from=FILE skip files matching any file pattern from FILE + --exclude-dir=PATTERN directories that match PATTERN will be skipped. + -L, --files-without-match print only names of FILEs with no selected lines + -l, --files-with-matches print only names of FILEs with selected lines + -c, --count print only a count of selected lines per FILE + -T, --initial-tab make tabs line up (if needed) + -Z, --null print 0 byte after FILE name + +Context control: + -B, --before-context=NUM print NUM lines of leading context + -A, --after-context=NUM print NUM lines of trailing context + -C, --context=NUM print NUM lines of output context + -NUM same as --context=NUM + --color[=WHEN], + --colour[=WHEN] use markers to highlight the matching strings; + WHEN is 'always', 'never', or 'auto' + -U, --binary do not strip CR characters at EOL (MSDOS/Windows) + +When FILE is '-', read standard input. With no FILE, read '.' if +recursive, '-' otherwise. With fewer than two FILEs, assume -h. +Exit status is 0 if any line is selected, 1 otherwise; +if any error occurs and -q is not given, the exit status is 2. + +Report bugs to: bug-grep@gnu.org +GNU grep home page: +General help using GNU software: diff --git a/test/fixtures/_longopt/various.txt b/test/fixtures/_longopt/various.txt new file mode 100644 index 0000000..04c2c25 --- /dev/null +++ b/test/fixtures/_longopt/various.txt @@ -0,0 +1,5 @@ +--- +----nonono +--foo_bar +--foo- +--foo=bar diff --git a/test/fixtures/acroread/bar b/test/fixtures/acroread/bar new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/acroread/foo.d/.gitignore b/test/fixtures/acroread/foo.d/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/acroread/t.pdf b/test/fixtures/acroread/t.pdf new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/ant/.gitignore b/test/fixtures/ant/.gitignore new file mode 100644 index 0000000..3a08258 --- /dev/null +++ b/test/fixtures/ant/.gitignore @@ -0,0 +1 @@ +.ant-targets-*.xml diff --git a/test/fixtures/ant/build-with-import.xml b/test/fixtures/ant/build-with-import.xml new file mode 100644 index 0000000..881981a --- /dev/null +++ b/test/fixtures/ant/build-with-import.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/test/fixtures/ant/build.xml b/test/fixtures/ant/build.xml new file mode 100644 index 0000000..09b4cd2 --- /dev/null +++ b/test/fixtures/ant/build.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + diff --git a/test/fixtures/ant/imported-build.xml b/test/fixtures/ant/imported-build.xml new file mode 100644 index 0000000..0cc438f --- /dev/null +++ b/test/fixtures/ant/imported-build.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/test/fixtures/ant/named-build.xml b/test/fixtures/ant/named-build.xml new file mode 100644 index 0000000..e61386d --- /dev/null +++ b/test/fixtures/ant/named-build.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/test/fixtures/compgen/a'b/c b/test/fixtures/compgen/a'b/c new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/compgen/t1.txt b/test/fixtures/compgen/t1.txt new file mode 100644 index 0000000..322a14d --- /dev/null +++ b/test/fixtures/compgen/t1.txt @@ -0,0 +1,121 @@ +BASH=/bin/bash +BASH_ARGC=() +BASH_ARGV=() +BASH_LINENO=() +BASH_SOURCE=() +BASH_VERSINFO=([0]="3" [1]="2" [2]="39" [3]="1" [4]="release" [5]="i486-pc-linux-gnu") +BASH_VERSION='3.2.39(1)-release' +CDPL_DIRS=([0]="/home/freddy/proj") +CDPM_DIRS= +CDP_DIRS=([0]="/home/freddy/proj" [1]="") +COLUMNS=130 +COMP_CACHE=/home/freddy/.bash_completion_lib.d/cache~ +COMP_DIR=/etc/bash_completion_lib +COMP_PATH=/home/freddy/.bash_completion_lib.d:/etc/bash_completion_lib +COMP_RESTRICT_BY_EXTENSION=0 +COMP_VERSION=bash_completion_lib-1.3.1 +DIRSTACK=() +EDITOR=/usr/bin/vim +EUID=1000 +GPGKEY=10A575C3 +GPG_AGENT_INFO=/tmp/gpg-Pg6JXR/S.gpg-agent:4129:1 +GPG_TTY=/dev/pts/0 +GREP_OPTIONS='--exclude '\''distrib/*'\'' --exclude tags' +GROUPS=() +HISTCONTROL=ignoreboth +HISTFILE=/home/freddy/.bash_history +HISTFILESIZE=500 +HISTIGNORE=exit +HISTSIZE=500 +HOME=/home/freddy +HOSTNAME=blondy +HOSTTYPE=i486 +IFS=$' \t\n' +LANG=en_US +LANGUAGE=en_NL:en_US:en_GB:en +LINES=49 +LOGNAME=freddy +MACHTYPE=i486-pc-linux-gnu +MAIL=/var/mail/freddy +MAILCHECK=60 +OLDPWD=/home/freddy/.bash_completion_lib.d +OPTERR=1 +OPTIND=1 +OSTYPE=linux-gnu +PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/freddy/proj/rc/bin +PIPESTATUS=([0]="0") +PPID=29352 +PS1=$'\\[\E[0;34m\\]\\!\\[\E[0m\\]\\[\E[1;32m\\]$(stoppedjobs)\\[\E[0m\\]:\\u@\\h:\\w> \\[\E[m\\]' +PS2='> ' +PS4='+ ' +PWD=/home/freddy/proj/bashCompletion/bash-completion.git/test/fixtures/compgen +SHELL=/bin/bash +SHELLOPTS=braceexpand:hashall:histexpand:interactive-comments:monitor:vi +SHLVL=1 +SSH_AUTH_SOCK=/tmp/ssh-xhQbo29352/agent.29352 +SSH_CLIENT='192.168.123.143 37670 4822' +SSH_CONNECTION='192.168.123.143 37670 192.168.123.8 4822' +SSH_TTY=/dev/pts/0 +TERM=xterm +UID=1000 +USER=freddy +VIM=/home/freddy/.vim +VIMRUNTIME=/usr/share/vim/vimcurrent +_=GPG_AGENT_INFO +bash205='3.2.39(1)-release' +bash205b='3.2.39(1)-release' +bash3='3.2.39(1)-release' +cdots () +{ + [ -d "$1$2" ] && cd "$1$2" || eval cd "$1$2" +} +comp_load () +{ + local cmd=${COMP_WORDS[0]} dir globs OLDIFS=$IFS; + IFS=:; + local -a aPaths=($COMP_PATH); + IFS=' +'; + globs=($( + for dir in "${aPaths[@]}"; do + echo \"$dir\"/complete\*/\*.$cmd + echo \"$dir\"/complete\*/$cmd\! + echo \"$dir\"/complete\*/$cmd + done + )); + IFS=$OLDIFS; + if ! declare -F comp_include >&/dev/null; then + for dir in "${aPaths[@]}"; + do + [ -r "$dir/include/comp_include" ] && . "$dir/include/comp_include" && break; + done; + fi; + comp_include comp_load_init; + comp_load_init; + local script="$(eval find "${globs[@]}" 2> /dev/null | head -1)"; + local link comp=${script##*/}; + [[ ${comp: -1:1} == ! ]] || { + link=${comp#*.}; + comp=${comp%.$link} + }; + local path=${script%/*}; + [ "$script" -a -r "$path/$comp" ] && . "$path/$comp" && declare -F _$comp >&/dev/null && { + [ ${COMP_INSTALL:-1} -eq 0 ] || _comp_install $comp "$path" + } && _$comp $link; + comp_load_deinit +} +nameTerminal () +{ + [ "${TERM:0:5}" = "xterm" ] && local ansiNrTab=0; + [ "$TERM" = "rxvt" ] && local ansiNrTab=61; + [ "$TERM" = "konsole" ] && local ansiNrTab=30 ansiNrWindow=0; + [ $ansiNrTab ] && echo -n ''"]$ansiNrTab;$1"''; + [ $ansiNrWindow -a "$2" ] && echo -n ''"]$ansiNrWindow;$2"'' +} +stoppedjobs () +{ + if [ "$(jobs -s)" ]; then + echo -n "%"; + jobs -s | wc -l; + fi +} diff --git a/test/fixtures/compgen/t2.txt b/test/fixtures/compgen/t2.txt new file mode 100644 index 0000000..371ab2b --- /dev/null +++ b/test/fixtures/compgen/t2.txt @@ -0,0 +1,121 @@ +BASH=/bin/bash +BASH_ARGC=() +BASH_ARGV=() +BASH_LINENO=() +BASH_SOURCE=() +BASH_VERSINFO=([0]="3" [1]="2" [2]="39" [3]="1" [4]="release" [5]="i486-pc-linux-gnu") +BASH_VERSION='3.2.39(1)-release' +CDPL_DIRS=([0]="/home/freddy/proj") +CDPM_DIRS= +CDP_DIRS=([0]="/home/freddy/proj" [1]="") +COLUMNS=130 +COMP_CACHE=/home/freddy/.bash_completion_lib.d/cache~ +COMP_DIR=/etc/bash_completion_lib +COMP_PATH=/home/freddy/.bash_completion_lib.d:/etc/bash_completion_lib +COMP_RESTRICT_BY_EXTENSION=0 +COMP_VERSION=bash_completion_lib-1.3.1 +DIRSTACK=() +EDITOR=/usr/bin/vim +EUID=1000 +GPGKEY=10A575C3 +GPG_AGENT_INFO=/tmp/gpg-Pg6JXR/S.gpg-agent:4129:1 +GPG_TTY=/dev/pts/0 +GREP_OPTIONS='--exclude '\''distrib/*'\'' --exclude tags' +GROUPS=() +HISTCONTROL=ignoreboth +HISTFILE=/home/freddy/.bash_history +HISTFILESIZE=500 +HISTIGNORE=exit +HISTSIZE=500 +HOME=/home/freddy +HOSTNAME=blondy +HOSTTYPE=i486 +IFS=$' \t\n' +LANG=en_US +LANGUAGE=en_NL:en_US:en_GB:en +LINES=49 +LOGNAME=freddy +MACHTYPE=i486-pc-linux-gnu +MAIL=/var/mail/freddy +MAILCHECK=60 +OLDPWD=/home/freddy/.bash_completion_lib.d +OPTERR=1 +OPTIND=1 +OSTYPE=linux-gnu +PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/freddy/proj/rc/bin +PIPESTATUS=([0]="0") +PPID=29352 +PS1=$'\\[\E[0;34m\\]\\!\\[\E[0m\\]\\[\E[1;32m\\]$(stoppedjobs)\\[\E[0m\\]:\\u@\\h:\\w> \\[\E[m\\]' +PS2='> ' +PS4='+ ' +PWD=/home/freddy/proj/bashCompletion/bash-completion.git/test/fixtures/compgen +SHELL=/bin/bash +SHELLOPTS=braceexpand:hashall:histexpand:interactive-comments:monitor:vi +SHLVL=1 +SSH_AUTH_SOCK=/tmp/ssh-xhQbo29352/agent.29352 +SSH_CLIENT='192.168.123.143 37670 4822' +SSH_CONNECTION='192.168.123.143 37670 192.168.123.8 4822' +SSH_TTY=/dev/pts/0 +TERM=xterm +UID=1000 +USER=freddy +VIM=/home/freddy/.vim +VIMRUNTIME=/usr/share/vim/vimcurrent +_='a\\\'\''b/' +bash205='3.2.39(1)-release' +bash205b='3.2.39(1)-release' +bash3='3.2.39(1)-release' +cdots () +{ + [ -d "$1$2" ] && cd "$1$2" || eval cd "$1$2" +} +comp_load () +{ + local cmd=${COMP_WORDS[0]} dir globs OLDIFS=$IFS; + IFS=:; + local -a aPaths=($COMP_PATH); + IFS=' +'; + globs=($( + for dir in "${aPaths[@]}"; do + echo \"$dir\"/complete\*/\*.$cmd + echo \"$dir\"/complete\*/$cmd\! + echo \"$dir\"/complete\*/$cmd + done + )); + IFS=$OLDIFS; + if ! declare -F comp_include >&/dev/null; then + for dir in "${aPaths[@]}"; + do + [ -r "$dir/include/comp_include" ] && . "$dir/include/comp_include" && break; + done; + fi; + comp_include comp_load_init; + comp_load_init; + local script="$(eval find "${globs[@]}" 2> /dev/null | head -1)"; + local link comp=${script##*/}; + [[ ${comp: -1:1} == ! ]] || { + link=${comp#*.}; + comp=${comp%.$link} + }; + local path=${script%/*}; + [ "$script" -a -r "$path/$comp" ] && . "$path/$comp" && declare -F _$comp >&/dev/null && { + [ ${COMP_INSTALL:-1} -eq 0 ] || _comp_install $comp "$path" + } && _$comp $link; + comp_load_deinit +} +nameTerminal () +{ + [ "${TERM:0:5}" = "xterm" ] && local ansiNrTab=0; + [ "$TERM" = "rxvt" ] && local ansiNrTab=61; + [ "$TERM" = "konsole" ] && local ansiNrTab=30 ansiNrWindow=0; + [ $ansiNrTab ] && echo -n ''"]$ansiNrTab;$1"''; + [ $ansiNrWindow -a "$2" ] && echo -n ''"]$ansiNrWindow;$2"'' +} +stoppedjobs () +{ + if [ "$(jobs -s)" ]; then + echo -n "%"; + jobs -s | wc -l; + fi +} diff --git a/test/fixtures/compgen/t3.txt b/test/fixtures/compgen/t3.txt new file mode 100644 index 0000000..371ab2b --- /dev/null +++ b/test/fixtures/compgen/t3.txt @@ -0,0 +1,121 @@ +BASH=/bin/bash +BASH_ARGC=() +BASH_ARGV=() +BASH_LINENO=() +BASH_SOURCE=() +BASH_VERSINFO=([0]="3" [1]="2" [2]="39" [3]="1" [4]="release" [5]="i486-pc-linux-gnu") +BASH_VERSION='3.2.39(1)-release' +CDPL_DIRS=([0]="/home/freddy/proj") +CDPM_DIRS= +CDP_DIRS=([0]="/home/freddy/proj" [1]="") +COLUMNS=130 +COMP_CACHE=/home/freddy/.bash_completion_lib.d/cache~ +COMP_DIR=/etc/bash_completion_lib +COMP_PATH=/home/freddy/.bash_completion_lib.d:/etc/bash_completion_lib +COMP_RESTRICT_BY_EXTENSION=0 +COMP_VERSION=bash_completion_lib-1.3.1 +DIRSTACK=() +EDITOR=/usr/bin/vim +EUID=1000 +GPGKEY=10A575C3 +GPG_AGENT_INFO=/tmp/gpg-Pg6JXR/S.gpg-agent:4129:1 +GPG_TTY=/dev/pts/0 +GREP_OPTIONS='--exclude '\''distrib/*'\'' --exclude tags' +GROUPS=() +HISTCONTROL=ignoreboth +HISTFILE=/home/freddy/.bash_history +HISTFILESIZE=500 +HISTIGNORE=exit +HISTSIZE=500 +HOME=/home/freddy +HOSTNAME=blondy +HOSTTYPE=i486 +IFS=$' \t\n' +LANG=en_US +LANGUAGE=en_NL:en_US:en_GB:en +LINES=49 +LOGNAME=freddy +MACHTYPE=i486-pc-linux-gnu +MAIL=/var/mail/freddy +MAILCHECK=60 +OLDPWD=/home/freddy/.bash_completion_lib.d +OPTERR=1 +OPTIND=1 +OSTYPE=linux-gnu +PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/freddy/proj/rc/bin +PIPESTATUS=([0]="0") +PPID=29352 +PS1=$'\\[\E[0;34m\\]\\!\\[\E[0m\\]\\[\E[1;32m\\]$(stoppedjobs)\\[\E[0m\\]:\\u@\\h:\\w> \\[\E[m\\]' +PS2='> ' +PS4='+ ' +PWD=/home/freddy/proj/bashCompletion/bash-completion.git/test/fixtures/compgen +SHELL=/bin/bash +SHELLOPTS=braceexpand:hashall:histexpand:interactive-comments:monitor:vi +SHLVL=1 +SSH_AUTH_SOCK=/tmp/ssh-xhQbo29352/agent.29352 +SSH_CLIENT='192.168.123.143 37670 4822' +SSH_CONNECTION='192.168.123.143 37670 192.168.123.8 4822' +SSH_TTY=/dev/pts/0 +TERM=xterm +UID=1000 +USER=freddy +VIM=/home/freddy/.vim +VIMRUNTIME=/usr/share/vim/vimcurrent +_='a\\\'\''b/' +bash205='3.2.39(1)-release' +bash205b='3.2.39(1)-release' +bash3='3.2.39(1)-release' +cdots () +{ + [ -d "$1$2" ] && cd "$1$2" || eval cd "$1$2" +} +comp_load () +{ + local cmd=${COMP_WORDS[0]} dir globs OLDIFS=$IFS; + IFS=:; + local -a aPaths=($COMP_PATH); + IFS=' +'; + globs=($( + for dir in "${aPaths[@]}"; do + echo \"$dir\"/complete\*/\*.$cmd + echo \"$dir\"/complete\*/$cmd\! + echo \"$dir\"/complete\*/$cmd + done + )); + IFS=$OLDIFS; + if ! declare -F comp_include >&/dev/null; then + for dir in "${aPaths[@]}"; + do + [ -r "$dir/include/comp_include" ] && . "$dir/include/comp_include" && break; + done; + fi; + comp_include comp_load_init; + comp_load_init; + local script="$(eval find "${globs[@]}" 2> /dev/null | head -1)"; + local link comp=${script##*/}; + [[ ${comp: -1:1} == ! ]] || { + link=${comp#*.}; + comp=${comp%.$link} + }; + local path=${script%/*}; + [ "$script" -a -r "$path/$comp" ] && . "$path/$comp" && declare -F _$comp >&/dev/null && { + [ ${COMP_INSTALL:-1} -eq 0 ] || _comp_install $comp "$path" + } && _$comp $link; + comp_load_deinit +} +nameTerminal () +{ + [ "${TERM:0:5}" = "xterm" ] && local ansiNrTab=0; + [ "$TERM" = "rxvt" ] && local ansiNrTab=61; + [ "$TERM" = "konsole" ] && local ansiNrTab=30 ansiNrWindow=0; + [ $ansiNrTab ] && echo -n ''"]$ansiNrTab;$1"''; + [ $ansiNrWindow -a "$2" ] && echo -n ''"]$ansiNrWindow;$2"'' +} +stoppedjobs () +{ + if [ "$(jobs -s)" ]; then + echo -n "%"; + jobs -s | wc -l; + fi +} diff --git a/test/fixtures/cvs/.cvspass b/test/fixtures/cvs/.cvspass new file mode 100644 index 0000000..e7e0dce --- /dev/null +++ b/test/fixtures/cvs/.cvspass @@ -0,0 +1,2 @@ +/1 :pserver:anonymous@cvs.savannah.nongnu.org:2401/sources/cvs A +/1 :pserver:anonymous@cvs.fedoraproject.org:2401/cvs/pkgs A diff --git a/test/fixtures/cvs/foo/CVS/Entries b/test/fixtures/cvs/foo/CVS/Entries new file mode 100644 index 0000000..6462f98 --- /dev/null +++ b/test/fixtures/cvs/foo/CVS/Entries @@ -0,0 +1,2 @@ +/bar/1.1/Tue Jan 29 05:52:29 2008// +D diff --git a/test/fixtures/cvs/foo/bar b/test/fixtures/cvs/foo/bar new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/cvs/foo/quux b/test/fixtures/cvs/foo/quux new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/dnssec-keygen/dnssec-keygen b/test/fixtures/dnssec-keygen/dnssec-keygen new file mode 100755 index 0000000..882cd97 --- /dev/null +++ b/test/fixtures/dnssec-keygen/dnssec-keygen @@ -0,0 +1,76 @@ +#!/bin/sh + +cat <<\EOF >&2 +Usage: + dnssec-keygen [options] name + +Version: 9.11.3-1ubuntu1.5-Ubuntu + name: owner of the key +Options: + -K : write keys into directory + -a : + RSA | RSAMD5 | DSA | RSASHA1 | NSEC3RSASHA1 | NSEC3DSA | + RSASHA256 | RSASHA512 | ECCGOST | + ECDSAP256SHA256 | ECDSAP384SHA384 | + ED25519 | ED448 | DH | + HMAC-MD5 | HMAC-SHA1 | HMAC-SHA224 | HMAC-SHA256 | + HMAC-SHA384 | HMAC-SHA512 + (default: RSASHA1, or NSEC3RSASHA1 if using -3) + -3: use NSEC3-capable algorithm + -b : + RSAMD5: [512..4096] + RSASHA1: [512..4096] + NSEC3RSASHA1: [512..4096] + RSASHA256: [512..4096] + RSASHA512: [1024..4096] + DH: [128..4096] + DSA: [512..1024] and divisible by 64 + NSEC3DSA: [512..1024] and divisible by 64 + ECCGOST: ignored + ECDSAP256SHA256: ignored + ECDSAP384SHA384: ignored + ED25519: ignored + ED448: ignored + HMAC-MD5: [1..512] + HMAC-SHA1: [1..160] + HMAC-SHA224: [1..224] + HMAC-SHA256: [1..256] + HMAC-SHA384: [1..384] + HMAC-SHA512: [1..512] + (if using the default algorithm, key size + defaults to 2048 for KSK, or 1024 for all others) + -n : ZONE | HOST | ENTITY | USER | OTHER + (DNSKEY generation defaults to ZONE) + -c : (default: IN) + -d (0 => max, default) + -E : + name of an OpenSSL engine to use + -f : KSK | REVOKE + -g : use specified generator (DH only) + -L : default key TTL + -p : (default: 3 [dnssec]) + -r : a file containing random data + -s : strength value this key signs DNS records with (default: 0) + -T : DNSKEY | KEY (default: DNSKEY; use KEY for SIG(0)) + -t : AUTHCONF | NOAUTHCONF | NOAUTH | NOCONF (default: AUTHCONF) + -h: print usage and exit + -m : + usage | trace | record | size | mctx + -v : set verbosity level (0 - 10) + -V: print version information +Timing options: + -P date/[+-]offset/none: set key publication date (default: now) + -P sync date/[+-]offset/none: set CDS and CDNSKEY publication date + -A date/[+-]offset/none: set key activation date (default: now) + -R date/[+-]offset/none: set key revocation date + -I date/[+-]offset/none: set key inactivation date + -D date/[+-]offset/none: set key deletion date + -D sync date/[+-]offset/none: set CDS and CDNSKEY deletion date + -G: generate key only; do not set -P or -A + -C: generate a backward-compatible key, omitting all dates + -S : generate a successor to an existing key + -i : prepublication interval for successor key (default: 30 days) +Output: + K++.key, K++.private +EOF +exit 255 diff --git a/test/fixtures/dpkg/bash-completion-test-nonsubject.txt b/test/fixtures/dpkg/bash-completion-test-nonsubject.txt new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/dpkg/bash-completion-test-subject.deb b/test/fixtures/dpkg/bash-completion-test-subject.deb new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.BMP b/test/fixtures/evince/.BMP new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.CBR b/test/fixtures/evince/.CBR new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.CBZ b/test/fixtures/evince/.CBZ new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.DJV b/test/fixtures/evince/.DJV new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.DJVU b/test/fixtures/evince/.DJVU new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.DVI b/test/fixtures/evince/.DVI new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.DVI.BZ2 b/test/fixtures/evince/.DVI.BZ2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.DVI.GZ b/test/fixtures/evince/.DVI.GZ new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.DVI.bz2 b/test/fixtures/evince/.DVI.bz2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.DVI.gz b/test/fixtures/evince/.DVI.gz new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.EPS b/test/fixtures/evince/.EPS new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.EPS.BZ2 b/test/fixtures/evince/.EPS.BZ2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.EPS.GZ b/test/fixtures/evince/.EPS.GZ new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.EPS.bz2 b/test/fixtures/evince/.EPS.bz2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.EPS.gz b/test/fixtures/evince/.EPS.gz new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.GIF b/test/fixtures/evince/.GIF new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.ICO b/test/fixtures/evince/.ICO new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.JPEG b/test/fixtures/evince/.JPEG new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.JPG b/test/fixtures/evince/.JPG new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.MIFF b/test/fixtures/evince/.MIFF new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.PBM b/test/fixtures/evince/.PBM new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.PCX b/test/fixtures/evince/.PCX new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.PDF b/test/fixtures/evince/.PDF new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.PDF.BZ2 b/test/fixtures/evince/.PDF.BZ2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.PDF.GZ b/test/fixtures/evince/.PDF.GZ new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.PDF.bz2 b/test/fixtures/evince/.PDF.bz2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.PDF.gz b/test/fixtures/evince/.PDF.gz new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.PGM b/test/fixtures/evince/.PGM new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.PNG b/test/fixtures/evince/.PNG new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.PNM b/test/fixtures/evince/.PNM new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.PPM b/test/fixtures/evince/.PPM new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.PS b/test/fixtures/evince/.PS new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.PS.BZ2 b/test/fixtures/evince/.PS.BZ2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.PS.GZ b/test/fixtures/evince/.PS.GZ new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.PS.bz2 b/test/fixtures/evince/.PS.bz2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.PS.gz b/test/fixtures/evince/.PS.gz new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.TGA b/test/fixtures/evince/.TGA new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.TIF b/test/fixtures/evince/.TIF new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.TIFF b/test/fixtures/evince/.TIFF new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.XPM b/test/fixtures/evince/.XPM new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.XWD b/test/fixtures/evince/.XWD new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.bmp b/test/fixtures/evince/.bmp new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.cbr b/test/fixtures/evince/.cbr new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.cbz b/test/fixtures/evince/.cbz new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.djv b/test/fixtures/evince/.djv new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.djvu b/test/fixtures/evince/.djvu new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.dvi b/test/fixtures/evince/.dvi new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.dvi.BZ2 b/test/fixtures/evince/.dvi.BZ2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.dvi.GZ b/test/fixtures/evince/.dvi.GZ new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.dvi.bz2 b/test/fixtures/evince/.dvi.bz2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.dvi.gz b/test/fixtures/evince/.dvi.gz new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.eps b/test/fixtures/evince/.eps new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.eps.BZ2 b/test/fixtures/evince/.eps.BZ2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.eps.GZ b/test/fixtures/evince/.eps.GZ new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.eps.bz2 b/test/fixtures/evince/.eps.bz2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.eps.gz b/test/fixtures/evince/.eps.gz new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.gif b/test/fixtures/evince/.gif new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.ico b/test/fixtures/evince/.ico new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.jpeg b/test/fixtures/evince/.jpeg new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.jpg b/test/fixtures/evince/.jpg new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.miff b/test/fixtures/evince/.miff new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.pbm b/test/fixtures/evince/.pbm new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.pcx b/test/fixtures/evince/.pcx new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.pdf b/test/fixtures/evince/.pdf new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.pdf.BZ2 b/test/fixtures/evince/.pdf.BZ2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.pdf.GZ b/test/fixtures/evince/.pdf.GZ new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.pdf.bz2 b/test/fixtures/evince/.pdf.bz2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.pdf.gz b/test/fixtures/evince/.pdf.gz new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.pgm b/test/fixtures/evince/.pgm new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.png b/test/fixtures/evince/.png new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.pnm b/test/fixtures/evince/.pnm new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.ppm b/test/fixtures/evince/.ppm new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.ps b/test/fixtures/evince/.ps new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.ps.BZ2 b/test/fixtures/evince/.ps.BZ2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.ps.GZ b/test/fixtures/evince/.ps.GZ new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.ps.bz2 b/test/fixtures/evince/.ps.bz2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.ps.gz b/test/fixtures/evince/.ps.gz new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.tga b/test/fixtures/evince/.tga new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.tif b/test/fixtures/evince/.tif new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.tiff b/test/fixtures/evince/.tiff new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.txt b/test/fixtures/evince/.txt new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.xpm b/test/fixtures/evince/.xpm new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/.xwd b/test/fixtures/evince/.xwd new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/evince/foo/.gitignore b/test/fixtures/evince/foo/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/gdb/core b/test/fixtures/gdb/core new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/gdb/core-NOT b/test/fixtures/gdb/core-NOT new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/gdb/core.12345 b/test/fixtures/gdb/core.12345 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/gdb/core.weston.1000.deadbeef.5308.1555362132000000 b/test/fixtures/gdb/core.weston.1000.deadbeef.5308.1555362132000000 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/gdb/corenot b/test/fixtures/gdb/corenot new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/htpasswd/htpasswd b/test/fixtures/htpasswd/htpasswd new file mode 100644 index 0000000..5279c7c --- /dev/null +++ b/test/fixtures/htpasswd/htpasswd @@ -0,0 +1,2 @@ +foo:bar +quux:baz diff --git a/test/fixtures/info/bash-completion.info b/test/fixtures/info/bash-completion.info new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/isql/odbc.ini b/test/fixtures/isql/odbc.ini new file mode 100644 index 0000000..96319f3 --- /dev/null +++ b/test/fixtures/isql/odbc.ini @@ -0,0 +1,3 @@ +[foo] + +[bar] diff --git a/test/fixtures/java/a/b$c.class b/test/fixtures/java/a/b$c.class new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/java/a/b.class b/test/fixtures/java/a/b.class new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/java/a/c/README.txt b/test/fixtures/java/a/c/README.txt new file mode 100644 index 0000000..e5e6d0b --- /dev/null +++ b/test/fixtures/java/a/c/README.txt @@ -0,0 +1,2 @@ +When CLASSPATH is set to the fixtures/java/a dir, we do *not* expect +*.class in subdirs to be included in completions, see Debian bug #496828. diff --git a/test/fixtures/java/a/c/d.class b/test/fixtures/java/a/c/d.class new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/java/a/d.txt b/test/fixtures/java/a/d.txt new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/java/bashcomp.jar b/test/fixtures/java/bashcomp.jar new file mode 100644 index 0000000..d9c2779 Binary files /dev/null and b/test/fixtures/java/bashcomp.jar differ diff --git a/test/fixtures/java/bashcomp.war b/test/fixtures/java/bashcomp.war new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/java/no-complete.txt b/test/fixtures/java/no-complete.txt new file mode 100644 index 0000000..8ca1ef6 --- /dev/null +++ b/test/fixtures/java/no-complete.txt @@ -0,0 +1 @@ +This file should not be included in classpath etc completions. diff --git a/test/fixtures/kdvi/.DVI b/test/fixtures/kdvi/.DVI new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/kdvi/.DVI.Z b/test/fixtures/kdvi/.DVI.Z new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/kdvi/.DVI.bz2 b/test/fixtures/kdvi/.DVI.bz2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/kdvi/.DVI.gz b/test/fixtures/kdvi/.DVI.gz new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/kdvi/.dvi b/test/fixtures/kdvi/.dvi new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/kdvi/.dvi.Z b/test/fixtures/kdvi/.dvi.Z new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/kdvi/.dvi.bz2 b/test/fixtures/kdvi/.dvi.bz2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/kdvi/.dvi.gz b/test/fixtures/kdvi/.dvi.gz new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/kdvi/.txt b/test/fixtures/kdvi/.txt new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/kdvi/foo/.gitignore b/test/fixtures/kdvi/foo/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/kpdf/.EPS b/test/fixtures/kpdf/.EPS new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/kpdf/.PDF b/test/fixtures/kpdf/.PDF new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/kpdf/.PS b/test/fixtures/kpdf/.PS new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/kpdf/.eps b/test/fixtures/kpdf/.eps new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/kpdf/.pdf b/test/fixtures/kpdf/.pdf new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/kpdf/.ps b/test/fixtures/kpdf/.ps new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/kpdf/.txt b/test/fixtures/kpdf/.txt new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/kpdf/foo/.gitignore b/test/fixtures/kpdf/foo/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/lftp/.lftp/bookmarks b/test/fixtures/lftp/.lftp/bookmarks new file mode 100644 index 0000000..074f812 --- /dev/null +++ b/test/fixtures/lftp/.lftp/bookmarks @@ -0,0 +1,3 @@ +lftptest ftp://ftp.funet.fi/ +spacetest ftp://ftp.sunet.se/ +badbookmark diff --git a/test/fixtures/lilo/lilo.conf b/test/fixtures/lilo/lilo.conf new file mode 100644 index 0000000..c890175 --- /dev/null +++ b/test/fixtures/lilo/lilo.conf @@ -0,0 +1,34 @@ +# global options: +boot=/dev/hda +prompt +timeout=150 +lba32 +compact +vga=normal +root=/dev/hda1 +read-only +menu-title=" John's Computer " +# +### bootable kernel images ### +image=/boot/vmlinuz-2.6.29-1-i386 + label=try + initrd=/boot/initrd.img-2.6.29-1-i386 +#image=/boot/vmlinuz-2.4.33-1-i386 +# label=2.4.33 +image=/tamu/vmlinuz + label=tamu + initrd=/tamu/initrd.img + root=/dev/hdb2 + vga=ask +# +### other operating systems ### +other=/dev/hda3 + label=PCDOS + boot-as=0x80 # must be C: +other=/dev/hdb1 + label=WinXP + boot-as=0x80 # must be C: +other=/dev/hdb5 + label=oldDOS + loader=chain + table=/dev/hdb5 diff --git a/test/fixtures/make/.gitignore b/test/fixtures/make/.gitignore new file mode 100644 index 0000000..3d1325c --- /dev/null +++ b/test/fixtures/make/.gitignore @@ -0,0 +1 @@ +extra_makefile diff --git a/test/fixtures/make/Makefile b/test/fixtures/make/Makefile new file mode 100644 index 0000000..b04a6eb --- /dev/null +++ b/test/fixtures/make/Makefile @@ -0,0 +1,46 @@ +$(info confuse: make) + +CFLAGS=-MMD -MP +NAME := sample + +.PHONY: all +all: $(NAME) + +$(NAME): sample.o + +.INTERMEDIATE: sample.o +sample.o: sample.c + +.PHONY: install +install: all + mkdir -p /usr/bin + install -m 755 $(NAME) /usr/bin + +.PHONY: clean +clean: + -rm -f $(NAME) + +.test_passes: + ./sample >/dev/null + touch ^@ + +.cache/.1: + touch $@ + +.cache/.2: + touch $@ + +.cache/1: + touch $@ + +.cache/2: + touch $@ + +ifndef __BASH_MAKE_COMPLETION__ +-include sample.d +endif + +VARIABLE_LOOKS_A_BIT_LIKE_A_TARGET := fooled-you +extra_makefile: + touch $@ +include extra_makefile diff --git a/test/fixtures/make/sample.c b/test/fixtures/make/sample.c new file mode 100644 index 0000000..4212596 --- /dev/null +++ b/test/fixtures/make/sample.c @@ -0,0 +1,8 @@ +#include +#include "sample.h" + +int main(void) +{ + puts("Hello, world!"); + return 0; +} diff --git a/test/fixtures/make/sample.d b/test/fixtures/make/sample.d new file mode 100644 index 0000000..27979ff --- /dev/null +++ b/test/fixtures/make/sample.d @@ -0,0 +1,3 @@ +sample.o: sample.c sample.h + +sample.h: diff --git a/test/fixtures/make/sample.h b/test/fixtures/make/sample.h new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/man/man/quux.8 b/test/fixtures/man/man/quux.8 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/man/man1/bash-completion-testcase.1.bz2 b/test/fixtures/man/man1/bash-completion-testcase.1.bz2 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/man/man1/foo.1 b/test/fixtures/man/man1/foo.1 new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/mount/bin/showmount b/test/fixtures/mount/bin/showmount new file mode 100755 index 0000000..2751c4b --- /dev/null +++ b/test/fixtures/mount/bin/showmount @@ -0,0 +1,12 @@ +#!/bin/sh + +if [ "$1" = -e ] && [ "$2" = mocksrv ]; then + echo "Header line" + echo "/test/path" + echo "/test/path2" + echo "/second/path" + exit 0 +fi + +echo "Usage: 'showmount -e mocksrv'; nothing else works." +exit 1 diff --git a/test/fixtures/mount/test-fstab b/test/fixtures/mount/test-fstab new file mode 100644 index 0000000..b243417 --- /dev/null +++ b/test/fixtures/mount/test-fstab @@ -0,0 +1,24 @@ +proc /proc proc defaults 0 0 +none /debug debugfs defaults,noauto 0 0 + +# Simple obvious test. +/mnt/nice-test-path /dev/null auto ro,noauto 0 0 + +# Test octal escapes +# Contains ' ' and '-' +/mnt/nice\040test\055path /dev/null auto ro,noauto 0 0 +# Contains '$' and '-' +/mnt/nice\044test\055path /dev/null auto ro,noauto 0 0 +# Contains ' ' and '\\' +/mnt/nice\040test\134path /dev/null auto ro,noauto 0 0 +# Contains '\n' and '\ ' +/mnt/nice\012test\040path /dev/null auto ro,noauto 0 0 + +# Test apostrophe +/mnt/nice'test-path /dev/null auto ro,noauto 0 0 +/mnt/other'test\040path /dev/null auto ro,noauto 0 0 + +# Test some labels +LABEL=Ubuntu\040Karmic /mnt/ubuntu auto no,noauto 0 0 +LABEL=Fedora /mnt/fedora auto ro,noauto 0 0 +LABEL=Debian-it's\040awesome /mnt/debian auto ro,noauto 0 0 diff --git a/test/fixtures/mplayer/.mplayer/config b/test/fixtures/mplayer/.mplayer/config new file mode 100644 index 0000000..8af74ee --- /dev/null +++ b/test/fixtures/mplayer/.mplayer/config @@ -0,0 +1,2 @@ +# https://github.com/scop/bash-completion/issues/182 +msglevel=all=3 diff --git a/test/fixtures/mplayer/.mplayer/mencoder.conf b/test/fixtures/mplayer/.mplayer/mencoder.conf new file mode 100644 index 0000000..9f5aa0f --- /dev/null +++ b/test/fixtures/mplayer/.mplayer/mencoder.conf @@ -0,0 +1 @@ +# mencoder test config file diff --git a/test/fixtures/mutt/bar/.gitignore b/test/fixtures/mutt/bar/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/mutt/bar/muttrc_b b/test/fixtures/mutt/bar/muttrc_b new file mode 100644 index 0000000..f4a0493 --- /dev/null +++ b/test/fixtures/mutt/bar/muttrc_b @@ -0,0 +1 @@ +source ~/foo/muttrc_f diff --git a/test/fixtures/mutt/foo/.gitignore b/test/fixtures/mutt/foo/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/mutt/foo/muttrc_f b/test/fixtures/mutt/foo/muttrc_f new file mode 100644 index 0000000..e69de29 diff --git a/test/fixtures/mutt/muttrc b/test/fixtures/mutt/muttrc new file mode 100644 index 0000000..d26c8bc --- /dev/null +++ b/test/fixtures/mutt/muttrc @@ -0,0 +1,4 @@ +set folder=. +alias a1 a1@example.com +alias a2 a2@example.com +source ~/bar/muttrc_b diff --git a/test/fixtures/nmap/nmap-h.txt b/test/fixtures/nmap/nmap-h.txt new file mode 100644 index 0000000..0301d37 --- /dev/null +++ b/test/fixtures/nmap/nmap-h.txt @@ -0,0 +1,114 @@ +Nmap 7.60 ( https://nmap.org ) +Usage: nmap [Scan Type(s)] [Options] {target specification} +TARGET SPECIFICATION: + Can pass hostnames, IP addresses, networks, etc. + Ex: scanme.nmap.org, microsoft.com/24, 192.168.0.1; 10.0.0-255.1-254 + -iL : Input from list of hosts/networks + -iR : Choose random targets + --exclude : Exclude hosts/networks + --excludefile : Exclude list from file +HOST DISCOVERY: + -sL: List Scan - simply list targets to scan + -sn: Ping Scan - disable port scan + -Pn: Treat all hosts as online -- skip host discovery + -PS/PA/PU/PY[portlist]: TCP SYN/ACK, UDP or SCTP discovery to given ports + -PE/PP/PM: ICMP echo, timestamp, and netmask request discovery probes + -PO[protocol list]: IP Protocol Ping + -n/-R: Never do DNS resolution/Always resolve [default: sometimes] + --dns-servers : Specify custom DNS servers + --system-dns: Use OS's DNS resolver + --traceroute: Trace hop path to each host +SCAN TECHNIQUES: + -sS/sT/sA/sW/sM: TCP SYN/Connect()/ACK/Window/Maimon scans + -sU: UDP Scan + -sN/sF/sX: TCP Null, FIN, and Xmas scans + --scanflags : Customize TCP scan flags + -sI : Idle scan + -sY/sZ: SCTP INIT/COOKIE-ECHO scans + -sO: IP protocol scan + -b : FTP bounce scan +PORT SPECIFICATION AND SCAN ORDER: + -p : Only scan specified ports + Ex: -p22; -p1-65535; -p U:53,111,137,T:21-25,80,139,8080,S:9 + --exclude-ports : Exclude the specified ports from scanning + -F: Fast mode - Scan fewer ports than the default scan + -r: Scan ports consecutively - don't randomize + --top-ports : Scan most common ports + --port-ratio : Scan ports more common than +SERVICE/VERSION DETECTION: + -sV: Probe open ports to determine service/version info + --version-intensity : Set from 0 (light) to 9 (try all probes) + --version-light: Limit to most likely probes (intensity 2) + --version-all: Try every single probe (intensity 9) + --version-trace: Show detailed version scan activity (for debugging) +SCRIPT SCAN: + -sC: equivalent to --script=default + --script=: is a comma separated list of + directories, script-files or script-categories + --script-args=: provide arguments to scripts + --script-args-file=filename: provide NSE script args in a file + --script-trace: Show all data sent and received + --script-updatedb: Update the script database. + --script-help=: Show help about scripts. + is a comma-separated list of script-files or + script-categories. +OS DETECTION: + -O: Enable OS detection + --osscan-limit: Limit OS detection to promising targets + --osscan-guess: Guess OS more aggressively +TIMING AND PERFORMANCE: + Options which take