]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r318436:
authorngie <ngie@FreeBSD.org>
Thu, 1 Jun 2017 06:41:24 +0000 (06:41 +0000)
committerngie <ngie@FreeBSD.org>
Thu, 1 Jun 2017 06:41:24 +0000 (06:41 +0000)
commitbd5be43236dfac5a3113a563dbc695b3d801641e
tree873f57c4873dffad0e4f277e7f0fc5a92d879108
parent6ab03c7590d7fc5c94e17f234ab3b5c592e9a295
MFC r318436:

usr.bin/getconf: add some initial tests

Items tested via this commit are:
- Some basic POSIX constants.
- Some valid programming environments with -v.
- Some invalid programming environments via -v.

NOTE: this test makes assumptions about ILP32/LP32 vs LP64 that are
currently not true on all architectures to avoid hardcoding some
architectures in the tests. I'm working on improving getconf(1) to be
more sane about handling ILP32/LP32 vs LP64. Future commits are coming
soon to address this.

Tested with: amd64, i386
etc/mtree/BSD.tests.dist
usr.bin/getconf/Makefile
usr.bin/getconf/getconf.h
usr.bin/getconf/tests/Makefile [new file with mode: 0644]
usr.bin/getconf/tests/arch_type.c [new file with mode: 0644]
usr.bin/getconf/tests/getconf_test.sh [new file with mode: 0755]