#include "config.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <limits.h>
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#include <sixel.h>
#include "dither.h"
#include "quant.h"
#include "frame.h"
#include "pixelformat.h"
#include "writer.h"
#include "encoder.h"
#include "decoder.h"
#include "status.h"
#include "loader.h"
#include "fromgif.h"
#include "chunk.h"
#include "allocator.h"
#if HAVE_TESTS
int
main(int argc, char *argv[])
{
int nret = EXIT_FAILURE;
(void) argc;
(void) argv;
nret = sixel_fromgif_tests_main();
if (nret != EXIT_SUCCESS) {
goto error;
}
puts("fromgif ok.");
fflush(stdout);
nret = sixel_loader_tests_main();
if (nret != EXIT_SUCCESS) {
goto error;
}
puts("loader ok.");
fflush(stdout);
nret = sixel_dither_tests_main();
if (nret != EXIT_SUCCESS) {
goto error;
}
puts("dither ok.");
fflush(stdout);
nret = sixel_pixelformat_tests_main();
if (nret != EXIT_SUCCESS) {
goto error;
}
puts("pixelformat ok.");
fflush(stdout);
nret = sixel_frame_tests_main();
if (nret != EXIT_SUCCESS) {
goto error;
}
puts("frame ok.");
fflush(stdout);
nret = sixel_writer_tests_main();
if (nret != EXIT_SUCCESS) {
goto error;
}
puts("writer ok.");
fflush(stdout);
nret = sixel_quant_tests_main();
if (nret != EXIT_SUCCESS) {
goto error;
}
puts("quant ok.");
fflush(stdout);
nret = sixel_encoder_tests_main();
if (nret != EXIT_SUCCESS) {
goto error;
}
puts("encoder ok.");
fflush(stdout);
nret = sixel_decoder_tests_main();
if (nret != EXIT_SUCCESS) {
goto error;
}
puts("decoder ok.");
fflush(stdout);
nret = sixel_status_tests_main();
if (nret != EXIT_SUCCESS) {
goto error;
}
puts("status ok.");
fflush(stdout);
nret = sixel_chunk_tests_main();
if (nret != EXIT_SUCCESS) {
goto error;
}
puts("chunk ok.");
fflush(stdout);
nret = sixel_allocator_tests_main();
if (nret != EXIT_SUCCESS) {
goto error;
}
puts("allocator ok.");
fflush(stdout);
error:
return nret;
}
#endif