GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SHTK_UNITTEST_MAIN(3) FreeBSD Library Functions Manual SHTK_UNITTEST_MAIN(3)

shtk_unittest_main
Standard test program entry point

shtk_import unittest

shtk_unittest_main

The shtk_unittest_main function implements the standard entry point of a test program that uses the shtk_unittest(3) library. The shtk_unittest_main function runs all test cases registered within the test case and determines the correct exit condition for the test program.

In order to use shtk_unittest_main, test programs must either explicitly call the function from their main method as this:

main() { shtk_unittest_main "${@}"; }

Or the test program can be compiled with an override for the main method's name:

$ shtk build -m shtk_unittest_main module_test.sh

In general, prefer the latter mechanism.

Returns 0 (true) if all executed test cases pass, or 1 (false) if any test fails.

shtk(3), shtk_unittest(3)

shtk_unittest_main first appeared in shtk 1.6.
November 8, 2014 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.