]> err.no Git - util-linux/commitdiff
tests: cleanup ts/cal scripts
authorKarel Zak <kzak@redhat.com>
Mon, 19 Jan 2009 21:37:52 +0000 (22:37 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Feb 2009 22:30:14 +0000 (23:30 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/cal/1m
tests/ts/cal/3m
tests/ts/cal/year

index 53a1395eafcc893a65efc2d646d56252aedf4bf5..1fe64cf90837b6bf144d53b31382131416ebcb0d 100755 (executable)
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
 #
-. ./commands.sh
-. ./functions.sh
 
-TS_COMPONENT="cal"
+TS_TOPDIR="$(dirname $0)/../.."
 TS_DESC="1 month"
 
+. $TS_TOPDIR/functions.sh
 ts_init "$*"
 
 set -o pipefail
index aa815f586dc94c9c6ef670e7edcbd5185944f293..e8b5da5e0be41d7776f127aeb548b5da3e99ca2e 100755 (executable)
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
 #
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="cal"
+TS_TOPDIR="$(dirname $0)/../.."
 TS_DESC="3 months"
 
+. $TS_TOPDIR/functions.sh
 ts_init "$*"
 
 set -o pipefail
index 769373a903d18898fbb8f83edb54e9b9978c2898..658c393f7868fff753e25c67701ed04e452a1101 100755 (executable)
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
 #
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="cal"
+TS_TOPDIR="$(dirname $0)/../.."
 TS_DESC="year"
 
+. $TS_TOPDIR/functions.sh
 ts_init "$*"
 
 set -o pipefail