diff options
Diffstat (limited to 'test/fixtures')
254 files changed, 1146 insertions, 0 deletions
diff --git a/test/fixtures/7z/a.7z b/test/fixtures/7z/a.7z Binary files differnew file mode 100644 index 0000000..3357064 --- /dev/null +++ b/test/fixtures/7z/a.7z 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 --- /dev/null +++ b/test/fixtures/_filedir/a b/i diff --git a/test/fixtures/_filedir/a$b/h b/test/fixtures/_filedir/a$b/h new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/_filedir/a$b/h diff --git a/test/fixtures/_filedir/a&b/f b/test/fixtures/_filedir/a&b/f new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/_filedir/a&b/f diff --git a/test/fixtures/_filedir/a'b/c b/test/fixtures/_filedir/a'b/c new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/_filedir/a'b/c diff --git a/test/fixtures/_filedir/ab/e b/test/fixtures/_filedir/ab/e new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/_filedir/ab/e diff --git a/test/fixtures/_filedir/aé/g b/test/fixtures/_filedir/aé/g new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/_filedir/aé/g 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 --- /dev/null +++ b/test/fixtures/_filedir/ext/ee.e1 diff --git a/test/fixtures/_filedir/ext/ff.e2 b/test/fixtures/_filedir/ext/ff.e2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/_filedir/ext/ff.e2 diff --git a/test/fixtures/_filedir/ext/foo/.gitignore b/test/fixtures/_filedir/ext/foo/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/_filedir/ext/foo/.gitignore diff --git a/test/fixtures/_filedir/ext/gg.e1 b/test/fixtures/_filedir/ext/gg.e1 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/_filedir/ext/gg.e1 diff --git a/test/fixtures/_filedir/ext/hh.e2 b/test/fixtures/_filedir/ext/hh.e2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/_filedir/ext/hh.e2 diff --git a/test/fixtures/_filedir/ext/ii.E1 b/test/fixtures/_filedir/ext/ii.E1 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/_filedir/ext/ii.E1 diff --git a/test/fixtures/_get_cword/sea b/test/fixtures/_get_cword/sea new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/_get_cword/sea diff --git a/test/fixtures/_get_cword/seb b/test/fixtures/_get_cword/seb new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/_get_cword/seb diff --git a/test/fixtures/_get_cword/sec b/test/fixtures/_get_cword/sec new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/_get_cword/sec diff --git a/test/fixtures/_get_cword/ääää§ b/test/fixtures/_get_cword/ääää§ new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/_get_cword/ääää§ 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 --- /dev/null +++ b/test/fixtures/_known_hosts_real/gee-filename-canary 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: <http://www.gnu.org/software/grep/> +General help using GNU software: <http://www.gnu.org/gethelp/> 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 --- /dev/null +++ b/test/fixtures/acroread/bar diff --git a/test/fixtures/acroread/foo.d/.gitignore b/test/fixtures/acroread/foo.d/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/acroread/foo.d/.gitignore diff --git a/test/fixtures/acroread/t.pdf b/test/fixtures/acroread/t.pdf new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/acroread/t.pdf 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project default="build-with-import" name="bash-completion"> + <import file="imported-build.xml" /> + + <target name="build-with-import"> + <!-- ... --> + </target> +</project> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project basedir="." default="build" name="bash-completion"> + <target name="clean"> + <!-- ... --> + </target> +<target + name="realclean" depends="clean"> + <!-- ... --> + </target> + + <target description="bar" name="init"></target> +<target +description="bar" +name='bashcomp' > +<!-- ... --> +</target> +</project> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project default="imported-build" name="bash-completion"> + <target name="imported-build"> + <!-- ... --> + </target> +</project> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project basedir="." default="named-build" name="bash-completion"> + <target name="named-build"> + <!-- ... --> + </target> +</project> diff --git a/test/fixtures/compgen/a'b/c b/test/fixtures/compgen/a'b/c new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/compgen/a'b/c 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 --- /dev/null +++ b/test/fixtures/cvs/foo/bar diff --git a/test/fixtures/cvs/foo/quux b/test/fixtures/cvs/foo/quux new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/cvs/foo/quux 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 <directory>: write keys into directory + -a <algorithm>: + 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 <key size in bits>: + 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 <nametype>: ZONE | HOST | ENTITY | USER | OTHER + (DNSKEY generation defaults to ZONE) + -c <class>: (default: IN) + -d <digest bits> (0 => max, default) + -E <engine>: + name of an OpenSSL engine to use + -f <keyflag>: KSK | REVOKE + -g <generator>: use specified generator (DH only) + -L <ttl>: default key TTL + -p <protocol>: (default: 3 [dnssec]) + -r <randomdev>: a file containing random data + -s <strength>: strength value this key signs DNS records with (default: 0) + -T <rrtype>: DNSKEY | KEY (default: DNSKEY; use KEY for SIG(0)) + -t <type>: AUTHCONF | NOAUTHCONF | NOAUTH | NOCONF (default: AUTHCONF) + -h: print usage and exit + -m <memory debugging mode>: + usage | trace | record | size | mctx + -v <level>: 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 <key>: generate a successor to an existing key + -i <interval>: prepublication interval for successor key (default: 30 days) +Output: + K<name>+<alg>+<id>.key, K<name>+<alg>+<id>.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 --- /dev/null +++ b/test/fixtures/dpkg/bash-completion-test-nonsubject.txt 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 --- /dev/null +++ b/test/fixtures/dpkg/bash-completion-test-subject.deb diff --git a/test/fixtures/evince/.BMP b/test/fixtures/evince/.BMP new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.BMP diff --git a/test/fixtures/evince/.CBR b/test/fixtures/evince/.CBR new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.CBR diff --git a/test/fixtures/evince/.CBZ b/test/fixtures/evince/.CBZ new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.CBZ diff --git a/test/fixtures/evince/.DJV b/test/fixtures/evince/.DJV new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.DJV diff --git a/test/fixtures/evince/.DJVU b/test/fixtures/evince/.DJVU new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.DJVU diff --git a/test/fixtures/evince/.DVI b/test/fixtures/evince/.DVI new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.DVI diff --git a/test/fixtures/evince/.DVI.BZ2 b/test/fixtures/evince/.DVI.BZ2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.DVI.BZ2 diff --git a/test/fixtures/evince/.DVI.GZ b/test/fixtures/evince/.DVI.GZ new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.DVI.GZ diff --git a/test/fixtures/evince/.DVI.bz2 b/test/fixtures/evince/.DVI.bz2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.DVI.bz2 diff --git a/test/fixtures/evince/.DVI.gz b/test/fixtures/evince/.DVI.gz new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.DVI.gz diff --git a/test/fixtures/evince/.EPS b/test/fixtures/evince/.EPS new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.EPS diff --git a/test/fixtures/evince/.EPS.BZ2 b/test/fixtures/evince/.EPS.BZ2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.EPS.BZ2 diff --git a/test/fixtures/evince/.EPS.GZ b/test/fixtures/evince/.EPS.GZ new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.EPS.GZ diff --git a/test/fixtures/evince/.EPS.bz2 b/test/fixtures/evince/.EPS.bz2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.EPS.bz2 diff --git a/test/fixtures/evince/.EPS.gz b/test/fixtures/evince/.EPS.gz new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.EPS.gz diff --git a/test/fixtures/evince/.GIF b/test/fixtures/evince/.GIF new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.GIF diff --git a/test/fixtures/evince/.ICO b/test/fixtures/evince/.ICO new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.ICO diff --git a/test/fixtures/evince/.JPEG b/test/fixtures/evince/.JPEG new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.JPEG diff --git a/test/fixtures/evince/.JPG b/test/fixtures/evince/.JPG new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.JPG diff --git a/test/fixtures/evince/.MIFF b/test/fixtures/evince/.MIFF new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.MIFF diff --git a/test/fixtures/evince/.PBM b/test/fixtures/evince/.PBM new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.PBM diff --git a/test/fixtures/evince/.PCX b/test/fixtures/evince/.PCX new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.PCX diff --git a/test/fixtures/evince/.PDF b/test/fixtures/evince/.PDF new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.PDF diff --git a/test/fixtures/evince/.PDF.BZ2 b/test/fixtures/evince/.PDF.BZ2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.PDF.BZ2 diff --git a/test/fixtures/evince/.PDF.GZ b/test/fixtures/evince/.PDF.GZ new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.PDF.GZ diff --git a/test/fixtures/evince/.PDF.bz2 b/test/fixtures/evince/.PDF.bz2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.PDF.bz2 diff --git a/test/fixtures/evince/.PDF.gz b/test/fixtures/evince/.PDF.gz new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.PDF.gz diff --git a/test/fixtures/evince/.PGM b/test/fixtures/evince/.PGM new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.PGM diff --git a/test/fixtures/evince/.PNG b/test/fixtures/evince/.PNG new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.PNG diff --git a/test/fixtures/evince/.PNM b/test/fixtures/evince/.PNM new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.PNM diff --git a/test/fixtures/evince/.PPM b/test/fixtures/evince/.PPM new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.PPM diff --git a/test/fixtures/evince/.PS b/test/fixtures/evince/.PS new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.PS diff --git a/test/fixtures/evince/.PS.BZ2 b/test/fixtures/evince/.PS.BZ2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.PS.BZ2 diff --git a/test/fixtures/evince/.PS.GZ b/test/fixtures/evince/.PS.GZ new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.PS.GZ diff --git a/test/fixtures/evince/.PS.bz2 b/test/fixtures/evince/.PS.bz2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.PS.bz2 diff --git a/test/fixtures/evince/.PS.gz b/test/fixtures/evince/.PS.gz new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.PS.gz diff --git a/test/fixtures/evince/.TGA b/test/fixtures/evince/.TGA new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.TGA diff --git a/test/fixtures/evince/.TIF b/test/fixtures/evince/.TIF new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.TIF diff --git a/test/fixtures/evince/.TIFF b/test/fixtures/evince/.TIFF new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.TIFF diff --git a/test/fixtures/evince/.XPM b/test/fixtures/evince/.XPM new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.XPM diff --git a/test/fixtures/evince/.XWD b/test/fixtures/evince/.XWD new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.XWD diff --git a/test/fixtures/evince/.bmp b/test/fixtures/evince/.bmp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.bmp diff --git a/test/fixtures/evince/.cbr b/test/fixtures/evince/.cbr new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.cbr diff --git a/test/fixtures/evince/.cbz b/test/fixtures/evince/.cbz new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.cbz diff --git a/test/fixtures/evince/.djv b/test/fixtures/evince/.djv new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.djv diff --git a/test/fixtures/evince/.djvu b/test/fixtures/evince/.djvu new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.djvu diff --git a/test/fixtures/evince/.dvi b/test/fixtures/evince/.dvi new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.dvi diff --git a/test/fixtures/evince/.dvi.BZ2 b/test/fixtures/evince/.dvi.BZ2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.dvi.BZ2 diff --git a/test/fixtures/evince/.dvi.GZ b/test/fixtures/evince/.dvi.GZ new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.dvi.GZ diff --git a/test/fixtures/evince/.dvi.bz2 b/test/fixtures/evince/.dvi.bz2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.dvi.bz2 diff --git a/test/fixtures/evince/.dvi.gz b/test/fixtures/evince/.dvi.gz new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.dvi.gz diff --git a/test/fixtures/evince/.eps b/test/fixtures/evince/.eps new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.eps diff --git a/test/fixtures/evince/.eps.BZ2 b/test/fixtures/evince/.eps.BZ2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.eps.BZ2 diff --git a/test/fixtures/evince/.eps.GZ b/test/fixtures/evince/.eps.GZ new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.eps.GZ diff --git a/test/fixtures/evince/.eps.bz2 b/test/fixtures/evince/.eps.bz2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.eps.bz2 diff --git a/test/fixtures/evince/.eps.gz b/test/fixtures/evince/.eps.gz new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.eps.gz diff --git a/test/fixtures/evince/.gif b/test/fixtures/evince/.gif new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.gif diff --git a/test/fixtures/evince/.ico b/test/fixtures/evince/.ico new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.ico diff --git a/test/fixtures/evince/.jpeg b/test/fixtures/evince/.jpeg new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.jpeg diff --git a/test/fixtures/evince/.jpg b/test/fixtures/evince/.jpg new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.jpg diff --git a/test/fixtures/evince/.miff b/test/fixtures/evince/.miff new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.miff diff --git a/test/fixtures/evince/.pbm b/test/fixtures/evince/.pbm new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.pbm diff --git a/test/fixtures/evince/.pcx b/test/fixtures/evince/.pcx new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.pcx diff --git a/test/fixtures/evince/.pdf b/test/fixtures/evince/.pdf new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.pdf diff --git a/test/fixtures/evince/.pdf.BZ2 b/test/fixtures/evince/.pdf.BZ2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.pdf.BZ2 diff --git a/test/fixtures/evince/.pdf.GZ b/test/fixtures/evince/.pdf.GZ new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.pdf.GZ diff --git a/test/fixtures/evince/.pdf.bz2 b/test/fixtures/evince/.pdf.bz2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.pdf.bz2 diff --git a/test/fixtures/evince/.pdf.gz b/test/fixtures/evince/.pdf.gz new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.pdf.gz diff --git a/test/fixtures/evince/.pgm b/test/fixtures/evince/.pgm new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.pgm diff --git a/test/fixtures/evince/.png b/test/fixtures/evince/.png new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.png diff --git a/test/fixtures/evince/.pnm b/test/fixtures/evince/.pnm new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.pnm diff --git a/test/fixtures/evince/.ppm b/test/fixtures/evince/.ppm new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.ppm diff --git a/test/fixtures/evince/.ps b/test/fixtures/evince/.ps new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.ps diff --git a/test/fixtures/evince/.ps.BZ2 b/test/fixtures/evince/.ps.BZ2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.ps.BZ2 diff --git a/test/fixtures/evince/.ps.GZ b/test/fixtures/evince/.ps.GZ new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.ps.GZ diff --git a/test/fixtures/evince/.ps.bz2 b/test/fixtures/evince/.ps.bz2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.ps.bz2 diff --git a/test/fixtures/evince/.ps.gz b/test/fixtures/evince/.ps.gz new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.ps.gz diff --git a/test/fixtures/evince/.tga b/test/fixtures/evince/.tga new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.tga diff --git a/test/fixtures/evince/.tif b/test/fixtures/evince/.tif new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.tif diff --git a/test/fixtures/evince/.tiff b/test/fixtures/evince/.tiff new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.tiff diff --git a/test/fixtures/evince/.txt b/test/fixtures/evince/.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.txt diff --git a/test/fixtures/evince/.xpm b/test/fixtures/evince/.xpm new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.xpm diff --git a/test/fixtures/evince/.xwd b/test/fixtures/evince/.xwd new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/.xwd diff --git a/test/fixtures/evince/foo/.gitignore b/test/fixtures/evince/foo/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/evince/foo/.gitignore diff --git a/test/fixtures/gdb/core b/test/fixtures/gdb/core new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/gdb/core diff --git a/test/fixtures/gdb/core-NOT b/test/fixtures/gdb/core-NOT new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/gdb/core-NOT diff --git a/test/fixtures/gdb/core.12345 b/test/fixtures/gdb/core.12345 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/gdb/core.12345 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 --- /dev/null +++ b/test/fixtures/gdb/core.weston.1000.deadbeef.5308.1555362132000000 diff --git a/test/fixtures/gdb/corenot b/test/fixtures/gdb/corenot new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/gdb/corenot 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 --- /dev/null +++ b/test/fixtures/info/bash-completion.info 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 --- /dev/null +++ b/test/fixtures/java/a/b$c.class diff --git a/test/fixtures/java/a/b.class b/test/fixtures/java/a/b.class new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/java/a/b.class 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 --- /dev/null +++ b/test/fixtures/java/a/c/d.class diff --git a/test/fixtures/java/a/d.txt b/test/fixtures/java/a/d.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/java/a/d.txt diff --git a/test/fixtures/java/bashcomp.jar b/test/fixtures/java/bashcomp.jar Binary files differnew file mode 100644 index 0000000..d9c2779 --- /dev/null +++ b/test/fixtures/java/bashcomp.jar diff --git a/test/fixtures/java/bashcomp.war b/test/fixtures/java/bashcomp.war new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/java/bashcomp.war 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 --- /dev/null +++ b/test/fixtures/kdvi/.DVI diff --git a/test/fixtures/kdvi/.DVI.Z b/test/fixtures/kdvi/.DVI.Z new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/kdvi/.DVI.Z diff --git a/test/fixtures/kdvi/.DVI.bz2 b/test/fixtures/kdvi/.DVI.bz2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/kdvi/.DVI.bz2 diff --git a/test/fixtures/kdvi/.DVI.gz b/test/fixtures/kdvi/.DVI.gz new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/kdvi/.DVI.gz diff --git a/test/fixtures/kdvi/.dvi b/test/fixtures/kdvi/.dvi new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/kdvi/.dvi diff --git a/test/fixtures/kdvi/.dvi.Z b/test/fixtures/kdvi/.dvi.Z new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/kdvi/.dvi.Z diff --git a/test/fixtures/kdvi/.dvi.bz2 b/test/fixtures/kdvi/.dvi.bz2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/kdvi/.dvi.bz2 diff --git a/test/fixtures/kdvi/.dvi.gz b/test/fixtures/kdvi/.dvi.gz new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/kdvi/.dvi.gz diff --git a/test/fixtures/kdvi/.txt b/test/fixtures/kdvi/.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/kdvi/.txt diff --git a/test/fixtures/kdvi/foo/.gitignore b/test/fixtures/kdvi/foo/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/kdvi/foo/.gitignore diff --git a/test/fixtures/kpdf/.EPS b/test/fixtures/kpdf/.EPS new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/kpdf/.EPS diff --git a/test/fixtures/kpdf/.PDF b/test/fixtures/kpdf/.PDF new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/kpdf/.PDF diff --git a/test/fixtures/kpdf/.PS b/test/fixtures/kpdf/.PS new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/kpdf/.PS diff --git a/test/fixtures/kpdf/.eps b/test/fixtures/kpdf/.eps new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/kpdf/.eps diff --git a/test/fixtures/kpdf/.pdf b/test/fixtures/kpdf/.pdf new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/kpdf/.pdf diff --git a/test/fixtures/kpdf/.ps b/test/fixtures/kpdf/.ps new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/kpdf/.ps diff --git a/test/fixtures/kpdf/.txt b/test/fixtures/kpdf/.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/kpdf/.txt diff --git a/test/fixtures/kpdf/foo/.gitignore b/test/fixtures/kpdf/foo/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/kpdf/foo/.gitignore 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 <stdio.h> +#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 --- /dev/null +++ b/test/fixtures/make/sample.h diff --git a/test/fixtures/man/man/quux.8 b/test/fixtures/man/man/quux.8 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/man/man/quux.8 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 --- /dev/null +++ b/test/fixtures/man/man1/bash-completion-testcase.1.bz2 diff --git a/test/fixtures/man/man1/foo.1 b/test/fixtures/man/man1/foo.1 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/man/man1/foo.1 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 --- /dev/null +++ b/test/fixtures/mutt/bar/.gitignore 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 --- /dev/null +++ b/test/fixtures/mutt/foo/.gitignore diff --git a/test/fixtures/mutt/foo/muttrc_f b/test/fixtures/mutt/foo/muttrc_f new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/mutt/foo/muttrc_f 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 <inputfilename>: Input from list of hosts/networks + -iR <num hosts>: Choose random targets + --exclude <host1[,host2][,host3],...>: Exclude hosts/networks + --excludefile <exclude_file>: 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 <serv1[,serv2],...>: 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 <flags>: Customize TCP scan flags + -sI <zombie host[:probeport]>: Idle scan + -sY/sZ: SCTP INIT/COOKIE-ECHO scans + -sO: IP protocol scan + -b <FTP relay host>: FTP bounce scan +PORT SPECIFICATION AND SCAN ORDER: + -p <port ranges>: Only scan specified ports + Ex: -p22; -p1-65535; -p U:53,111,137,T:21-25,80,139,8080,S:9 + --exclude-ports <port ranges>: 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 <number>: Scan <number> most common ports + --port-ratio <ratio>: Scan ports more common than <ratio> +SERVICE/VERSION DETECTION: + -sV: Probe open ports to determine service/version info + --version-intensity <level>: 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=<Lua scripts>: <Lua scripts> is a comma separated list of + directories, script-files or script-categories + --script-args=<n1=v1,[n2=v2,...]>: 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=<Lua scripts>: Show help about scripts. + <Lua 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 <time> are in seconds, or append 'ms' (milliseconds), + 's' (seconds), 'm' (minutes), or 'h' (hours) to the value (e.g. 30m). + -T<0-5>: Set timing template (higher is faster) + --min-hostgroup/max-hostgroup <size>: Parallel host scan group sizes + --min-parallelism/max-parallelism <numprobes>: Probe parallelization + --min-rtt-timeout/max-rtt-timeout/initial-rtt-timeout <time>: Specifies + probe round trip time. + --max-retries <tries>: Caps number of port scan probe retransmissions. + --host-timeout <time>: Give up on target after this long + --scan-delay/--max-scan-delay <time>: Adjust delay between probes + --min-rate <number>: Send packets no slower than <number> per second + --max-rate <number>: Send packets no faster than <number> per second +FIREWALL/IDS EVASION AND SPOOFING: + -f; --mtu <val>: fragment packets (optionally w/given MTU) + -D <decoy1,decoy2[,ME],...>: Cloak a scan with decoys + -S <IP_Address>: Spoof source address + -e <iface>: Use specified interface + -g/--source-port <portnum>: Use given port number + --proxies <url1,[url2],...>: Relay connections through HTTP/SOCKS4 proxies + --data <hex string>: Append a custom payload to sent packets + --data-string <string>: Append a custom ASCII string to sent packets + --data-length <num>: Append random data to sent packets + --ip-options <options>: Send packets with specified ip options + --ttl <val>: Set IP time-to-live field + --spoof-mac <mac address/prefix/vendor name>: Spoof your MAC address + --badsum: Send packets with a bogus TCP/UDP/SCTP checksum +OUTPUT: + -oN/-oX/-oS/-oG <file>: Output scan in normal, XML, s|<rIpt kIddi3, + and Grepable format, respectively, to the given filename. + -oA <basename>: Output in the three major formats at once + -v: Increase verbosity level (use -vv or more for greater effect) + -d: Increase debugging level (use -dd or more for greater effect) + --reason: Display the reason a port is in a particular state + --open: Only show open (or possibly open) ports + --packet-trace: Show all packets sent and received + --iflist: Print host interfaces and routes (for debugging) + --append-output: Append to rather than clobber specified output files + --resume <filename>: Resume an aborted scan + --stylesheet <path/URL>: XSL stylesheet to transform XML output to HTML + --webxml: Reference stylesheet from Nmap.Org for more portable XML + --no-stylesheet: Prevent associating of XSL stylesheet w/XML output +MISC: + -6: Enable IPv6 scanning + -A: Enable OS detection, version detection, script scanning, and traceroute + --datadir <dirname>: Specify custom Nmap data file location + --send-eth/--send-ip: Send using raw ethernet frames or IP packets + --privileged: Assume that the user is fully privileged + --unprivileged: Assume the user lacks raw socket privileges + -V: Print version number + -h: Print this help summary page. +EXAMPLES: + nmap -v -A scanme.nmap.org + nmap -v -sn 192.168.0.0/16 10.0.0.0/8 + nmap -v -iR 10000 -Pn -p 80 +SEE THE MAN PAGE (https://nmap.org/book/man.html) FOR MORE OPTIONS AND EXAMPLES diff --git a/test/fixtures/perl/Devel/BashCompletion.pm b/test/fixtures/perl/Devel/BashCompletion.pm new file mode 100644 index 0000000..f8e829d --- /dev/null +++ b/test/fixtures/perl/Devel/BashCompletion.pm @@ -0,0 +1,3 @@ +use strict; +use warnings; +1; diff --git a/test/fixtures/perldoc/BashCompletionDoc.pod b/test/fixtures/perldoc/BashCompletionDoc.pod new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/perldoc/BashCompletionDoc.pod diff --git a/test/fixtures/perldoc/BashCompletionModule.pm b/test/fixtures/perldoc/BashCompletionModule.pm new file mode 100644 index 0000000..b9208f3 --- /dev/null +++ b/test/fixtures/perldoc/BashCompletionModule.pm @@ -0,0 +1,4 @@ +package BashCompletionModule; +use strict; +use warnings; +1; diff --git a/test/fixtures/pkgtools/db/a-1.0,1/.gitignore b/test/fixtures/pkgtools/db/a-1.0,1/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/pkgtools/db/a-1.0,1/.gitignore diff --git a/test/fixtures/pkgtools/db/b-c-d-2.0_2/.gitignore b/test/fixtures/pkgtools/db/b-c-d-2.0_2/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/pkgtools/db/b-c-d-2.0_2/.gitignore diff --git a/test/fixtures/pkgtools/ports/.gitignore b/test/fixtures/pkgtools/ports/.gitignore new file mode 100644 index 0000000..71d2c0c --- /dev/null +++ b/test/fixtures/pkgtools/ports/.gitignore @@ -0,0 +1,2 @@ +INDEX +INDEX-5 diff --git a/test/fixtures/pkgtools/ports/INDEX.dist b/test/fixtures/pkgtools/ports/INDEX.dist new file mode 100644 index 0000000..76957d4 --- /dev/null +++ b/test/fixtures/pkgtools/ports/INDEX.dist @@ -0,0 +1,3 @@ +bash-3.1.17|PORTSDIR/shells/bash|/usr/local|The GNU Project's Bourne Again SHell|PORTSDIR/shells/bash/pkg-descr|obrien@FreeBSD.org|shells|expat-2.0.0_1 gettext-0.14.5_2 ldconfig_compat-1.0_8 libiconv-1.9.2_2 rc_subr-1.31_1|expat-2.0.0_1 gettext-0.14.5_2 ldconfig_compat-1.0_8 libiconv-1.9.2_2 rc_subr-1.31_1|http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html||| +bash-completion-20060301_2|PORTSDIR/shells/bash-completion|/usr/local|Programmable completion library for Bash 2.04 and up|PORTSDIR/shells/bash-completion/pkg-descr|kirk@strauser.com|shells||bash-3.1.17 expat-2.0.0_1 gettext-0.14.5_2 ldconfig_compat-1.0_8 libiconv-1.9.2_2 rc_subr-1.31_1|http://www.caliban.org/bash/index.shtml||| +bash-2.05b.007_6|PORTSDIR/shells/bash2|/usr/local|The GNU Bourne Again Shell|PORTSDIR/shells/bash2/pkg-descr|ports@FreeBSD.org|shells|||http://www.gnu.org/software/bash/||| diff --git a/test/fixtures/pytest/test_async.py b/test/fixtures/pytest/test_async.py new file mode 100644 index 0000000..48f91e0 --- /dev/null +++ b/test/fixtures/pytest/test_async.py @@ -0,0 +1,17 @@ +"""Async function pytest completion fixture.""" + + +async def test_positive(): + pass + + +async def non_test_negative(): + pass + + +class Testing: + async def test_positive(self): + pass + + async def non_test_negative(self): + pass diff --git a/test/fixtures/ri/BashCompletion/cdesc-BashCompletion.ri b/test/fixtures/ri/BashCompletion/cdesc-BashCompletion.ri Binary files differnew file mode 100644 index 0000000..7263da8 --- /dev/null +++ b/test/fixtures/ri/BashCompletion/cdesc-BashCompletion.ri diff --git a/test/fixtures/ri/BashCompletion/cdesc-BashCompletion.yaml b/test/fixtures/ri/BashCompletion/cdesc-BashCompletion.yaml new file mode 100644 index 0000000..bc064a8 --- /dev/null +++ b/test/fixtures/ri/BashCompletion/cdesc-BashCompletion.yaml @@ -0,0 +1,15 @@ +--- !ruby/object:RI::ClassDescription +attributes: [] + +class_methods: [] + +comment: +constants: [] + +full_name: BashCompletion +includes: [] + +instance_methods: [] + +name: BashCompletion +superclass: diff --git a/test/fixtures/ri/bashcompletion.rb b/test/fixtures/ri/bashcompletion.rb new file mode 100644 index 0000000..0e075d2 --- /dev/null +++ b/test/fixtures/ri/bashcompletion.rb @@ -0,0 +1,2 @@ +module BashCompletion +end diff --git a/test/fixtures/ri/cache.ri b/test/fixtures/ri/cache.ri Binary files differnew file mode 100644 index 0000000..4a8fc66 --- /dev/null +++ b/test/fixtures/ri/cache.ri diff --git a/test/fixtures/ri/created.rid b/test/fixtures/ri/created.rid new file mode 100644 index 0000000..1392d20 --- /dev/null +++ b/test/fixtures/ri/created.rid @@ -0,0 +1 @@ +Mon, 09 Oct 2017 21:45:15 +0000 diff --git a/test/fixtures/scp/config b/test/fixtures/scp/config new file mode 100644 index 0000000..9f94b9e --- /dev/null +++ b/test/fixtures/scp/config @@ -0,0 +1,8 @@ +UserKnownHostsFile known_hosts + + # Unindented +Host gee + # Indented, multiple hosts + HostName hus ike + +Host hut diff --git a/test/fixtures/scp/known_hosts b/test/fixtures/scp/known_hosts new file mode 100644 index 0000000..2dfa4b6 --- /dev/null +++ b/test/fixtures/scp/known_hosts @@ -0,0 +1,5 @@ +|1|abc +|1|def +doo +ike ssh-rsa qwerty1234/Qwerty+1234== +[blah]:1234 diff --git a/test/fixtures/scp/spaced conf b/test/fixtures/scp/spaced conf new file mode 100644 index 0000000..7ad64bc --- /dev/null +++ b/test/fixtures/scp/spaced conf @@ -0,0 +1,6 @@ + UserKnownHostsFile known_hosts + + # Unindented +Host gee jar + # Indented, multiple hosts + HostName hus diff --git a/test/fixtures/sftp/config b/test/fixtures/sftp/config new file mode 100644 index 0000000..9f94b9e --- /dev/null +++ b/test/fixtures/sftp/config @@ -0,0 +1,8 @@ +UserKnownHostsFile known_hosts + + # Unindented +Host gee + # Indented, multiple hosts + HostName hus ike + +Host hut diff --git a/test/fixtures/sftp/known_hosts b/test/fixtures/sftp/known_hosts new file mode 100644 index 0000000..6538eb4 --- /dev/null +++ b/test/fixtures/sftp/known_hosts @@ -0,0 +1,5 @@ +|1|abc +|1|def +doo +ike ssh-rsa qwerty1234/Qwerty+1234== +[10.10.10.10]:2222 diff --git a/test/fixtures/sftp/spaced conf b/test/fixtures/sftp/spaced conf new file mode 100644 index 0000000..7ad64bc --- /dev/null +++ b/test/fixtures/sftp/spaced conf @@ -0,0 +1,6 @@ + UserKnownHostsFile known_hosts + + # Unindented +Host gee jar + # Indented, multiple hosts + HostName hus diff --git a/test/fixtures/shared/.ssh/known_hosts b/test/fixtures/shared/.ssh/known_hosts new file mode 100644 index 0000000..03d444a --- /dev/null +++ b/test/fixtures/shared/.ssh/known_hosts @@ -0,0 +1 @@ +bash-completion-canary-host.local diff --git a/test/fixtures/shared/bin/arp b/test/fixtures/shared/bin/arp new file mode 100755 index 0000000..49f4296 --- /dev/null +++ b/test/fixtures/shared/bin/arp @@ -0,0 +1,16 @@ +#!/bin/sh + +# Dummy "arp -an" emulator + +# Linux +echo "? (0.0.0.0) at 00:00:00:00:00:00 [ether] on eth0" + +# FreeBSD +echo "? (0.0.0.0) at 11:11:11:11:11:11 on bge0 expires in 5 seconds [ethernet]" + +# Solaris +cat <<EOF +Device IP Address Mask Flags Phys Addr +------ -------------------- --------------- -------- --------------- +ce0 0.0.0.0 255.255.255.255 o 22:22:22:22:22:22 +EOF diff --git a/test/fixtures/shared/bin/ifconfig b/test/fixtures/shared/bin/ifconfig new file mode 100755 index 0000000..59c9140 --- /dev/null +++ b/test/fixtures/shared/bin/ifconfig @@ -0,0 +1,24 @@ +#!/bin/sh + +# Dummy "ifconfig -a" emulator + +cat <<EOF +eth0 Link encap:Ethernet HWaddr 33:33:33:33:33:33 + inet addr:192.168.80.11 Bcast:192.168.80.255 Mask:255.255.255.0 + inet6 addr: fe80::000:0000:0000:0000/64 Scope:Link + UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 + RX packets:855946 errors:42 dropped:0 overruns:0 frame:42 + TX packets:477196 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:1000 + RX bytes:1142133425 (1.0 GiB) TX bytes:47621718 (45.4 MiB) + Interrupt:23 Base address:0xc000 + +lo Link encap:Local Loopback + inet addr:127.0.0.1 Mask:255.0.0.0 + inet6 addr: ::1/128 Scope:Host + UP LOOPBACK RUNNING MTU:16436 Metric:1 + RX packets:129059 errors:0 dropped:0 overruns:0 frame:0 + TX packets:129059 errors:0 dropped:0 overruns:0 carrier:0 + collisions:0 txqueuelen:0 + RX bytes:7456154 (7.1 MiB) TX bytes:7456154 (7.1 MiB) +EOF diff --git a/test/fixtures/shared/default/bar b/test/fixtures/shared/default/bar new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/shared/default/bar diff --git a/test/fixtures/shared/default/bar bar.d/foo b/test/fixtures/shared/default/bar bar.d/foo new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/shared/default/bar bar.d/foo diff --git a/test/fixtures/shared/default/foo b/test/fixtures/shared/default/foo new file mode 100644 index 0000000..257cc56 --- /dev/null +++ b/test/fixtures/shared/default/foo @@ -0,0 +1 @@ +foo diff --git a/test/fixtures/shared/default/foo.d/foo b/test/fixtures/shared/default/foo.d/foo new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/shared/default/foo.d/foo diff --git a/test/fixtures/shared/empty_dir/.nothing_here b/test/fixtures/shared/empty_dir/.nothing_here new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/shared/empty_dir/.nothing_here diff --git a/test/fixtures/shared/ld.so.conf.d/foo.txt b/test/fixtures/shared/ld.so.conf.d/foo.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/shared/ld.so.conf.d/foo.txt diff --git a/test/fixtures/shared/ld.so.conf.d/libfoo.conf b/test/fixtures/shared/ld.so.conf.d/libfoo.conf new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/shared/ld.so.conf.d/libfoo.conf diff --git a/test/fixtures/shared/ld.so.conf.d/libfoo.so b/test/fixtures/shared/ld.so.conf.d/libfoo.so new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/shared/ld.so.conf.d/libfoo.so diff --git a/test/fixtures/shared/ld.so.conf.d/libfoo.so.1 b/test/fixtures/shared/ld.so.conf.d/libfoo.so.1 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/shared/ld.so.conf.d/libfoo.so.1 diff --git a/test/fixtures/slackware/home/abc-4-i686-1.txz b/test/fixtures/slackware/home/abc-4-i686-1.txz new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/test/fixtures/slackware/home/abc-4-i686-1.txz @@ -0,0 +1 @@ + diff --git a/test/fixtures/slackware/home/opq-1.0-2.i386.rpm b/test/fixtures/slackware/home/opq-1.0-2.i386.rpm new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/test/fixtures/slackware/home/opq-1.0-2.i386.rpm @@ -0,0 +1 @@ + diff --git a/test/fixtures/slackware/home/tcl.d/tcl.tgz b/test/fixtures/slackware/home/tcl.d/tcl.tgz new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/test/fixtures/slackware/home/tcl.d/tcl.tgz @@ -0,0 +1 @@ + diff --git a/test/fixtures/slackware/usr/src/slapt-src/slackbuilds_data b/test/fixtures/slackware/usr/src/slapt-src/slackbuilds_data new file mode 100644 index 0000000..0f4ee44 --- /dev/null +++ b/test/fixtures/slackware/usr/src/slapt-src/slackbuilds_data @@ -0,0 +1,20 @@ +SLACKBUILD NAME: abc +SLACKBUILD SOURCEURL: http://www.slackware.org.uk/slackbuilds.org/13.37/ +SLACKBUILD LOCATION: libraries/abc/ +SLACKBUILD FILES: abc.SlackBuild slack-desc +SLACKBUILD VERSION: 4 +SLACKBUILD DOWNLOAD: http://www.ufl.edu/abc-4.tar.gz +SLACKBUILD MD5SUM: b3e9679ba20635ac4847f01c01d6e992 +SLACKBUILD REQUIRES: +SLACKBUILD SHORT DESCRIPTION: abc is a small utility + +SLACKBUILD NAME: qwe +SLACKBUILD SOURCEURL: http://www.slackware.org.uk/slackbuilds.org/13.37/ +SLACKBUILD LOCATION: network/qwe/ +SLACKBUILD FILES: qwe.SlackBuild +SLACKBUILD VERSION: 2.1 +SLACKBUILD DOWNLOAD: http://php.net/qwe-2.1.tgz +SLACKBUILD MD5SUM: 1f7a58f850e795b0958a3f99ae8c2cc4 +SLACKBUILD REQUIRES: +SLACKBUILD SHORT DESCRIPTION: qwe is a program + diff --git a/test/fixtures/slackware/var/log/packages/radeontool-1.6.1-i486-1 b/test/fixtures/slackware/var/log/packages/radeontool-1.6.1-i486-1 new file mode 100644 index 0000000..7f53326 --- /dev/null +++ b/test/fixtures/slackware/var/log/packages/radeontool-1.6.1-i486-1 @@ -0,0 +1,24 @@ +PACKAGE NAME: radeontool-1.6.1-i486-1 +COMPRESSED PACKAGE SIZE: 48K +UNCOMPRESSED PACKAGE SIZE: 150K +PACKAGE LOCATION: ./radeontool-1.6.1-i486-1.txz +PACKAGE DESCRIPTION: +radeontool: radeontool (small utility for ati radeon-based laptops) +radeontool: +radeontool: Radeontool is a small utility to control ATI Radeon-based +radeontool: laptops' backlight and external output functions +radeontool: +radeontool: Homepage: http://fdd.com/software/radeon/ +radeontool: +radeontool: +radeontool: +radeontool: +radeontool: +FILE LIST: +./ +usr/ +usr/bin/ +usr/bin/radeontool +usr/bin/avivotool +install/ +install/slack-desc diff --git a/test/fixtures/slackware/var/log/packages/rzip-2.1-i486-1 b/test/fixtures/slackware/var/log/packages/rzip-2.1-i486-1 new file mode 100644 index 0000000..0fa71f4 --- /dev/null +++ b/test/fixtures/slackware/var/log/packages/rzip-2.1-i486-1 @@ -0,0 +1,29 @@ +PACKAGE NAME: rzip-2.1-i486-1 +COMPRESSED PACKAGE SIZE: 20K +UNCOMPRESSED PACKAGE SIZE: 50K +PACKAGE LOCATION: ./rzip-2.1-i486-1.txz +PACKAGE DESCRIPTION: +rzip: rzip (a large-file compression program) +rzip: +rzip: rzip is a file compression program designed to do particularly well +rzip: on very large files containing long distance redundancy. +rzip: +rzip: rzip was written by Andrew Tridgell. +rzip: +rzip: +rzip: +rzip: +rzip: +FILE LIST: +./ +bin/ +bin/rzip +usr/ +usr/doc/ +usr/doc/rzip-2.1/ +usr/doc/rzip-2.1/COPYING +usr/man/ +usr/man/man1/ +usr/man/man1/rzip.1.gz +install/ +install/slack-desc diff --git a/test/fixtures/slackware/var/slapt-get/package_data b/test/fixtures/slackware/var/slapt-get/package_data new file mode 100644 index 0000000..410fc3d --- /dev/null +++ b/test/fixtures/slackware/var/slapt-get/package_data @@ -0,0 +1,47 @@ +PACKAGE NAME: abc-4-i686-1.txz +PACKAGE MIRROR: http://slackware.com/ +PACKAGE PRIORITY: 2 +PACKAGE LOCATION: ./slackware/ap +PACKAGE SIZE (compressed): 48 K +PACKAGE SIZE (uncompressed): 150 K +PACKAGE REQUIRED: +PACKAGE CONFLICTS: +PACKAGE SUGGESTS: +PACKAGE MD5SUM: 53e873df10b9e343a5c58721f10b9131 +PACKAGE DESCRIPTION: +abc: abc (small utility) +abc: +abc: abc is a small utility +abc: + +PACKAGE NAME: ran-1.2-noarch-1.txz +PACKAGE MIRROR: http://slackware.com/ +PACKAGE PRIORITY: 2 +PACKAGE LOCATION: ./slackware/x +PACKAGE SIZE (compressed): 36 K +PACKAGE SIZE (uncompressed): 160 K +PACKAGE REQUIRED: +PACKAGE CONFLICTS: +PACKAGE SUGGESTS: +PACKAGE MD5SUM: cefa3f087e10f8371d68bea94a829ef8 +PACKAGE DESCRIPTION: +ran: ran +ran: +ran: ran is part of X11. +ran: + +PACKAGE NAME: qwe-2.1-i486-1.txz +PACKAGE MIRROR: http://slackware.com/ +PACKAGE PRIORITY: 1 +PACKAGE LOCATION: ./slackware/ap +PACKAGE SIZE (compressed): 20 K +PACKAGE SIZE (uncompressed): 50 K +PACKAGE REQUIRED: +PACKAGE CONFLICTS: +PACKAGE SUGGESTS: +PACKAGE MD5SUM: 1a8fe22cb924cde3dc95c89689b20ee3 +PACKAGE DESCRIPTION: +qwe: qwe +qwe: +qwe: qwe is a program +qwe: diff --git a/test/fixtures/ssh-copy-id/.ssh/id_rsa b/test/fixtures/ssh-copy-id/.ssh/id_rsa new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/ssh-copy-id/.ssh/id_rsa diff --git a/test/fixtures/ssh-copy-id/.ssh/id_rsa.pub b/test/fixtures/ssh-copy-id/.ssh/id_rsa.pub new file mode 100644 index 0000000..4c656eb --- /dev/null +++ b/test/fixtures/ssh-copy-id/.ssh/id_rsa.pub @@ -0,0 +1 @@ +ssh-rsa meh comment diff --git a/test/fixtures/ssh/config b/test/fixtures/ssh/config new file mode 100644 index 0000000..806f405 --- /dev/null +++ b/test/fixtures/ssh/config @@ -0,0 +1 @@ +UserKnownHostsFile known_hosts diff --git a/test/fixtures/ssh/known_hosts b/test/fixtures/ssh/known_hosts new file mode 100644 index 0000000..13b2f0f --- /dev/null +++ b/test/fixtures/ssh/known_hosts @@ -0,0 +1,5 @@ +|1|abc +|1|def +doo +ike ssh-rsa qwerty1234/Qwerty+1234== +ls_known_host diff --git a/test/fixtures/ssh/spaced conf b/test/fixtures/ssh/spaced conf new file mode 100644 index 0000000..7ad64bc --- /dev/null +++ b/test/fixtures/ssh/spaced conf @@ -0,0 +1,6 @@ + UserKnownHostsFile known_hosts + + # Unindented +Host gee jar + # Indented, multiple hosts + HostName hus diff --git a/test/fixtures/tar/archive.tar.xz b/test/fixtures/tar/archive.tar.xz Binary files differnew file mode 100644 index 0000000..c8d2725 --- /dev/null +++ b/test/fixtures/tar/archive.tar.xz diff --git a/test/fixtures/tar/dir/fileA b/test/fixtures/tar/dir/fileA new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/tar/dir/fileA diff --git a/test/fixtures/tar/dir/fileB b/test/fixtures/tar/dir/fileB new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/tar/dir/fileB diff --git a/test/fixtures/tar/dir/fileC b/test/fixtures/tar/dir/fileC new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/tar/dir/fileC diff --git a/test/fixtures/tar/dir/hello b/test/fixtures/tar/dir/hello new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/tar/dir/hello diff --git a/test/fixtures/tar/dir2/.nothing_here b/test/fixtures/tar/dir2/.nothing_here new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/tar/dir2/.nothing_here diff --git a/test/fixtures/tar/escape.tar b/test/fixtures/tar/escape.tar Binary files differnew file mode 100644 index 0000000..7af7e9f --- /dev/null +++ b/test/fixtures/tar/escape.tar diff --git a/test/fixtures/tox/tox.ini b/test/fixtures/tox/tox.ini new file mode 100644 index 0000000..a64454f --- /dev/null +++ b/test/fixtures/tox/tox.ini @@ -0,0 +1,6 @@ +[tox] +envlist = py37 + +[testenv] +deps = pytest +commands = pytest diff --git a/test/fixtures/xz/a/b b/test/fixtures/xz/a/b new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/xz/a/b diff --git a/test/fixtures/xz/bashcomp.lzma b/test/fixtures/xz/bashcomp.lzma new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/xz/bashcomp.lzma diff --git a/test/fixtures/xz/bashcomp.tar b/test/fixtures/xz/bashcomp.tar new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/xz/bashcomp.tar diff --git a/test/fixtures/xz/bashcomp.tar.xz b/test/fixtures/xz/bashcomp.tar.xz Binary files differnew file mode 100644 index 0000000..b2274e6 --- /dev/null +++ b/test/fixtures/xz/bashcomp.tar.xz diff --git a/test/fixtures/xz/bashcomp.tlz b/test/fixtures/xz/bashcomp.tlz new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/xz/bashcomp.tlz diff --git a/test/fixtures/xz/bashcomp.xz b/test/fixtures/xz/bashcomp.xz new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/fixtures/xz/bashcomp.xz |