spec: Use %license macro to copy license
[platform/upstream/libtheora.git] / tests / tests.h
1 /********************************************************************
2  *                                                                  *
3  * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE.   *
4  * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
5  * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
6  * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
7  *                                                                  *
8  * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2009                *
9  * by the Xiph.Org Foundation http://www.xiph.org/                  *
10  *                                                                  *
11  ********************************************************************
12
13   function: common test utilities
14   last mod: $Id: tests.h 16503 2009-08-22 18:14:02Z giles $
15
16  ********************************************************************/
17
18 #include "config.h"
19
20 #include <stdio.h>
21 #include <stdlib.h>
22
23 #define INFO(str) \
24   { printf ("----  %s ...\n", (str)); }
25
26 #define WARN(str) \
27   { printf ("%s:%d: warning: %s\n", __FILE__, __LINE__, (str)); }
28
29 #define FAIL(str) \
30   { printf ("%s:%d: %s\n", __FILE__, __LINE__, (str)); exit(1); }
31
32 #undef MIN
33 #define MIN(a,b) ((a)<(b)?(a):(b))