Index: head/etc/mtree/BSD.tests.dist =================================================================== --- head/etc/mtree/BSD.tests.dist (revision 268793) +++ head/etc/mtree/BSD.tests.dist (revision 268794) @@ -1,278 +1,280 @@ # $FreeBSD$ # # Please see the file src/etc/mtree/README before making changes to this file. # /set type=dir uname=root gname=wheel mode=0755 . include atf-c .. atf-c++ .. .. share atf .. doc atf .. .. .. tests bin chown .. date .. mv .. pax .. pkill .. sh builtins .. errors .. execution .. expansion .. parameters .. parser .. set-e .. .. test .. .. cddl lib .. sbin .. usr.bin .. usr.sbin .. .. etc .. games .. gnu lib .. usr.bin .. .. lib atf libatf-c detail .. .. libatf-c++ detail .. .. test-programs .. .. libcrypt .. .. libexec atf atf-check .. atf-sh .. .. rtld-elf .. .. sbin dhclient .. growfs .. mdconfig .. .. secure lib .. libexec .. usr.bin .. usr.sbin .. .. share examples tests atf .. plain .. .. .. .. sys kern .. netinet .. .. usr.bin apply .. bmake archives fmt_44bsd .. fmt_44bsd_mod .. fmt_oldbsd .. .. basic t0 .. t1 .. t2 .. t3 .. .. execution ellipsis .. empty .. joberr .. plus .. .. shell builtin .. meta .. path .. path_select .. replace .. select .. .. suffixes basic .. src_wild1 .. src_wild2 .. .. syntax directive-t0 .. enl .. funny-targets .. semi .. .. sysmk t0 2 1 .. .. mk .. .. t1 2 1 .. .. mk .. .. t2 2 1 .. .. mk .. .. .. variables modifier_M .. modifier_t .. opt_V .. t0 .. .. .. calendar .. comm .. file2c .. join .. jot .. lastcomm .. m4 .. ncal .. printf .. sed regress.multitest.out .. .. tr .. truncate + .. + units .. uudecode .. uuencode .. xargs .. yacc .. .. usr.sbin etcupdate .. newsyslog .. sa .. .. .. .. Index: head/usr.bin/units/Makefile =================================================================== --- head/usr.bin/units/Makefile (revision 268793) +++ head/usr.bin/units/Makefile (revision 268794) @@ -1,10 +1,16 @@ # $FreeBSD$ +.include + PROG= units FILES= units.lib FILESDIR= ${SHAREDIR}/misc LDADD+=-ledit -ltermcap DPADD+=${LIBEDIT} ${LIBTERMCAP} + +.if ${MK_TESTS} != "no" +SUBDIR+= tests +.endif .include Index: head/usr.bin/units/tests/Makefile =================================================================== --- head/usr.bin/units/tests/Makefile (nonexistent) +++ head/usr.bin/units/tests/Makefile (revision 268794) @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.include + +TESTSDIR= ${TESTSBASE}/bin/chown + +TAP_TESTS_SH= units_basics + +.include Property changes on: head/usr.bin/units/tests/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/usr.bin/units/tests/units_basics.sh =================================================================== --- head/usr.bin/units/tests/units_basics.sh (nonexistent) +++ head/usr.bin/units/tests/units_basics.sh (revision 268794) @@ -0,0 +1,22 @@ +#!/bin/sh +# $FreeBSD$ + +base=`basename $0` + +echo "1..3" + +assert_equals() { + testnum="$1" + expected="$2" + fn="$3" + if [ "$expected" = "$($fn)" ] + then + echo "ok $testnum - $fn" + else + echo "not ok $testnum - $fn" + fi +} + +assert_equals 1 1 "units -t ft ft" +assert_equals 2 12 "units -t ft in" +assert_equals 3 0.083333333 "units -t in ft" Property changes on: head/usr.bin/units/tests/units_basics.sh ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property