aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-16 14:24:31 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-16 14:24:50 +1200
commit2f5c3f189d83b6297a93dee83819092a63a33e88 (patch)
tree20bc97584202d210d0d6ac62c21afd7850c9e697
parentChange Zsh URL to HTTPS version (diff)
downloaddotfiles-2f5c3f189d83b6297a93dee83819092a63a33e88.tar.gz
dotfiles-2f5c3f189d83b6297a93dee83819092a63a33e88.zip
Rename "test" targets to "check"
Mostly to make way for an actual test suite beyond mere syntax checking
-rw-r--r--Makefile54
-rw-r--r--README.markdown7
-rwxr-xr-xcheck/bash (renamed from test/bash)0
-rwxr-xr-xcheck/bin (renamed from test/bin)0
-rwxr-xr-xcheck/games (renamed from test/games)0
-rwxr-xr-xcheck/man (renamed from test/man)0
-rwxr-xr-xcheck/pdksh (renamed from test/pdksh)0
-rwxr-xr-xcheck/sh (renamed from test/sh)0
-rwxr-xr-xcheck/urxvt (renamed from test/urxvt)0
9 files changed, 31 insertions, 30 deletions
diff --git a/Makefile b/Makefile
index 3e08bb0a..3c52034f 100644
--- a/Makefile
+++ b/Makefile
@@ -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/bash b/check/bash
index f203c2c1..f203c2c1 100755
--- a/test/bash
+++ b/check/bash
diff --git a/test/bin b/check/bin
index a4d5e452..a4d5e452 100755
--- a/test/bin
+++ b/check/bin
diff --git a/test/games b/check/games
index 3afe6414..3afe6414 100755
--- a/test/games
+++ b/check/games
diff --git a/test/man b/check/man
index 4b5a7831..4b5a7831 100755
--- a/test/man
+++ b/check/man
diff --git a/test/pdksh b/check/pdksh
index fd1d55b7..fd1d55b7 100755
--- a/test/pdksh
+++ b/check/pdksh
diff --git a/test/sh b/check/sh
index 47e41c77..47e41c77 100755
--- a/test/sh
+++ b/check/sh
diff --git a/test/urxvt b/check/urxvt
index d27d6660..d27d6660 100755
--- a/test/urxvt
+++ b/check/urxvt