diff options
-rw-r--r-- | Makefile | 54 | ||||
-rw-r--r-- | README.markdown | 7 | ||||
-rwxr-xr-x | check/bash (renamed from test/bash) | 0 | ||||
-rwxr-xr-x | check/bin (renamed from test/bin) | 0 | ||||
-rwxr-xr-x | check/games (renamed from test/games) | 0 | ||||
-rwxr-xr-x | check/man (renamed from test/man) | 0 | ||||
-rwxr-xr-x | check/pdksh (renamed from test/pdksh) | 0 | ||||
-rwxr-xr-x | check/sh (renamed from test/sh) | 0 | ||||
-rwxr-xr-x | check/urxvt (renamed from test/urxvt) | 0 |
9 files changed, 31 insertions, 30 deletions
@@ -42,12 +42,12 @@ install-wyrd \ install-x \ install-zsh \ - test \ - test-bash \ - test-bin \ - test-games \ - test-sh \ - test-urxvt \ + check \ + check-bash \ + check-bin \ + check-games \ + check-sh \ + check-urxvt \ lint \ lint-bash \ lint-bin \ @@ -144,7 +144,7 @@ install-abook : "$(HOME)"/.abook install -pm 0644 -- abook/abookrc "$(HOME)"/.abook -install-bash : test-bash +install-bash : check-bash install -m 0755 -d -- \ "$(HOME)"/.config \ "$(HOME)"/.bashrc.d \ @@ -160,7 +160,7 @@ install-bash-completion : install-bash install -pm 0644 -- bash/bash_completion "$(HOME)"/.config/bash_completion install -pm 0644 -- bash/bash_completion.d/* "$(HOME)"/.bash_completion.d -install-bin : bin/sd2u bin/su2d bin/unf test-bin install-bin-man +install-bin : bin/sd2u bin/su2d bin/unf check-bin install-bin-man install -m 0755 -d -- "$(HOME)"/.local/bin for name in bin/* ; do \ [ -x "$$name" ] || continue ; \ @@ -193,7 +193,7 @@ install-finger : install -pm 0644 -- finger/project "$(HOME)"/.project install -pm 0644 -- finger/pgpkey "$(HOME)"/.pgpkey -install-games : games/acq games/kvlt games/zs test-games install-games-man +install-games : games/acq games/kvlt games/zs check-games install-games-man install -m 0755 -d -- "$(HOME)"/.local/games for name in games/* ; do \ [ -x "$$name" ] || continue ; \ @@ -225,7 +225,7 @@ install-i3 : install-x install -m 0755 -d -- "$(HOME)"/.i3 install -pm 0644 -- i3/* "$(HOME)"/.i3 -install-pdksh : test-pdksh install-sh +install-pdksh : check-pdksh install-sh install -m 0755 -d -- \ "$(HOME)"/.pdkshrc.d install -pm 0644 -- pdksh/pdkshrc "$(HOME)"/.pdkshrc @@ -272,7 +272,7 @@ install-psql : install-readline : install -pm 0644 -- readline/inputrc "$(HOME)"/.inputrc -install-sh : test-sh +install-sh : check-sh install -m 0755 -d -- "$(HOME)"/.profile.d install -pm 0644 -- sh/profile "$(HOME)"/.profile install -pm 0644 -- sh/profile.d/* "$(HOME)"/.profile.d @@ -290,7 +290,7 @@ install-terminfo : install-tmux : tmux/tmux.conf install -pm 0644 -- tmux/tmux.conf "$(HOME)"/.tmux.conf -install-urxvt : test-urxvt +install-urxvt : check-urxvt install -m 0755 -d -- "$(HOME)"/.urxvt/ext install -m 0755 -- urxvt/ext/* "$(HOME)"/.urxvt/ext @@ -337,28 +337,28 @@ install-zsh : install -pm 0644 -- zsh/zprofile "$(HOME)"/.zprofile install -pm 0644 -- zsh/zshrc "$(HOME)"/.zshrc -test : test-bash test-bin test-games test-man test-sh test-urxvt +check : check-bash check-bin check-games check-man check-sh check-urxvt -test-bash : - test/bash +check-bash : + check/bash -test-bin : - test/bin +check-bin : + check/bin -test-games : - test/games +check-games : + check/games -test-pdksh : - test/pdksh +check-pdksh : + check/pdksh -test-man : - test/man +check-man : + check/man -test-sh : - test/sh +check-sh : + check/sh -test-urxvt : - test/urxvt +check-urxvt : + check/urxvt lint : lint-bash lint-bin lint-games lint-sh lint-urxvt diff --git a/README.markdown b/README.markdown index f7c75d88..74a3cc44 100644 --- a/README.markdown +++ b/README.markdown @@ -423,9 +423,10 @@ your `/etc/manpath` configuration, depending on your system. Testing ------- -You can test that both sets of shell scripts are syntactically correct with -`make test-bash`, `make test-sh`, or `make test` for everything including the -scripts in `bin` and `games`. +You can check that both sets of shell scripts are syntactically correct with +`make check-bash`, `make check-sh`, or `make check` for everything including +the scripts in `bin` and `games`. There's no proper test suite for the actual +functionality (yet). If you have [ShellCheck](https://www.shellcheck.net/) and/or [Perl::Critic](http://perlcritic.com/), there's a `lint` target for the shell diff --git a/test/games b/check/games index 3afe6414..3afe6414 100755 --- a/test/games +++ b/check/games diff --git a/test/pdksh b/check/pdksh index fd1d55b7..fd1d55b7 100755 --- a/test/pdksh +++ b/check/pdksh diff --git a/test/urxvt b/check/urxvt index d27d6660..d27d6660 100755 --- a/test/urxvt +++ b/check/urxvt |