From 6c18848a903eb3ee06dccd915859ce64195c257c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 18:24:27 +0200 Subject: Adding upstream version 1:2.11. Signed-off-by: Daniel Baumann --- test/.gitignore | 2 + test/Makefile.am | 14 + test/config/bashrc | 62 ++ test/config/inputrc | 22 + test/docker/Dockerfile | 6 + test/docker/docker-script.sh | 16 + 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 test/generate | 60 ++ test/requirements-dev.txt | 4 + test/requirements.txt | 5 + test/runLint | 51 ++ test/setup.cfg | 18 + test/t/Makefile.am | 698 +++++++++++++++++++++ test/t/conftest.py | 637 +++++++++++++++++++ test/t/test_2to3.py | 11 + test/t/test_7z.py | 33 + test/t/test_a2ps.py | 11 + test/t/test_a2x.py | 11 + test/t/test_abook.py | 7 + test/t/test_aclocal.py | 11 + test/t/test_acpi.py | 7 + test/t/test_acroread.py | 7 + test/t/test_adb.py | 11 + test/t/test_add_members.py | 7 + test/t/test_alias.py | 21 + test/t/test_alpine.py | 7 + test/t/test_animate.py | 7 + test/t/test_ant.py | 35 ++ test/t/test_apache2ctl.py | 7 + test/t/test_appdata_validate.py | 12 + test/t/test_apt_build.py | 8 + test/t/test_apt_cache.py | 17 + test/t/test_apt_get.py | 16 + test/t/test_aptitude.py | 23 + test/t/test_arch.py | 8 + test/t/test_arp.py | 13 + test/t/test_arping.py | 11 + test/t/test_arpspoof.py | 12 + test/t/test_asciidoc.py | 11 + test/t/test_aspell.py | 7 + test/t/test_autoconf.py | 7 + test/t/test_autoheader.py | 7 + test/t/test_automake.py | 11 + test/t/test_autoreconf.py | 7 + test/t/test_autorpm.py | 7 + test/t/test_autoscan.py | 11 + test/t/test_autossh.py | 7 + test/t/test_autoupdate.py | 7 + test/t/test_avctrl.py | 7 + test/t/test_awk.py | 11 + test/t/test_badblocks.py | 12 + test/t/test_base64.py | 11 + test/t/test_bash.py | 7 + test/t/test_bc.py | 7 + test/t/test_bind.py | 11 + test/t/test_bison.py | 7 + test/t/test_bk.py | 7 + test/t/test_bmake.py | 7 + test/t/test_brctl.py | 7 + test/t/test_btdownloadcurses_py.py | 8 + test/t/test_btdownloadgui_py.py | 8 + test/t/test_btdownloadheadless_py.py | 8 + test/t/test_bts.py | 11 + test/t/test_bzip2.py | 15 + test/t/test_cal.py | 11 + test/t/test_cancel.py | 34 + test/t/test_cardctl.py | 7 + test/t/test_carton.py | 11 + test/t/test_cat.py | 11 + test/t/test_cc.py | 7 + test/t/test_ccache.py | 27 + test/t/test_ccze.py | 19 + test/t/test_cd.py | 26 + test/t/test_cdrecord.py | 7 + test/t/test_cfagent.py | 7 + test/t/test_cfrun.py | 7 + test/t/test_chage.py | 11 + test/t/test_change_pw.py | 8 + test/t/test_check_db.py | 7 + test/t/test_check_perms.py | 7 + test/t/test_checksec.py | 7 + test/t/test_chfn.py | 7 + test/t/test_chgrp.py | 7 + test/t/test_chkconfig.py | 15 + test/t/test_chmod.py | 25 + test/t/test_chown.py | 82 +++ test/t/test_chpasswd.py | 7 + test/t/test_chromium_browser.py | 25 + test/t/test_chronyc.py | 11 + test/t/test_chroot.py | 16 + test/t/test_chrpath.py | 11 + test/t/test_chsh.py | 15 + test/t/test_ci.py | 7 + test/t/test_ciptool.py | 7 + test/t/test_civclient.py | 7 + test/t/test_civserver.py | 7 + test/t/test_cksfv.py | 7 + test/t/test_cleanarch.py | 8 + test/t/test_clisp.py | 7 + test/t/test_clone_member.py | 7 + test/t/test_co.py | 7 + test/t/test_colordiff.py | 11 + test/t/test_compare.py | 7 + test/t/test_compgen.py | 7 + test/t/test_complete.py | 11 + test/t/test_composite.py | 7 + test/t/test_config_list.py | 7 + test/t/test_configure.py | 17 + test/t/test_conjure.py | 7 + test/t/test_convert.py | 15 + test/t/test_cowsay.py | 7 + test/t/test_cp.py | 11 + test/t/test_cpan2dist.py | 9 + test/t/test_cpio.py | 12 + test/t/test_cplusplus.py | 8 + test/t/test_cppcheck.py | 31 + test/t/test_createdb.py | 11 + test/t/test_createuser.py | 11 + test/t/test_crontab.py | 16 + test/t/test_cryptsetup.py | 11 + test/t/test_csplit.py | 11 + test/t/test_curl.py | 28 + test/t/test_cut.py | 11 + test/t/test_cvs.py | 20 + test/t/test_cvsps.py | 12 + test/t/test_date.py | 11 + test/t/test_dcop.py | 7 + test/t/test_dd.py | 17 + test/t/test_declare.py | 20 + test/t/test_deja_dup.py | 12 + test/t/test_desktop_file_validate.py | 12 + test/t/test_df.py | 11 + test/t/test_dfutool.py | 7 + test/t/test_dhclient.py | 7 + test/t/test_dict.py | 7 + test/t/test_diff.py | 7 + test/t/test_dir.py | 11 + test/t/test_display.py | 11 + test/t/test_dmesg.py | 7 + test/t/test_dmypy.py | 14 + test/t/test_dnssec_keygen.py | 80 +++ test/t/test_dnsspoof.py | 7 + test/t/test_dot.py | 7 + test/t/test_dpkg.py | 15 + test/t/test_dpkg_deb.py | 12 + test/t/test_dpkg_query.py | 18 + test/t/test_dpkg_reconfigure.py | 8 + test/t/test_dpkg_source.py | 8 + test/t/test_dropdb.py | 11 + test/t/test_dropuser.py | 7 + test/t/test_dselect.py | 11 + test/t/test_dsniff.py | 7 + test/t/test_du.py | 11 + test/t/test_dumpdb.py | 8 + test/t/test_dumpe2fs.py | 11 + test/t/test_e2freefrag.py | 11 + test/t/test_e2label.py | 7 + test/t/test_ebtables.py | 7 + test/t/test_ecryptfs_migrate_home.py | 12 + test/t/test_eject.py | 7 + test/t/test_enscript.py | 7 + test/t/test_env.py | 7 + test/t/test_eog.py | 11 + test/t/test_ether_wake.py | 18 + test/t/test_etherwake.py | 7 + test/t/test_evince.py | 22 + test/t/test_expand.py | 7 + test/t/test_explodepkg.py | 23 + test/t/test_export.py | 36 ++ test/t/test_faillog.py | 7 + test/t/test_fbgs.py | 7 + test/t/test_fbi.py | 7 + test/t/test_feh.py | 31 + test/t/test_file.py | 11 + test/t/test_file_roller.py | 8 + test/t/test_filefrag.py | 11 + test/t/test_filesnarf.py | 7 + test/t/test_find.py | 37 ++ test/t/test_find_member.py | 7 + test/t/test_finger.py | 33 + test/t/test_fio.py | 15 + test/t/test_firefox.py | 12 + test/t/test_flake8.py | 17 + test/t/test_fmt.py | 9 + test/t/test_fold.py | 7 + test/t/test_freebsd_update.py | 8 + test/t/test_freeciv.py | 7 + test/t/test_freeciv_server.py | 8 + test/t/test_function.py | 7 + test/t/test_fusermount.py | 11 + test/t/test_g4.py | 7 + test/t/test_g77.py | 7 + test/t/test_gcc.py | 64 ++ test/t/test_gcj.py | 7 + test/t/test_gcl.py | 7 + test/t/test_gdb.py | 14 + test/t/test_genaliases.py | 8 + test/t/test_gendiff.py | 7 + test/t/test_genisoimage.py | 11 + test/t/test_geoiplookup.py | 7 + test/t/test_getconf.py | 25 + test/t/test_getent.py | 18 + test/t/test_gkrellm.py | 10 + test/t/test_gm.py | 19 + test/t/test_gmplayer.py | 7 + test/t/test_gnatmake.py | 7 + test/t/test_gnokii.py | 11 + test/t/test_gnome_mplayer.py | 17 + test/t/test_gnome_screenshot.py | 8 + test/t/test_gpasswd.py | 11 + test/t/test_gpc.py | 7 + test/t/test_gperf.py | 7 + test/t/test_gpg.py | 7 + test/t/test_gpg2.py | 7 + test/t/test_gpgv.py | 15 + test/t/test_gphoto2.py | 7 + test/t/test_gplusplus.py | 8 + test/t/test_gprof.py | 7 + test/t/test_grep.py | 16 + test/t/test_groupadd.py | 11 + test/t/test_groupdel.py | 11 + test/t/test_groupmems.py | 7 + test/t/test_groupmod.py | 11 + test/t/test_growisofs.py | 7 + test/t/test_grpck.py | 11 + test/t/test_grub.py | 7 + test/t/test_gssdp_discover.py | 22 + test/t/test_gzip.py | 15 + test/t/test_hciattach.py | 7 + test/t/test_hciconfig.py | 7 + test/t/test_hcitool.py | 11 + test/t/test_hddtemp.py | 7 + test/t/test_head.py | 7 + test/t/test_hexdump.py | 7 + test/t/test_hid2hci.py | 8 + test/t/test_host.py | 7 + test/t/test_hostname.py | 7 + test/t/test_hping2.py | 11 + test/t/test_hping3.py | 7 + test/t/test_htop.py | 7 + test/t/test_htpasswd.py | 23 + test/t/test_hunspell.py | 11 + test/t/test_hwclock.py | 7 + test/t/test_iconv.py | 21 + test/t/test_id.py | 7 + test/t/test_identify.py | 7 + test/t/test_idn.py | 7 + test/t/test_ifdown.py | 14 + test/t/test_ifstat.py | 21 + test/t/test_iftop.py | 11 + test/t/test_ifup.py | 20 + test/t/test_import.py | 7 + test/t/test_influx.py | 15 + test/t/test_info.py | 12 + test/t/test_inject.py | 8 + test/t/test_inotifywait.py | 15 + test/t/test_inotifywatch.py | 15 + test/t/test_insmod.py | 7 + test/t/test_installpkg.py | 39 ++ test/t/test_interdiff.py | 11 + test/t/test_invoke_rc_d.py | 14 + test/t/test_ionice.py | 7 + test/t/test_ip.py | 15 + test/t/test_ipcalc.py | 23 + test/t/test_iperf.py | 24 + test/t/test_iperf3.py | 20 + test/t/test_ipmitool.py | 11 + test/t/test_ipsec.py | 7 + test/t/test_iptables.py | 7 + test/t/test_ipv6calc.py | 11 + test/t/test_irb.py | 11 + test/t/test_iscsiadm.py | 7 + test/t/test_isort.py | 11 + test/t/test_isql.py | 8 + test/t/test_iwconfig.py | 7 + test/t/test_iwlist.py | 7 + test/t/test_iwpriv.py | 7 + test/t/test_iwspy.py | 7 + test/t/test_jar.py | 7 + test/t/test_jarsigner.py | 7 + test/t/test_java.py | 49 ++ test/t/test_javac.py | 11 + test/t/test_javadoc.py | 17 + test/t/test_javaws.py | 11 + test/t/test_jpegoptim.py | 11 + test/t/test_jps.py | 7 + test/t/test_jq.py | 30 + test/t/test_jshint.py | 11 + test/t/test_json_xs.py | 11 + test/t/test_jsonschema.py | 13 + test/t/test_k3b.py | 11 + test/t/test_kcov.py | 16 + test/t/test_kdvi.py | 10 + test/t/test_kill.py | 15 + test/t/test_killall.py | 21 + test/t/test_kldload.py | 7 + test/t/test_kldunload.py | 16 + test/t/test_koji.py | 11 + test/t/test_kpdf.py | 7 + test/t/test_kplayer.py | 7 + test/t/test_ktutil.py | 11 + test/t/test_l2ping.py | 7 + test/t/test_larch.py | 7 + test/t/test_lastlog.py | 7 + test/t/test_ld.py | 11 + test/t/test_ldapadd.py | 7 + test/t/test_ldapcompare.py | 7 + test/t/test_ldapdelete.py | 7 + test/t/test_ldapmodrdn.py | 7 + test/t/test_ldappasswd.py | 7 + test/t/test_ldapsearch.py | 7 + test/t/test_ldapvi.py | 7 + test/t/test_ldapwhoami.py | 7 + test/t/test_ldd.py | 13 + test/t/test_less.py | 11 + test/t/test_lftp.py | 16 + test/t/test_lftpget.py | 7 + test/t/test_lilo.py | 16 + test/t/test_links.py | 11 + test/t/test_lintian.py | 7 + test/t/test_lintian_info.py | 12 + test/t/test_lisp.py | 7 + test/t/test_list_admins.py | 7 + test/t/test_list_lists.py | 7 + test/t/test_list_members.py | 7 + test/t/test_list_owners.py | 8 + test/t/test_ln.py | 11 + test/t/test_locale_gen.py | 13 + test/t/test_look.py | 16 + test/t/test_lpq.py | 7 + test/t/test_lpr.py | 7 + test/t/test_lrzip.py | 15 + test/t/test_ls.py | 40 ++ test/t/test_lsof.py | 11 + test/t/test_lspci.py | 13 + test/t/test_lsscsi.py | 11 + test/t/test_lsusb.py | 10 + test/t/test_lua.py | 11 + test/t/test_luac.py | 11 + test/t/test_luseradd.py | 7 + test/t/test_luserdel.py | 11 + test/t/test_lusermod.py | 7 + test/t/test_lvchange.py | 9 + test/t/test_lvcreate.py | 9 + test/t/test_lvdisplay.py | 11 + test/t/test_lvextend.py | 9 + test/t/test_lvm.py | 7 + test/t/test_lvmdiskscan.py | 11 + test/t/test_lvreduce.py | 9 + test/t/test_lvremove.py | 9 + test/t/test_lvrename.py | 9 + test/t/test_lvresize.py | 9 + test/t/test_lvs.py | 9 + test/t/test_lvscan.py | 9 + test/t/test_lz4.py | 15 + test/t/test_lzip.py | 11 + test/t/test_lzma.py | 19 + test/t/test_lzop.py | 11 + test/t/test_m4.py | 9 + test/t/test_macof.py | 7 + test/t/test_mailmanctl.py | 8 + test/t/test_mailsnarf.py | 7 + test/t/test_make.py | 47 ++ test/t/test_makepkg.py | 17 + test/t/test_man.py | 115 ++++ test/t/test_mc.py | 7 + test/t/test_mcrypt.py | 19 + test/t/test_md5sum.py | 11 + test/t/test_mdadm.py | 7 + test/t/test_mdecrypt.py | 7 + test/t/test_mdtool.py | 7 + test/t/test_medusa.py | 7 + test/t/test_mencoder.py | 12 + test/t/test_mii_diag.py | 12 + test/t/test_mii_tool.py | 12 + test/t/test_minicom.py | 7 + test/t/test_mkdir.py | 21 + test/t/test_mkfifo.py | 11 + test/t/test_mkinitrd.py | 7 + test/t/test_mkisofs.py | 15 + test/t/test_mknod.py | 11 + test/t/test_mktemp.py | 7 + test/t/test_mmsitepass.py | 7 + test/t/test_mock.py | 13 + test/t/test_modinfo.py | 32 + test/t/test_modprobe.py | 36 ++ test/t/test_module.py | 7 + test/t/test_mogrify.py | 7 + test/t/test_monodevelop.py | 11 + test/t/test_montage.py | 7 + test/t/test_mount.py | 22 + test/t/test_mplayer.py | 12 + test/t/test_mr.py | 58 ++ test/t/test_msgsnarf.py | 7 + test/t/test_msynctool.py | 7 + test/t/test_mtx.py | 7 + test/t/test_munin_node_configure.py | 19 + test/t/test_munin_run.py | 8 + test/t/test_munindoc.py | 10 + test/t/test_mussh.py | 7 + test/t/test_mutt.py | 33 + test/t/test_muttng.py | 7 + test/t/test_mv.py | 11 + test/t/test_mypy.py | 15 + test/t/test_mysql.py | 15 + test/t/test_mysqladmin.py | 7 + test/t/test_nc.py | 7 + test/t/test_ncftp.py | 11 + test/t/test_nethogs.py | 11 + test/t/test_netstat.py | 11 + test/t/test_newgrp.py | 7 + test/t/test_newlist.py | 7 + test/t/test_newusers.py | 11 + test/t/test_ngrep.py | 11 + test/t/test_nl.py | 11 + test/t/test_nm.py | 11 + test/t/test_nmap.py | 47 ++ test/t/test_nmcli.py | 7 + test/t/test_nproc.py | 17 + test/t/test_nslookup.py | 7 + test/t/test_nsupdate.py | 11 + test/t/test_ntpdate.py | 7 + test/t/test_objcopy.py | 11 + test/t/test_objdump.py | 7 + test/t/test_od.py | 11 + test/t/test_oggdec.py | 11 + test/t/test_op.py | 11 + test/t/test_openssl.py | 16 + test/t/test_opera.py | 11 + test/t/test_optipng.py | 11 + test/t/test_p4.py | 7 + test/t/test_pack200.py | 7 + test/t/test_passwd.py | 11 + test/t/test_paste.py | 11 + test/t/test_patch.py | 11 + test/t/test_pdftotext.py | 11 + test/t/test_perl.py | 91 +++ test/t/test_perlcritic.py | 15 + test/t/test_perldoc.py | 18 + test/t/test_perltidy.py | 19 + test/t/test_pgrep.py | 35 ++ test/t/test_phing.py | 11 + test/t/test_pidof.py | 15 + test/t/test_pine.py | 7 + test/t/test_pinfo.py | 12 + test/t/test_ping.py | 11 + test/t/test_pkg_config.py | 12 + test/t/test_pkg_deinstall.py | 15 + test/t/test_pkg_delete.py | 7 + test/t/test_pkg_get.py | 8 + test/t/test_pkg_info.py | 7 + test/t/test_pkgadd.py | 8 + test/t/test_pkgrm.py | 8 + test/t/test_pkgtool.py | 7 + test/t/test_pkgutil.py | 7 + test/t/test_pkill.py | 11 + test/t/test_plague_client.py | 8 + test/t/test_pm_hibernate.py | 8 + test/t/test_pm_is_supported.py | 8 + test/t/test_pm_powersave.py | 8 + test/t/test_pngfix.py | 11 + test/t/test_portinstall.py | 27 + test/t/test_portsnap.py | 7 + test/t/test_portupgrade.py | 8 + test/t/test_postcat.py | 11 + test/t/test_postconf.py | 20 + test/t/test_postfix.py | 22 + test/t/test_postmap.py | 11 + test/t/test_postsuper.py | 7 + test/t/test_povray.py | 7 + test/t/test_pr.py | 11 + test/t/test_prelink.py | 11 + test/t/test_printenv.py | 19 + test/t/test_protoc.py | 20 + test/t/test_psql.py | 11 + test/t/test_ptx.py | 11 + test/t/test_puppet.py | 11 + test/t/test_pushd.py | 7 + test/t/test_pv.py | 15 + test/t/test_pvchange.py | 9 + test/t/test_pvcreate.py | 9 + test/t/test_pvdisplay.py | 11 + test/t/test_pvmove.py | 9 + test/t/test_pvremove.py | 9 + test/t/test_pvs.py | 9 + test/t/test_pvscan.py | 9 + test/t/test_pwck.py | 11 + test/t/test_pwd.py | 7 + test/t/test_pwdx.py | 19 + test/t/test_pwgen.py | 7 + test/t/test_pycodestyle.py | 15 + test/t/test_pydoc.py | 11 + test/t/test_pydocstyle.py | 13 + test/t/test_pyflakes.py | 11 + test/t/test_pylint.py | 11 + test/t/test_pylint_3.py | 12 + test/t/test_pytest.py | 50 ++ test/t/test_python.py | 39 ++ test/t/test_python3.py | 39 ++ test/t/test_pyvenv.py | 7 + test/t/test_qemu.py | 11 + test/t/test_qrunner.py | 7 + test/t/test_querybts.py | 7 + test/t/test_quota.py | 11 + test/t/test_quotacheck.py | 7 + test/t/test_quotaon.py | 7 + test/t/test_radvdump.py | 11 + test/t/test_rcs.py | 7 + test/t/test_rcsdiff.py | 7 + test/t/test_rdesktop.py | 7 + test/t/test_rdict.py | 7 + test/t/test_readelf.py | 7 + test/t/test_readonly.py | 7 + test/t/test_remove_members.py | 7 + test/t/test_removepkg.py | 15 + test/t/test_renice.py | 11 + test/t/test_repomanage.py | 11 + test/t/test_reportbug.py | 7 + test/t/test_reptyr.py | 11 + test/t/test_resolvconf.py | 7 + test/t/test_rfcomm.py | 7 + test/t/test_rfkill.py | 11 + test/t/test_ri.py | 16 + test/t/test_rlog.py | 7 + test/t/test_rm.py | 11 + test/t/test_rmdir.py | 16 + test/t/test_rmlist.py | 7 + test/t/test_rmmod.py | 7 + test/t/test_route.py | 7 + test/t/test_rpcdebug.py | 7 + test/t/test_rpm.py | 15 + test/t/test_rpm2tgz.py | 26 + test/t/test_rpmbuild.py | 7 + test/t/test_rrdtool.py | 7 + test/t/test_rsync.py | 16 + test/t/test_rtcwake.py | 11 + test/t/test_runuser.py | 7 + test/t/test_sbcl.py | 7 + test/t/test_sbcl_mt.py | 8 + test/t/test_sbopkg.py | 7 + test/t/test_scp.py | 79 +++ test/t/test_screen.py | 48 ++ test/t/test_scrub.py | 19 + test/t/test_sdptool.py | 7 + test/t/test_secret_tool.py | 12 + test/t/test_sed.py | 7 + test/t/test_seq.py | 7 + test/t/test_service.py | 7 + test/t/test_set.py | 7 + test/t/test_setquota.py | 11 + test/t/test_sftp.py | 46 ++ test/t/test_sh.py | 19 + test/t/test_sha1sum.py | 7 + test/t/test_shar.py | 7 + test/t/test_shellcheck.py | 19 + test/t/test_sitecopy.py | 7 + test/t/test_slackpkg.py | 7 + test/t/test_slapt_get.py | 44 ++ test/t/test_slapt_src.py | 43 ++ test/t/test_smartctl.py | 7 + test/t/test_smbcacls.py | 7 + test/t/test_smbclient.py | 7 + test/t/test_smbcquotas.py | 7 + test/t/test_smbget.py | 7 + test/t/test_smbpasswd.py | 7 + test/t/test_smbtar.py | 7 + test/t/test_smbtree.py | 7 + test/t/test_snownews.py | 7 + test/t/test_sort.py | 7 + test/t/test_split.py | 7 + test/t/test_spovray.py | 7 + test/t/test_sqlite3.py | 15 + test/t/test_ss.py | 15 + test/t/test_ssh.py | 60 ++ test/t/test_ssh_add.py | 17 + test/t/test_ssh_copy_id.py | 16 + test/t/test_ssh_keygen.py | 59 ++ test/t/test_sshfs.py | 8 + test/t/test_sshmitm.py | 7 + test/t/test_sshow.py | 7 + test/t/test_strace.py | 7 + test/t/test_stream.py | 7 + test/t/test_strings.py | 11 + test/t/test_strip.py | 7 + test/t/test_su.py | 11 + test/t/test_sudo.py | 83 +++ test/t/test_sum.py | 11 + test/t/test_svcadm.py | 7 + test/t/test_svk.py | 7 + test/t/test_svn.py | 7 + test/t/test_svnadmin.py | 7 + test/t/test_svnlook.py | 7 + test/t/test_sync_members.py | 7 + test/t/test_synclient.py | 16 + test/t/test_sysbench.py | 11 + test/t/test_sysctl.py | 15 + test/t/test_tac.py | 7 + test/t/test_tail.py | 7 + test/t/test_tar.py | 120 ++++ test/t/test_tcpdump.py | 7 + test/t/test_tcpkill.py | 7 + test/t/test_tcpnice.py | 7 + test/t/test_tee.py | 11 + test/t/test_texindex.py | 7 + test/t/test_tightvncviewer.py | 7 + test/t/test_time.py | 23 + test/t/test_timeout.py | 11 + test/t/test_tipc.py | 7 + test/t/test_totem.py | 7 + test/t/test_touch.py | 7 + test/t/test_tox.py | 19 + test/t/test_tr.py | 7 + test/t/test_tracepath.py | 11 + test/t/test_tshark.py | 34 + test/t/test_tsig_keygen.py | 12 + test/t/test_tune2fs.py | 11 + test/t/test_udevadm.py | 11 + test/t/test_ulimit.py | 35 ++ test/t/test_umount.py | 85 +++ test/t/test_unace.py | 7 + test/t/test_uname.py | 7 + test/t/test_unexpand.py | 7 + test/t/test_uniq.py | 7 + test/t/test_units.py | 9 + test/t/test_unpack200.py | 7 + test/t/test_unrar.py | 7 + test/t/test_unset.py | 7 + test/t/test_unshunt.py | 7 + test/t/test_update_alternatives.py | 8 + test/t/test_update_rc_d.py | 8 + test/t/test_upgradepkg.py | 51 ++ test/t/test_urlsnarf.py | 7 + test/t/test_uscan.py | 7 + test/t/test_useradd.py | 11 + test/t/test_userdel.py | 11 + test/t/test_usermod.py | 11 + test/t/test_valgrind.py | 42 ++ test/t/test_vdir.py | 11 + test/t/test_vgcfgbackup.py | 11 + test/t/test_vgcfgrestore.py | 11 + test/t/test_vgchange.py | 9 + test/t/test_vgck.py | 9 + test/t/test_vgconvert.py | 9 + test/t/test_vgcreate.py | 13 + test/t/test_vgdisplay.py | 9 + test/t/test_vgexport.py | 9 + test/t/test_vgextend.py | 9 + test/t/test_vgimport.py | 9 + test/t/test_vgmerge.py | 9 + test/t/test_vgmknodes.py | 9 + test/t/test_vgreduce.py | 9 + test/t/test_vgremove.py | 9 + test/t/test_vgrename.py | 9 + test/t/test_vgs.py | 9 + test/t/test_vgscan.py | 9 + test/t/test_vgsplit.py | 9 + test/t/test_vi.py | 11 + test/t/test_vipw.py | 7 + test/t/test_vmstat.py | 7 + test/t/test_vncviewer.py | 8 + test/t/test_vpnc.py | 13 + test/t/test_watch.py | 7 + test/t/test_wc.py | 7 + test/t/test_webmitm.py | 7 + test/t/test_wget.py | 11 + test/t/test_who.py | 9 + test/t/test_wine.py | 11 + test/t/test_withlist.py | 7 + test/t/test_wodim.py | 7 + test/t/test_wol.py | 20 + test/t/test_write.py | 7 + test/t/test_wsimport.py | 18 + test/t/test_wtf.py | 8 + test/t/test_wvdial.py | 7 + test/t/test_xdg_mime.py | 28 + test/t/test_xdg_settings.py | 16 + test/t/test_xfreerdp.py | 60 ++ test/t/test_xgamma.py | 12 + test/t/test_xhost.py | 22 + test/t/test_xm.py | 7 + test/t/test_xmllint.py | 11 + test/t/test_xmlwf.py | 11 + test/t/test_xmms.py | 11 + test/t/test_xmodmap.py | 11 + test/t/test_xpovray.py | 7 + test/t/test_xrandr.py | 15 + test/t/test_xrdb.py | 11 + test/t/test_xsltproc.py | 11 + test/t/test_xvfb_run.py | 12 + test/t/test_xvnc4viewer.py | 15 + test/t/test_xxd.py | 11 + test/t/test_xz.py | 26 + test/t/test_xzdec.py | 11 + test/t/test_ypcat.py | 7 + test/t/test_ypmatch.py | 8 + test/t/test_yum.py | 7 + test/t/test_yum_arch.py | 8 + test/t/test_zopfli.py | 15 + test/t/test_zopflipng.py | 11 + test/t/unit/Makefile.am | 24 + test/t/unit/test_unit_count_args.py | 66 ++ test/t/unit/test_unit_expand.py | 31 + test/t/unit/test_unit_expand_tilde_by_ref.py | 46 ++ test/t/unit/test_unit_filedir.py | 235 +++++++ .../unit/test_unit_find_unique_completion_pair.py | 55 ++ test/t/unit/test_unit_get_comp_words_by_ref.py | 260 ++++++++ test/t/unit/test_unit_get_cword.py | 154 +++++ test/t/unit/test_unit_init_completion.py | 34 + test/t/unit/test_unit_ip_addresses.py | 49 ++ test/t/unit/test_unit_known_hosts_real.py | 158 +++++ test/t/unit/test_unit_longopt.py | 52 ++ test/t/unit/test_unit_parse_help.py | 183 ++++++ test/t/unit/test_unit_parse_usage.py | 69 ++ test/t/unit/test_unit_quote.py | 36 ++ test/t/unit/test_unit_quote_readline.py | 15 + test/t/unit/test_unit_tilde.py | 42 ++ test/t/unit/test_unit_variables.py | 41 ++ test/t/unit/test_unit_xinetd_services.py | 22 + test/test-cmd-list.txt | 687 ++++++++++++++++++++ test/update-test-cmd-list | 13 + 973 files changed, 13816 insertions(+) create mode 100644 test/.gitignore create mode 100644 test/Makefile.am create mode 100644 test/config/bashrc create mode 100644 test/config/inputrc create mode 100644 test/docker/Dockerfile create mode 100755 test/docker/docker-script.sh 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 create mode 100755 test/generate create mode 100644 test/requirements-dev.txt create mode 100644 test/requirements.txt create mode 100755 test/runLint create mode 100644 test/setup.cfg create mode 100644 test/t/Makefile.am create mode 100644 test/t/conftest.py create mode 100644 test/t/test_2to3.py create mode 100644 test/t/test_7z.py create mode 100644 test/t/test_a2ps.py create mode 100644 test/t/test_a2x.py create mode 100644 test/t/test_abook.py create mode 100644 test/t/test_aclocal.py create mode 100644 test/t/test_acpi.py create mode 100644 test/t/test_acroread.py create mode 100644 test/t/test_adb.py create mode 100644 test/t/test_add_members.py create mode 100644 test/t/test_alias.py create mode 100644 test/t/test_alpine.py create mode 100644 test/t/test_animate.py create mode 100644 test/t/test_ant.py create mode 100644 test/t/test_apache2ctl.py create mode 100644 test/t/test_appdata_validate.py create mode 100644 test/t/test_apt_build.py create mode 100644 test/t/test_apt_cache.py create mode 100644 test/t/test_apt_get.py create mode 100644 test/t/test_aptitude.py create mode 100644 test/t/test_arch.py create mode 100644 test/t/test_arp.py create mode 100644 test/t/test_arping.py create mode 100644 test/t/test_arpspoof.py create mode 100644 test/t/test_asciidoc.py create mode 100644 test/t/test_aspell.py create mode 100644 test/t/test_autoconf.py create mode 100644 test/t/test_autoheader.py create mode 100644 test/t/test_automake.py create mode 100644 test/t/test_autoreconf.py create mode 100644 test/t/test_autorpm.py create mode 100644 test/t/test_autoscan.py create mode 100644 test/t/test_autossh.py create mode 100644 test/t/test_autoupdate.py create mode 100644 test/t/test_avctrl.py create mode 100644 test/t/test_awk.py create mode 100644 test/t/test_badblocks.py create mode 100644 test/t/test_base64.py create mode 100644 test/t/test_bash.py create mode 100644 test/t/test_bc.py create mode 100644 test/t/test_bind.py create mode 100644 test/t/test_bison.py create mode 100644 test/t/test_bk.py create mode 100644 test/t/test_bmake.py create mode 100644 test/t/test_brctl.py create mode 100644 test/t/test_btdownloadcurses_py.py create mode 100644 test/t/test_btdownloadgui_py.py create mode 100644 test/t/test_btdownloadheadless_py.py create mode 100644 test/t/test_bts.py create mode 100644 test/t/test_bzip2.py create mode 100644 test/t/test_cal.py create mode 100644 test/t/test_cancel.py create mode 100644 test/t/test_cardctl.py create mode 100644 test/t/test_carton.py create mode 100644 test/t/test_cat.py create mode 100644 test/t/test_cc.py create mode 100644 test/t/test_ccache.py create mode 100644 test/t/test_ccze.py create mode 100644 test/t/test_cd.py create mode 100644 test/t/test_cdrecord.py create mode 100644 test/t/test_cfagent.py create mode 100644 test/t/test_cfrun.py create mode 100644 test/t/test_chage.py create mode 100644 test/t/test_change_pw.py create mode 100644 test/t/test_check_db.py create mode 100644 test/t/test_check_perms.py create mode 100644 test/t/test_checksec.py create mode 100644 test/t/test_chfn.py create mode 100644 test/t/test_chgrp.py create mode 100644 test/t/test_chkconfig.py create mode 100644 test/t/test_chmod.py create mode 100644 test/t/test_chown.py create mode 100644 test/t/test_chpasswd.py create mode 100644 test/t/test_chromium_browser.py create mode 100644 test/t/test_chronyc.py create mode 100644 test/t/test_chroot.py create mode 100644 test/t/test_chrpath.py create mode 100644 test/t/test_chsh.py create mode 100644 test/t/test_ci.py create mode 100644 test/t/test_ciptool.py create mode 100644 test/t/test_civclient.py create mode 100644 test/t/test_civserver.py create mode 100644 test/t/test_cksfv.py create mode 100644 test/t/test_cleanarch.py create mode 100644 test/t/test_clisp.py create mode 100644 test/t/test_clone_member.py create mode 100644 test/t/test_co.py create mode 100644 test/t/test_colordiff.py create mode 100644 test/t/test_compare.py create mode 100644 test/t/test_compgen.py create mode 100644 test/t/test_complete.py create mode 100644 test/t/test_composite.py create mode 100644 test/t/test_config_list.py create mode 100644 test/t/test_configure.py create mode 100644 test/t/test_conjure.py create mode 100644 test/t/test_convert.py create mode 100644 test/t/test_cowsay.py create mode 100644 test/t/test_cp.py create mode 100644 test/t/test_cpan2dist.py create mode 100644 test/t/test_cpio.py create mode 100644 test/t/test_cplusplus.py create mode 100644 test/t/test_cppcheck.py create mode 100644 test/t/test_createdb.py create mode 100644 test/t/test_createuser.py create mode 100644 test/t/test_crontab.py create mode 100644 test/t/test_cryptsetup.py create mode 100644 test/t/test_csplit.py create mode 100644 test/t/test_curl.py create mode 100644 test/t/test_cut.py create mode 100644 test/t/test_cvs.py create mode 100644 test/t/test_cvsps.py create mode 100644 test/t/test_date.py create mode 100644 test/t/test_dcop.py create mode 100644 test/t/test_dd.py create mode 100644 test/t/test_declare.py create mode 100644 test/t/test_deja_dup.py create mode 100644 test/t/test_desktop_file_validate.py create mode 100644 test/t/test_df.py create mode 100644 test/t/test_dfutool.py create mode 100644 test/t/test_dhclient.py create mode 100644 test/t/test_dict.py create mode 100644 test/t/test_diff.py create mode 100644 test/t/test_dir.py create mode 100644 test/t/test_display.py create mode 100644 test/t/test_dmesg.py create mode 100644 test/t/test_dmypy.py create mode 100644 test/t/test_dnssec_keygen.py create mode 100644 test/t/test_dnsspoof.py create mode 100644 test/t/test_dot.py create mode 100644 test/t/test_dpkg.py create mode 100644 test/t/test_dpkg_deb.py create mode 100644 test/t/test_dpkg_query.py create mode 100644 test/t/test_dpkg_reconfigure.py create mode 100644 test/t/test_dpkg_source.py create mode 100644 test/t/test_dropdb.py create mode 100644 test/t/test_dropuser.py create mode 100644 test/t/test_dselect.py create mode 100644 test/t/test_dsniff.py create mode 100644 test/t/test_du.py create mode 100644 test/t/test_dumpdb.py create mode 100644 test/t/test_dumpe2fs.py create mode 100644 test/t/test_e2freefrag.py create mode 100644 test/t/test_e2label.py create mode 100644 test/t/test_ebtables.py create mode 100644 test/t/test_ecryptfs_migrate_home.py create mode 100644 test/t/test_eject.py create mode 100644 test/t/test_enscript.py create mode 100644 test/t/test_env.py create mode 100644 test/t/test_eog.py create mode 100644 test/t/test_ether_wake.py create mode 100644 test/t/test_etherwake.py create mode 100644 test/t/test_evince.py create mode 100644 test/t/test_expand.py create mode 100644 test/t/test_explodepkg.py create mode 100644 test/t/test_export.py create mode 100644 test/t/test_faillog.py create mode 100644 test/t/test_fbgs.py create mode 100644 test/t/test_fbi.py create mode 100644 test/t/test_feh.py create mode 100644 test/t/test_file.py create mode 100644 test/t/test_file_roller.py create mode 100644 test/t/test_filefrag.py create mode 100644 test/t/test_filesnarf.py create mode 100644 test/t/test_find.py create mode 100644 test/t/test_find_member.py create mode 100644 test/t/test_finger.py create mode 100644 test/t/test_fio.py create mode 100644 test/t/test_firefox.py create mode 100644 test/t/test_flake8.py create mode 100644 test/t/test_fmt.py create mode 100644 test/t/test_fold.py create mode 100644 test/t/test_freebsd_update.py create mode 100644 test/t/test_freeciv.py create mode 100644 test/t/test_freeciv_server.py create mode 100644 test/t/test_function.py create mode 100644 test/t/test_fusermount.py create mode 100644 test/t/test_g4.py create mode 100644 test/t/test_g77.py create mode 100644 test/t/test_gcc.py create mode 100644 test/t/test_gcj.py create mode 100644 test/t/test_gcl.py create mode 100644 test/t/test_gdb.py create mode 100644 test/t/test_genaliases.py create mode 100644 test/t/test_gendiff.py create mode 100644 test/t/test_genisoimage.py create mode 100644 test/t/test_geoiplookup.py create mode 100644 test/t/test_getconf.py create mode 100644 test/t/test_getent.py create mode 100644 test/t/test_gkrellm.py create mode 100644 test/t/test_gm.py create mode 100644 test/t/test_gmplayer.py create mode 100644 test/t/test_gnatmake.py create mode 100644 test/t/test_gnokii.py create mode 100644 test/t/test_gnome_mplayer.py create mode 100644 test/t/test_gnome_screenshot.py create mode 100644 test/t/test_gpasswd.py create mode 100644 test/t/test_gpc.py create mode 100644 test/t/test_gperf.py create mode 100644 test/t/test_gpg.py create mode 100644 test/t/test_gpg2.py create mode 100644 test/t/test_gpgv.py create mode 100644 test/t/test_gphoto2.py create mode 100644 test/t/test_gplusplus.py create mode 100644 test/t/test_gprof.py create mode 100644 test/t/test_grep.py create mode 100644 test/t/test_groupadd.py create mode 100644 test/t/test_groupdel.py create mode 100644 test/t/test_groupmems.py create mode 100644 test/t/test_groupmod.py create mode 100644 test/t/test_growisofs.py create mode 100644 test/t/test_grpck.py create mode 100644 test/t/test_grub.py create mode 100644 test/t/test_gssdp_discover.py create mode 100644 test/t/test_gzip.py create mode 100644 test/t/test_hciattach.py create mode 100644 test/t/test_hciconfig.py create mode 100644 test/t/test_hcitool.py create mode 100644 test/t/test_hddtemp.py create mode 100644 test/t/test_head.py create mode 100644 test/t/test_hexdump.py create mode 100644 test/t/test_hid2hci.py create mode 100644 test/t/test_host.py create mode 100644 test/t/test_hostname.py create mode 100644 test/t/test_hping2.py create mode 100644 test/t/test_hping3.py create mode 100644 test/t/test_htop.py create mode 100644 test/t/test_htpasswd.py create mode 100644 test/t/test_hunspell.py create mode 100644 test/t/test_hwclock.py create mode 100644 test/t/test_iconv.py create mode 100644 test/t/test_id.py create mode 100644 test/t/test_identify.py create mode 100644 test/t/test_idn.py create mode 100644 test/t/test_ifdown.py create mode 100644 test/t/test_ifstat.py create mode 100644 test/t/test_iftop.py create mode 100644 test/t/test_ifup.py create mode 100644 test/t/test_import.py create mode 100644 test/t/test_influx.py create mode 100644 test/t/test_info.py create mode 100644 test/t/test_inject.py create mode 100644 test/t/test_inotifywait.py create mode 100644 test/t/test_inotifywatch.py create mode 100644 test/t/test_insmod.py create mode 100644 test/t/test_installpkg.py create mode 100644 test/t/test_interdiff.py create mode 100644 test/t/test_invoke_rc_d.py create mode 100644 test/t/test_ionice.py create mode 100644 test/t/test_ip.py create mode 100644 test/t/test_ipcalc.py create mode 100644 test/t/test_iperf.py create mode 100644 test/t/test_iperf3.py create mode 100644 test/t/test_ipmitool.py create mode 100644 test/t/test_ipsec.py create mode 100644 test/t/test_iptables.py create mode 100644 test/t/test_ipv6calc.py create mode 100644 test/t/test_irb.py create mode 100644 test/t/test_iscsiadm.py create mode 100644 test/t/test_isort.py create mode 100644 test/t/test_isql.py create mode 100644 test/t/test_iwconfig.py create mode 100644 test/t/test_iwlist.py create mode 100644 test/t/test_iwpriv.py create mode 100644 test/t/test_iwspy.py create mode 100644 test/t/test_jar.py create mode 100644 test/t/test_jarsigner.py create mode 100644 test/t/test_java.py create mode 100644 test/t/test_javac.py create mode 100644 test/t/test_javadoc.py create mode 100644 test/t/test_javaws.py create mode 100644 test/t/test_jpegoptim.py create mode 100644 test/t/test_jps.py create mode 100644 test/t/test_jq.py create mode 100644 test/t/test_jshint.py create mode 100644 test/t/test_json_xs.py create mode 100644 test/t/test_jsonschema.py create mode 100644 test/t/test_k3b.py create mode 100644 test/t/test_kcov.py create mode 100644 test/t/test_kdvi.py create mode 100644 test/t/test_kill.py create mode 100644 test/t/test_killall.py create mode 100644 test/t/test_kldload.py create mode 100644 test/t/test_kldunload.py create mode 100644 test/t/test_koji.py create mode 100644 test/t/test_kpdf.py create mode 100644 test/t/test_kplayer.py create mode 100644 test/t/test_ktutil.py create mode 100644 test/t/test_l2ping.py create mode 100644 test/t/test_larch.py create mode 100644 test/t/test_lastlog.py create mode 100644 test/t/test_ld.py create mode 100644 test/t/test_ldapadd.py create mode 100644 test/t/test_ldapcompare.py create mode 100644 test/t/test_ldapdelete.py create mode 100644 test/t/test_ldapmodrdn.py create mode 100644 test/t/test_ldappasswd.py create mode 100644 test/t/test_ldapsearch.py create mode 100644 test/t/test_ldapvi.py create mode 100644 test/t/test_ldapwhoami.py create mode 100644 test/t/test_ldd.py create mode 100644 test/t/test_less.py create mode 100644 test/t/test_lftp.py create mode 100644 test/t/test_lftpget.py create mode 100644 test/t/test_lilo.py create mode 100644 test/t/test_links.py create mode 100644 test/t/test_lintian.py create mode 100644 test/t/test_lintian_info.py create mode 100644 test/t/test_lisp.py create mode 100644 test/t/test_list_admins.py create mode 100644 test/t/test_list_lists.py create mode 100644 test/t/test_list_members.py create mode 100644 test/t/test_list_owners.py create mode 100644 test/t/test_ln.py create mode 100644 test/t/test_locale_gen.py create mode 100644 test/t/test_look.py create mode 100644 test/t/test_lpq.py create mode 100644 test/t/test_lpr.py create mode 100644 test/t/test_lrzip.py create mode 100644 test/t/test_ls.py create mode 100644 test/t/test_lsof.py create mode 100644 test/t/test_lspci.py create mode 100644 test/t/test_lsscsi.py create mode 100644 test/t/test_lsusb.py create mode 100644 test/t/test_lua.py create mode 100644 test/t/test_luac.py create mode 100644 test/t/test_luseradd.py create mode 100644 test/t/test_luserdel.py create mode 100644 test/t/test_lusermod.py create mode 100644 test/t/test_lvchange.py create mode 100644 test/t/test_lvcreate.py create mode 100644 test/t/test_lvdisplay.py create mode 100644 test/t/test_lvextend.py create mode 100644 test/t/test_lvm.py create mode 100644 test/t/test_lvmdiskscan.py create mode 100644 test/t/test_lvreduce.py create mode 100644 test/t/test_lvremove.py create mode 100644 test/t/test_lvrename.py create mode 100644 test/t/test_lvresize.py create mode 100644 test/t/test_lvs.py create mode 100644 test/t/test_lvscan.py create mode 100644 test/t/test_lz4.py create mode 100644 test/t/test_lzip.py create mode 100644 test/t/test_lzma.py create mode 100644 test/t/test_lzop.py create mode 100644 test/t/test_m4.py create mode 100644 test/t/test_macof.py create mode 100644 test/t/test_mailmanctl.py create mode 100644 test/t/test_mailsnarf.py create mode 100644 test/t/test_make.py create mode 100644 test/t/test_makepkg.py create mode 100644 test/t/test_man.py create mode 100644 test/t/test_mc.py create mode 100644 test/t/test_mcrypt.py create mode 100644 test/t/test_md5sum.py create mode 100644 test/t/test_mdadm.py create mode 100644 test/t/test_mdecrypt.py create mode 100644 test/t/test_mdtool.py create mode 100644 test/t/test_medusa.py create mode 100644 test/t/test_mencoder.py create mode 100644 test/t/test_mii_diag.py create mode 100644 test/t/test_mii_tool.py create mode 100644 test/t/test_minicom.py create mode 100644 test/t/test_mkdir.py create mode 100644 test/t/test_mkfifo.py create mode 100644 test/t/test_mkinitrd.py create mode 100644 test/t/test_mkisofs.py create mode 100644 test/t/test_mknod.py create mode 100644 test/t/test_mktemp.py create mode 100644 test/t/test_mmsitepass.py create mode 100644 test/t/test_mock.py create mode 100644 test/t/test_modinfo.py create mode 100644 test/t/test_modprobe.py create mode 100644 test/t/test_module.py create mode 100644 test/t/test_mogrify.py create mode 100644 test/t/test_monodevelop.py create mode 100644 test/t/test_montage.py create mode 100644 test/t/test_mount.py create mode 100644 test/t/test_mplayer.py create mode 100644 test/t/test_mr.py create mode 100644 test/t/test_msgsnarf.py create mode 100644 test/t/test_msynctool.py create mode 100644 test/t/test_mtx.py create mode 100644 test/t/test_munin_node_configure.py create mode 100644 test/t/test_munin_run.py create mode 100644 test/t/test_munindoc.py create mode 100644 test/t/test_mussh.py create mode 100644 test/t/test_mutt.py create mode 100644 test/t/test_muttng.py create mode 100644 test/t/test_mv.py create mode 100644 test/t/test_mypy.py create mode 100644 test/t/test_mysql.py create mode 100644 test/t/test_mysqladmin.py create mode 100644 test/t/test_nc.py create mode 100644 test/t/test_ncftp.py create mode 100644 test/t/test_nethogs.py create mode 100644 test/t/test_netstat.py create mode 100644 test/t/test_newgrp.py create mode 100644 test/t/test_newlist.py create mode 100644 test/t/test_newusers.py create mode 100644 test/t/test_ngrep.py create mode 100644 test/t/test_nl.py create mode 100644 test/t/test_nm.py create mode 100644 test/t/test_nmap.py create mode 100644 test/t/test_nmcli.py create mode 100644 test/t/test_nproc.py create mode 100644 test/t/test_nslookup.py create mode 100644 test/t/test_nsupdate.py create mode 100644 test/t/test_ntpdate.py create mode 100644 test/t/test_objcopy.py create mode 100644 test/t/test_objdump.py create mode 100644 test/t/test_od.py create mode 100644 test/t/test_oggdec.py create mode 100644 test/t/test_op.py create mode 100644 test/t/test_openssl.py create mode 100644 test/t/test_opera.py create mode 100644 test/t/test_optipng.py create mode 100644 test/t/test_p4.py create mode 100644 test/t/test_pack200.py create mode 100644 test/t/test_passwd.py create mode 100644 test/t/test_paste.py create mode 100644 test/t/test_patch.py create mode 100644 test/t/test_pdftotext.py create mode 100644 test/t/test_perl.py create mode 100644 test/t/test_perlcritic.py create mode 100644 test/t/test_perldoc.py create mode 100644 test/t/test_perltidy.py create mode 100644 test/t/test_pgrep.py create mode 100644 test/t/test_phing.py create mode 100644 test/t/test_pidof.py create mode 100644 test/t/test_pine.py create mode 100644 test/t/test_pinfo.py create mode 100644 test/t/test_ping.py create mode 100644 test/t/test_pkg_config.py create mode 100644 test/t/test_pkg_deinstall.py create mode 100644 test/t/test_pkg_delete.py create mode 100644 test/t/test_pkg_get.py create mode 100644 test/t/test_pkg_info.py create mode 100644 test/t/test_pkgadd.py create mode 100644 test/t/test_pkgrm.py create mode 100644 test/t/test_pkgtool.py create mode 100644 test/t/test_pkgutil.py create mode 100644 test/t/test_pkill.py create mode 100644 test/t/test_plague_client.py create mode 100644 test/t/test_pm_hibernate.py create mode 100644 test/t/test_pm_is_supported.py create mode 100644 test/t/test_pm_powersave.py create mode 100644 test/t/test_pngfix.py create mode 100644 test/t/test_portinstall.py create mode 100644 test/t/test_portsnap.py create mode 100644 test/t/test_portupgrade.py create mode 100644 test/t/test_postcat.py create mode 100644 test/t/test_postconf.py create mode 100644 test/t/test_postfix.py create mode 100644 test/t/test_postmap.py create mode 100644 test/t/test_postsuper.py create mode 100644 test/t/test_povray.py create mode 100644 test/t/test_pr.py create mode 100644 test/t/test_prelink.py create mode 100644 test/t/test_printenv.py create mode 100644 test/t/test_protoc.py create mode 100644 test/t/test_psql.py create mode 100644 test/t/test_ptx.py create mode 100644 test/t/test_puppet.py create mode 100644 test/t/test_pushd.py create mode 100644 test/t/test_pv.py create mode 100644 test/t/test_pvchange.py create mode 100644 test/t/test_pvcreate.py create mode 100644 test/t/test_pvdisplay.py create mode 100644 test/t/test_pvmove.py create mode 100644 test/t/test_pvremove.py create mode 100644 test/t/test_pvs.py create mode 100644 test/t/test_pvscan.py create mode 100644 test/t/test_pwck.py create mode 100644 test/t/test_pwd.py create mode 100644 test/t/test_pwdx.py create mode 100644 test/t/test_pwgen.py create mode 100644 test/t/test_pycodestyle.py create mode 100644 test/t/test_pydoc.py create mode 100644 test/t/test_pydocstyle.py create mode 100644 test/t/test_pyflakes.py create mode 100644 test/t/test_pylint.py create mode 100644 test/t/test_pylint_3.py create mode 100644 test/t/test_pytest.py create mode 100644 test/t/test_python.py create mode 100644 test/t/test_python3.py create mode 100644 test/t/test_pyvenv.py create mode 100644 test/t/test_qemu.py create mode 100644 test/t/test_qrunner.py create mode 100644 test/t/test_querybts.py create mode 100644 test/t/test_quota.py create mode 100644 test/t/test_quotacheck.py create mode 100644 test/t/test_quotaon.py create mode 100644 test/t/test_radvdump.py create mode 100644 test/t/test_rcs.py create mode 100644 test/t/test_rcsdiff.py create mode 100644 test/t/test_rdesktop.py create mode 100644 test/t/test_rdict.py create mode 100644 test/t/test_readelf.py create mode 100644 test/t/test_readonly.py create mode 100644 test/t/test_remove_members.py create mode 100644 test/t/test_removepkg.py create mode 100644 test/t/test_renice.py create mode 100644 test/t/test_repomanage.py create mode 100644 test/t/test_reportbug.py create mode 100644 test/t/test_reptyr.py create mode 100644 test/t/test_resolvconf.py create mode 100644 test/t/test_rfcomm.py create mode 100644 test/t/test_rfkill.py create mode 100644 test/t/test_ri.py create mode 100644 test/t/test_rlog.py create mode 100644 test/t/test_rm.py create mode 100644 test/t/test_rmdir.py create mode 100644 test/t/test_rmlist.py create mode 100644 test/t/test_rmmod.py create mode 100644 test/t/test_route.py create mode 100644 test/t/test_rpcdebug.py create mode 100644 test/t/test_rpm.py create mode 100644 test/t/test_rpm2tgz.py create mode 100644 test/t/test_rpmbuild.py create mode 100644 test/t/test_rrdtool.py create mode 100644 test/t/test_rsync.py create mode 100644 test/t/test_rtcwake.py create mode 100644 test/t/test_runuser.py create mode 100644 test/t/test_sbcl.py create mode 100644 test/t/test_sbcl_mt.py create mode 100644 test/t/test_sbopkg.py create mode 100644 test/t/test_scp.py create mode 100644 test/t/test_screen.py create mode 100644 test/t/test_scrub.py create mode 100644 test/t/test_sdptool.py create mode 100644 test/t/test_secret_tool.py create mode 100644 test/t/test_sed.py create mode 100644 test/t/test_seq.py create mode 100644 test/t/test_service.py create mode 100644 test/t/test_set.py create mode 100644 test/t/test_setquota.py create mode 100644 test/t/test_sftp.py create mode 100644 test/t/test_sh.py create mode 100644 test/t/test_sha1sum.py create mode 100644 test/t/test_shar.py create mode 100644 test/t/test_shellcheck.py create mode 100644 test/t/test_sitecopy.py create mode 100644 test/t/test_slackpkg.py create mode 100644 test/t/test_slapt_get.py create mode 100644 test/t/test_slapt_src.py create mode 100644 test/t/test_smartctl.py create mode 100644 test/t/test_smbcacls.py create mode 100644 test/t/test_smbclient.py create mode 100644 test/t/test_smbcquotas.py create mode 100644 test/t/test_smbget.py create mode 100644 test/t/test_smbpasswd.py create mode 100644 test/t/test_smbtar.py create mode 100644 test/t/test_smbtree.py create mode 100644 test/t/test_snownews.py create mode 100644 test/t/test_sort.py create mode 100644 test/t/test_split.py create mode 100644 test/t/test_spovray.py create mode 100644 test/t/test_sqlite3.py create mode 100644 test/t/test_ss.py create mode 100644 test/t/test_ssh.py create mode 100644 test/t/test_ssh_add.py create mode 100644 test/t/test_ssh_copy_id.py create mode 100644 test/t/test_ssh_keygen.py create mode 100644 test/t/test_sshfs.py create mode 100644 test/t/test_sshmitm.py create mode 100644 test/t/test_sshow.py create mode 100644 test/t/test_strace.py create mode 100644 test/t/test_stream.py create mode 100644 test/t/test_strings.py create mode 100644 test/t/test_strip.py create mode 100644 test/t/test_su.py create mode 100644 test/t/test_sudo.py create mode 100644 test/t/test_sum.py create mode 100644 test/t/test_svcadm.py create mode 100644 test/t/test_svk.py create mode 100644 test/t/test_svn.py create mode 100644 test/t/test_svnadmin.py create mode 100644 test/t/test_svnlook.py create mode 100644 test/t/test_sync_members.py create mode 100644 test/t/test_synclient.py create mode 100644 test/t/test_sysbench.py create mode 100644 test/t/test_sysctl.py create mode 100644 test/t/test_tac.py create mode 100644 test/t/test_tail.py create mode 100644 test/t/test_tar.py create mode 100644 test/t/test_tcpdump.py create mode 100644 test/t/test_tcpkill.py create mode 100644 test/t/test_tcpnice.py create mode 100644 test/t/test_tee.py create mode 100644 test/t/test_texindex.py create mode 100644 test/t/test_tightvncviewer.py create mode 100644 test/t/test_time.py create mode 100644 test/t/test_timeout.py create mode 100644 test/t/test_tipc.py create mode 100644 test/t/test_totem.py create mode 100644 test/t/test_touch.py create mode 100644 test/t/test_tox.py create mode 100644 test/t/test_tr.py create mode 100644 test/t/test_tracepath.py create mode 100644 test/t/test_tshark.py create mode 100644 test/t/test_tsig_keygen.py create mode 100644 test/t/test_tune2fs.py create mode 100644 test/t/test_udevadm.py create mode 100644 test/t/test_ulimit.py create mode 100644 test/t/test_umount.py create mode 100644 test/t/test_unace.py create mode 100644 test/t/test_uname.py create mode 100644 test/t/test_unexpand.py create mode 100644 test/t/test_uniq.py create mode 100644 test/t/test_units.py create mode 100644 test/t/test_unpack200.py create mode 100644 test/t/test_unrar.py create mode 100644 test/t/test_unset.py create mode 100644 test/t/test_unshunt.py create mode 100644 test/t/test_update_alternatives.py create mode 100644 test/t/test_update_rc_d.py create mode 100644 test/t/test_upgradepkg.py create mode 100644 test/t/test_urlsnarf.py create mode 100644 test/t/test_uscan.py create mode 100644 test/t/test_useradd.py create mode 100644 test/t/test_userdel.py create mode 100644 test/t/test_usermod.py create mode 100644 test/t/test_valgrind.py create mode 100644 test/t/test_vdir.py create mode 100644 test/t/test_vgcfgbackup.py create mode 100644 test/t/test_vgcfgrestore.py create mode 100644 test/t/test_vgchange.py create mode 100644 test/t/test_vgck.py create mode 100644 test/t/test_vgconvert.py create mode 100644 test/t/test_vgcreate.py create mode 100644 test/t/test_vgdisplay.py create mode 100644 test/t/test_vgexport.py create mode 100644 test/t/test_vgextend.py create mode 100644 test/t/test_vgimport.py create mode 100644 test/t/test_vgmerge.py create mode 100644 test/t/test_vgmknodes.py create mode 100644 test/t/test_vgreduce.py create mode 100644 test/t/test_vgremove.py create mode 100644 test/t/test_vgrename.py create mode 100644 test/t/test_vgs.py create mode 100644 test/t/test_vgscan.py create mode 100644 test/t/test_vgsplit.py create mode 100644 test/t/test_vi.py create mode 100644 test/t/test_vipw.py create mode 100644 test/t/test_vmstat.py create mode 100644 test/t/test_vncviewer.py create mode 100644 test/t/test_vpnc.py create mode 100644 test/t/test_watch.py create mode 100644 test/t/test_wc.py create mode 100644 test/t/test_webmitm.py create mode 100644 test/t/test_wget.py create mode 100644 test/t/test_who.py create mode 100644 test/t/test_wine.py create mode 100644 test/t/test_withlist.py create mode 100644 test/t/test_wodim.py create mode 100644 test/t/test_wol.py create mode 100644 test/t/test_write.py create mode 100644 test/t/test_wsimport.py create mode 100644 test/t/test_wtf.py create mode 100644 test/t/test_wvdial.py create mode 100644 test/t/test_xdg_mime.py create mode 100644 test/t/test_xdg_settings.py create mode 100644 test/t/test_xfreerdp.py create mode 100644 test/t/test_xgamma.py create mode 100644 test/t/test_xhost.py create mode 100644 test/t/test_xm.py create mode 100644 test/t/test_xmllint.py create mode 100644 test/t/test_xmlwf.py create mode 100644 test/t/test_xmms.py create mode 100644 test/t/test_xmodmap.py create mode 100644 test/t/test_xpovray.py create mode 100644 test/t/test_xrandr.py create mode 100644 test/t/test_xrdb.py create mode 100644 test/t/test_xsltproc.py create mode 100644 test/t/test_xvfb_run.py create mode 100644 test/t/test_xvnc4viewer.py create mode 100644 test/t/test_xxd.py create mode 100644 test/t/test_xz.py create mode 100644 test/t/test_xzdec.py create mode 100644 test/t/test_ypcat.py create mode 100644 test/t/test_ypmatch.py create mode 100644 test/t/test_yum.py create mode 100644 test/t/test_yum_arch.py create mode 100644 test/t/test_zopfli.py create mode 100644 test/t/test_zopflipng.py create mode 100644 test/t/unit/Makefile.am create mode 100644 test/t/unit/test_unit_count_args.py create mode 100644 test/t/unit/test_unit_expand.py create mode 100644 test/t/unit/test_unit_expand_tilde_by_ref.py create mode 100644 test/t/unit/test_unit_filedir.py create mode 100644 test/t/unit/test_unit_find_unique_completion_pair.py create mode 100644 test/t/unit/test_unit_get_comp_words_by_ref.py create mode 100644 test/t/unit/test_unit_get_cword.py create mode 100644 test/t/unit/test_unit_init_completion.py create mode 100644 test/t/unit/test_unit_ip_addresses.py create mode 100644 test/t/unit/test_unit_known_hosts_real.py create mode 100644 test/t/unit/test_unit_longopt.py create mode 100644 test/t/unit/test_unit_parse_help.py create mode 100644 test/t/unit/test_unit_parse_usage.py create mode 100644 test/t/unit/test_unit_quote.py create mode 100644 test/t/unit/test_unit_quote_readline.py create mode 100644 test/t/unit/test_unit_tilde.py create mode 100644 test/t/unit/test_unit_variables.py create mode 100644 test/t/unit/test_unit_xinetd_services.py create mode 100644 test/test-cmd-list.txt create mode 100755 test/update-test-cmd-list (limited to 'test') diff --git a/test/.gitignore b/test/.gitignore new file mode 100644 index 0000000..c428b94 --- /dev/null +++ b/test/.gitignore @@ -0,0 +1,2 @@ +tmp/ +pytestdebug.log diff --git a/test/Makefile.am b/test/Makefile.am new file mode 100644 index 0000000..591c8f7 --- /dev/null +++ b/test/Makefile.am @@ -0,0 +1,14 @@ +SUBDIRS = t + +EXTRA_DIST = config \ + fixtures \ + setup.cfg + +all: + $(MKDIR_P) tmp + +CLEANFILES = \ + fixtures/make/extra_makefile + +clean-local: + $(RM) -rf tmp diff --git a/test/config/bashrc b/test/config/bashrc new file mode 100644 index 0000000..141dddc --- /dev/null +++ b/test/config/bashrc @@ -0,0 +1,62 @@ +# bashrc file for bash-completion test suite + +# Note that we do some initialization that would be too late to do here in +# conftest.py. + +# Use emacs key bindings +set -o emacs + +# Use bash strict mode +set -o posix + +# Raise error on uninitialized variables +set -o nounset + +# Unset `command_not_found_handle' as defined on Debian/Ubuntu, because this +# troubles and slows down testing +unset -f command_not_found_handle + +TESTDIR=$(pwd) + +export PS2='> ' + +# Also test completions of system administrator commands, which are +# installed via the same PATH expansion in `bash_completion.have()' +export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin + +# ...as well as games on some systems not in PATH by default: +export PATH=$PATH:/usr/games:/usr/local/games + +# For clean test state, avoid sourcing user's ~/.bash_completion +export BASH_COMPLETION_USER_FILE=/dev/null + +# ...and avoid stuff in BASH_COMPLETION_USER_DIR and system install locations +# overriding in-tree completions. Setting the user dir would otherwise suffice, +# but simple xspec completions are only installed if a separate one is not +# found in any completion dirs. Therefore we also point the "system" dirs to +# locations that should not yield valid completions and helpers paths either. +export BASH_COMPLETION_USER_DIR=$( + cd "$SRCDIR/.." || exit 1 + pwd +) +# /var/empty isn't necessarily actually always empty :P +export BASH_COMPLETION_COMPAT_DIR=/var/empty/bash_completion.d +export XDG_DATA_DIRS=/var/empty + +# Make sure default settings are in effect +unset -v \ + COMP_CONFIGURE_HINTS \ + COMP_CVS_REMOTE \ + COMP_KNOWN_HOSTS_WITH_HOSTFILE \ + COMP_TAR_INTERNAL_PATHS + +# @param $1 Char to add to $COMP_WORDBREAKS +add_comp_wordbreak_char() +{ + [[ "${COMP_WORDBREAKS//[^$1]/}" ]] || COMP_WORDBREAKS+=$1 +} + +# Local variables: +# mode: shell-script +# End: +# ex: filetype=sh diff --git a/test/config/inputrc b/test/config/inputrc new file mode 100644 index 0000000..da896f5 --- /dev/null +++ b/test/config/inputrc @@ -0,0 +1,22 @@ +# Readline init file for bash-completion test suite +# See: info readline + +# Press TAB once (instead of twice) to auto-complete +set show-all-if-ambiguous on + +# No bell. No ^G in output +set bell-style none + +# Don't query user about viewing the number of possible completions +set completion-query-items -1 + +# Don't use pager when showing completions +set page-completions off + +# Print each completion on its own line +set completion-display-width 0 + +# Local variables: +# mode: shell-script +# End: +# ex: filetype=sh diff --git a/test/docker/Dockerfile b/test/docker/Dockerfile new file mode 100644 index 0000000..200f918 --- /dev/null +++ b/test/docker/Dockerfile @@ -0,0 +1,6 @@ +ARG DIST +FROM vskytta/bash-completion:$DIST + +WORKDIR /work +COPY . . +CMD ["test/docker/docker-script.sh"] diff --git a/test/docker/docker-script.sh b/test/docker/docker-script.sh new file mode 100755 index 0000000..b3f351f --- /dev/null +++ b/test/docker/docker-script.sh @@ -0,0 +1,16 @@ +#!/bin/sh -ex + +if [ "$BSD" ]; then + PATH=/usr/local/lib/bsd-bin:$PATH + export PATH +fi + +export bashcomp_bash=bash +env + +autoreconf -i +./configure +make -j + +xvfb-run make distcheck \ + PYTESTFLAGS="--verbose --numprocesses=auto --dist=loadfile" 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