# What TET is
The TETware family of tools are Test Execution Management Systems that takes care of the administration, sequencing, reporting and portability of all of the tests that you develop. Freeing up developers to concentrate on test development and helping testers by providing them with a single, standard, test harness. Enabling you to deliver your software projects on time and across multiple operating systems. They are all available off-the-virtual-shelf. Easily accessed by ftp download. So stop re-inventing the wheel, take the drudge out of test development and use TETware.
# Reason of this article
There is an artcile describes how to build and run TET framework from scratch. The pkgsrc version has several restrictions:
* the recent version not available until now
* necessary to have the pkgsrc infrastructure
* only distributed version of TET is provided
However, you may apply patches from the pkgsrc tree (for example the patch-ad still can be applied for distributed TET).
# Porting to NetBSD
Current opensourced version is 3.7a. To download or check new versions look to the Links section below. (The guide was tested at least on the NetBSD-current/i386 and NetBSD-current/ARMv6)
[The simply patch](/images/TET-Configure.diff) would be applied before compilation is started.
* After applying patch you'll need to copy the proper makefile
cp src/defines/UNTESTED/freebsd.mk src/defines/netbsd.mk
* Make the $TET_ROOT directory like _/opt/tet3_
* Copy content of TET sources tree to $TET_ROOT
**Notice to get distributed TET**:
* Create regular user _tet_ on the target system with home path as $TET_ROOT without real shell
* Change working directory to $TET_ROOT
* Build framework
./configure -t <style>
where <style> means Lite (_-t lite_) or Distributed (_-t inet_) version of TET framework.
**Notice to get distributed TET**:
* Change owner of the $TET_ROOT to _tet_ recursively
# Update user's files
* Put to your ~/.profile
# System files correction (distributed TET)
* Start tccd daemon from the /etc/rc.conf
if test -x "$TET_ROOT/bin/tccd"
$TET_ROOT/bin/tccd && echo "TET3 tccd started"
Other files (_$TET_ROOT/systems_, _$HOME/systems.equiv_, _/etc/services_) are corrected in according to TET3 install guide.
## Sample of required files
You'll need a minimal _$TET_ROOT/systems_ file. The following content in the file is enough for this test suite.
000 localhost 60103
For the 'inet' version of TET, you'll need tccd running, and a _$HOME/systems.equiv_ file in the directory of the user running tccd. The following contents will do for this file:
**Note!** In our case the _$HOME_ is equivalent to _/opt/tet3_
And you'll need to append following lines to the _/etc/services_:
# Simple check
The directory _contrib_ in the source tree contains a number of simplest examples of test cases. Let's start something from it step by step. Consider test cases under _contrib/capi_. Login as user _tet_. Be ensure you have set $TET_ROOT to actual path (_/opt/tet3_ in our case) and _$TET_ROOT/bin_ is covered by $PATH.
$ echo $TET_ROOT
$ echo $PATH
Change current directory to _$TET_ROOT/contrib/capi_.
Patch test case build system (yeah, I know...):
--- tools/buildtool.c.orig 2008-11-24 13:15:58.000000000 +0000
+++ tools/buildtool.c 2008-11-24 13:16:15.000000000 +0000
@@ -51,7 +51,7 @@
#define BUILDSUCCESS 0 /* successful return from buildtool */
-static void tbuild()
To run the test suite, firstly apply profile setting, then run the _Setup_ script and after use tcc.
tcc -p -bec contrib/capi
* [Free TET Framework]
* [VSTHlite] - pthread test suite
: http://tetworks.opengroup.org/tet/ (http://tetworks.opengroup.org/tet/)
: http://tetworks.opengroup.org/documents/docs.htm (http://tetworks.opengroup.org/documents/docs.htm)
: /VSTHlite (VSTHlite)
CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb