#define CHAZ_USE_SHORT_NAMES #include "charmony.h" #include #include "Charmonizer/Test.h" #include "Charmonizer/Test/AllTests.h" #ifdef HAS_ASSERT_H #include #endif #ifdef HAS_CTYPE_H #include #endif #ifdef HAS_ERRNO_H #include #endif #ifdef HAS_FLOAT_H #include #endif #ifdef HAS_LIMITS_H #include #endif #ifdef HAS_LOCALE_H #include #endif #ifdef HAS_MATH_H #include #endif #ifdef HAS_SETJMP_H #include #endif #ifdef HAS_SIGNAL_H #include #endif #ifdef HAS_STDARG_H #include #endif #ifdef HAS_STDDEF_H #include #endif #ifdef HAS_STDIO_H #include #endif #ifdef HAS_STDLIB_H #include #endif #ifdef HAS_STRING_H #include #endif #ifdef HAS_TIME_H #include #endif #ifdef HAS_CPIO_H #include #endif #ifdef HAS_DIRENT_H #include #endif #ifdef HAS_FCNTL_H #include #endif #ifdef HAS_GRP_H #include #endif #ifdef HAS_PWD_H #include #endif #ifdef HAS_SYS_STAT_H #include #endif #ifdef HAS_SYS_TIMES_H #include #endif #ifdef HAS_SYS_TYPES_H #include #endif #ifdef HAS_SYS_UTSNAME_H #include #endif #ifdef HAS_WAIT_H #include #endif #ifdef HAS_TAR_H #include #endif #ifdef HAS_TERMIOS_H #include #endif #ifdef HAS_UNISTD_H #include #endif #ifdef HAS_UTIME_H #include #endif #if defined(HAS_C89) || defined(HAS_C90) #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #endif #ifdef HAS_POSIX #include #include #include #include #include #include #include #include #include #include #include #include #include #include #endif TestBatch* chaz_THeaders_prepare() { return Test_new_batch("Headers", 2, chaz_THeaders_run); } void chaz_THeaders_run(TestBatch *batch) { PASS(batch, "Compiled successfully with all detected headers"); /* don't bother checking all -- just use stdio as an example */ #ifdef HAS_STDIO_H PASS(batch, "stdio.h should have been detected"); #else FAIL(batch, "stdio.h should have been detected"); #endif } /** * Copyright 2006 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */