test_helpers.h revision 4a53e3c2b83c476a93148eaee0272649beb221ca
664e667e221a15fa5f456e73948c67710f43f1b4minfrin/* Copyright (c) 2008 The NetBSD Foundation, Inc.
664e667e221a15fa5f456e73948c67710f43f1b4minfrin * All rights reserved.
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd * Redistribution and use in source and binary forms, with or without
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd * modification, are permitted provided that the following conditions
664e667e221a15fa5f456e73948c67710f43f1b4minfrin * 1. Redistributions of source code must retain the above copyright
664e667e221a15fa5f456e73948c67710f43f1b4minfrin * notice, this list of conditions and the following disclaimer.
664e667e221a15fa5f456e73948c67710f43f1b4minfrin * 2. Redistributions in binary form must reproduce the above copyright
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc * notice, this list of conditions and the following disclaimer in the
664e667e221a15fa5f456e73948c67710f43f1b4minfrin * documentation and/or other materials provided with the distribution.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
2e545ce2450a9953665f701bb05350f0d3f26275nd * CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
664e667e221a15fa5f456e73948c67710f43f1b4minfrin * IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
664e667e221a15fa5f456e73948c67710f43f1b4minfrin * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
664e667e221a15fa5f456e73948c67710f43f1b4minfrin * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
664e667e221a15fa5f456e73948c67710f43f1b4minfrin * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
664e667e221a15fa5f456e73948c67710f43f1b4minfrin * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
664e667e221a15fa5f456e73948c67710f43f1b4minfrin * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
664e667e221a15fa5f456e73948c67710f43f1b4minfrin * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
664e667e221a15fa5f456e73948c67710f43f1b4minfrin# error "Cannot include test_helpers.h more than once."
664e667e221a15fa5f456e73948c67710f43f1b4minfrin atf_tc_set_md_var(tc, "descr", "Tests that the " hdrname " file can " \
664e667e221a15fa5f456e73948c67710f43f1b4minfrin "be included on its own, without any prerequisites"); \
664e667e221a15fa5f456e73948c67710f43f1b4minfrinbool build_check_c_o(const char *);
664e667e221a15fa5f456e73948c67710f43f1b4minfrinbool build_check_c_o_srcdir(const atf_tc_t *, const char *);
664e667e221a15fa5f456e73948c67710f43f1b4minfrinvoid header_check(const char *);
664e667e221a15fa5f456e73948c67710f43f1b4minfrinvoid get_process_helpers_path(const atf_tc_t *, const bool,
403c4b12252c59673100b19905e3c1fcb53ac773minfrinvoid run_h_tc(atf_tc_t *, const char *, const char *, const char *);