Lines Matching defs:test

109  * Internal test cases.
115 atf_tc_set_md_var(tc, "descr", "Tests the test case internal "
162 struct c_o_test *test;
164 for (test = c_o_tests; test->expargv[0] != NULL; test++) {
165 printf("> Test: %s\n", test->msg);
167 verbose_set_env("ATF_BUILD_CC", test->cc);
168 verbose_set_env("ATF_BUILD_CFLAGS", test->cflags);
169 verbose_set_env("ATF_BUILD_CPPFLAGS", test->cppflags);
174 if (test->hasoptargs)
175 RE(atf_build_c_o(test->sfile, test->ofile, test->optargs,
178 RE(atf_build_c_o(test->sfile, test->ofile, NULL, &argv));
179 check_equal_array(test->expargv, argv);
192 struct cpp_test *test;
194 for (test = cpp_tests; test->expargv[0] != NULL; test++) {
195 printf("> Test: %s\n", test->msg);
197 verbose_set_env("ATF_BUILD_CPP", test->cpp);
198 verbose_set_env("ATF_BUILD_CPPFLAGS", test->cppflags);
203 if (test->hasoptargs)
204 RE(atf_build_cpp(test->sfile, test->ofile, test->optargs,
207 RE(atf_build_cpp(test->sfile, test->ofile, NULL, &argv));
208 check_equal_array(test->expargv, argv);
221 struct cxx_o_test *test;
223 for (test = cxx_o_tests; test->expargv[0] != NULL; test++) {
224 printf("> Test: %s\n", test->msg);
226 verbose_set_env("ATF_BUILD_CXX", test->cxx);
227 verbose_set_env("ATF_BUILD_CXXFLAGS", test->cxxflags);
228 verbose_set_env("ATF_BUILD_CPPFLAGS", test->cppflags);
233 if (test->hasoptargs)
234 RE(atf_build_cxx_o(test->sfile, test->ofile, test->optargs,
237 RE(atf_build_cxx_o(test->sfile, test->ofile, NULL, &argv));
238 check_equal_array(test->expargv, argv);
256 /* Add the internal test cases. */
259 /* Add the test cases for the free functions. */
264 /* Add the test cases for the header file. */