]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r318436:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 1 Jun 2017 06:41:27 +0000 (06:41 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 1 Jun 2017 06:41:27 +0000 (06:41 +0000)
commitd26ff622bb20ac5bd77a188511054054757cbd42
tree2d45695486cdcf2f8f7f40d3db2ce9bc21abf309
parent2dd93b50a644f2389648e5fd81c8f2ce8b8ea449
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@319385 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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]