aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2019-02-22 15:19:33 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2019-02-22 18:08:19 -0600
commit52d4e566743f57b9de81c77fdb605c171c02eacb (patch)
tree62fb2b40c926cc83e3526ad41ee9bb81049a7c8e
parent6e6902c28b715826fdfc7b42a592db88459b9a57 (diff)
combine test directories
This fixes #295.
-rw-r--r--Makefile3
-rw-r--r--mk/scripts.mk1
-rw-r--r--sh/Makefile1
-rw-r--r--src/Makefile2
-rw-r--r--test/Makefile (renamed from src/test/Makefile)0
-rwxr-xr-xtest/runtests.sh (renamed from src/test/runtests.sh)2
-rwxr-xr-xtest/units/is_older_than (renamed from src/test/units/is_older_than)0
-rwxr-xr-xtest/units/sh_yesno (renamed from sh/runtests.sh)3
8 files changed, 5 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 2c8527b5..b02e1c50 100644
--- a/Makefile
+++ b/Makefile
@@ -33,8 +33,9 @@ ifeq (${MKZSHCOMP},yes)
SUBDIR+= zsh-completion
endif
-# We need to ensure that runlevels is done last
+# We need to ensure that runlevels is done last other than test
SUBDIR+= runlevels
+SUBDIR+= test
INSTALLAFTER= _installafter
diff --git a/mk/scripts.mk b/mk/scripts.mk
index 40cb4d65..147e6643 100644
--- a/mk/scripts.mk
+++ b/mk/scripts.mk
@@ -53,7 +53,6 @@ realinstall: ${BIN} ${CONF} ${INC}
install: all realinstall ${INSTALLAFTER}
check test::
- @if test -e runtests.sh ; then ./runtests.sh || exit $$? ; fi
# A lot of scripts don't have anything to clean
# Also, some rm implentation require a file argument regardless of error
diff --git a/sh/Makefile b/sh/Makefile
index ef590e81..7f5dfb21 100644
--- a/sh/Makefile
+++ b/sh/Makefile
@@ -31,4 +31,3 @@ _installafter:
ln -snf ${LIBEXECDIR}/sh/functions.sh ${DESTDIR}/${INITDIR} || exit $$?
check test::
- ./runtests.sh
diff --git a/src/Makefile b/src/Makefile
index e3750347..0148c4d1 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,7 +1,7 @@
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license.
-SUBDIR= test libeinfo librc rc
+SUBDIR= libeinfo librc rc
MK= ../mk
include ${MK}/subdir.mk
diff --git a/src/test/Makefile b/test/Makefile
index b57b8903..b57b8903 100644
--- a/src/test/Makefile
+++ b/test/Makefile
diff --git a/src/test/runtests.sh b/test/runtests.sh
index 269f26f1..5e21d2ab 100755
--- a/src/test/runtests.sh
+++ b/test/runtests.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-top_srcdir=${top_srcdir:-../..}
+top_srcdir=${top_srcdir:-..}
. ${top_srcdir}/test/setup_env.sh
libeinfo_srcdir="${srcdir}/../libeinfo"
diff --git a/src/test/units/is_older_than b/test/units/is_older_than
index 47a62d78..47a62d78 100755
--- a/src/test/units/is_older_than
+++ b/test/units/is_older_than
diff --git a/sh/runtests.sh b/test/units/sh_yesno
index b42a3577..bff4693a 100755
--- a/sh/runtests.sh
+++ b/test/units/sh_yesno
@@ -15,7 +15,6 @@
ret=0
tret=0
-ebegin "Testing yesno()"
for f in yes YES Yes true TRUE True 1 ; do
if ! yesno $f; then
: $(( tret += 1 ))
@@ -28,7 +27,7 @@ for f in no NO No false FALSE False 0 ; do
echo "!$f!"
fi
done
-eend $tret
: $(( ret += $tret ))
+eend $ret
exit $ret