#ifndef COUNTERS_H
#define COUNTERS_H
+#include <stddef.h>
+
struct counters {
unsigned *data; /* counter value */
size_t size; /* logical array size */
#ifndef CCACHE_LANGUAGE_H
#define CCACHE_LANGUAGE_H
+#include <stdbool.h>
+
const char *language_for_file(const char *fname);
const char *p_language_for_language(const char *language);
const char *extension_for_language(const char *language);
+#ifndef CCACHE_MACROSKIP_H
+#define CCACHE_MACROSKIP_H
+
+#include <stdint.h>
+
/*
* A Boyer-Moore-Horspool skip table used for searching for the strings
* "__TIME__" and "__DATE__".
8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
};
+
+#endif
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "ccache.h"
-#include "test/framework.h"
+#include "../ccache.h"
+#include "framework.h"
#include "util.h"
#if defined(HAVE_TERMIOS_H)
#ifndef TEST_FRAMEWORK_H
#define TEST_FRAMEWORK_H
-#include "ccache.h"
+#include "../ccache.h"
/*****************************************************************************/
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "test/framework.h"
+#include "framework.h"
#ifdef HAVE_GETOPT_LONG
#include <getopt.h>
#else
-#include "getopt_long.h"
+#include "../getopt_long.h"
#endif
/* *INDENT-OFF* disable uncrustify */
{
suite_fn suites[] = {
#define SUITE(name) &suite_ ## name,
-#include "test/suites.h"
+#include "suites.h"
#undef SUITE
NULL
};
* This file contains tests for the functions operating on struct args.
*/
-#include "ccache.h"
-#include "test/framework.h"
-#include "test/util.h"
+#include "../ccache.h"
+#include "framework.h"
+#include "util.h"
TEST_SUITE(args)
* This file contains tests for the processing of compiler arguments.
*/
-#include "ccache.h"
-#include "conf.h"
-#include "test/framework.h"
-#include "test/util.h"
+#include "../ccache.h"
+#include "../conf.h"
+#include "framework.h"
+#include "util.h"
extern struct conf *conf;
* This file contains tests for the compopt_* functions.
*/
-#include "ccache.h"
-#include "compopt.h"
-#include "test/framework.h"
+#include "../ccache.h"
+#include "../compopt.h"
+#include "framework.h"
TEST_SUITE(compopt)
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "conf.h"
-#include "test/framework.h"
-#include "test/util.h"
+#include "../conf.h"
+#include "framework.h"
+#include "util.h"
#define N_CONFIG_ITEMS 30
static struct {
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "ccache.h"
-#include "counters.h"
-#include "test/framework.h"
-#include "test/util.h"
+#include "../ccache.h"
+#include "../counters.h"
+#include "framework.h"
+#include "util.h"
TEST_SUITE(counters)
* This file contains tests for functions in hash.c.
*/
-#include "ccache.h"
-#include "test/framework.h"
+#include "../ccache.h"
+#include "framework.h"
TEST_SUITE(hash)
* This file contains tests for functions in hashutil.c.
*/
-#include "ccache.h"
-#include "hashutil.h"
-#include "test/framework.h"
-#include "test/util.h"
+#include "../ccache.h"
+#include "../hashutil.h"
+#include "framework.h"
+#include "util.h"
TEST_SUITE(hashutil)
* This file contains tests for functions in lockfile.c.
*/
-#include "ccache.h"
-#include "test/framework.h"
-#include "test/util.h"
+#include "../ccache.h"
+#include "framework.h"
+#include "util.h"
TEST_SUITE(lockfile)
* This file contains tests for statistics handling.
*/
-#include "ccache.h"
-#include "counters.h"
-#include "test/framework.h"
-#include "test/util.h"
+#include "../ccache.h"
+#include "../counters.h"
+#include "framework.h"
+#include "util.h"
TEST_SUITE(stats)
* This file contains tests for functions in util.c.
*/
-#include "ccache.h"
-#include "test/framework.h"
+#include "../ccache.h"
+#include "framework.h"
TEST_SUITE(util)
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "system.h"
-#include "test/util.h"
+#include "../system.h"
+#include "util.h"
#ifdef _WIN32
# define lstat(a, b) stat(a, b)
#ifndef TEST_UTIL_H
#define TEST_UTIL_H
+#include <stdbool.h>
+
bool path_exists(const char *path);
bool is_symlink(const char *path);
void create_file(const char *path, const char *content);