source: libcaca/trunk/test/driver.cpp @ 4333

Last change on this file since 4333 was 4333, checked in by Sam Hocevar, 10 years ago

Large source code cleanup, getting rid of spaces, tabs, and svn keywords.

File size: 1.1 KB
Line 
1/*
2 *  caca-test     testsuite program for libcaca
3 *  Copyright (c) 2008 Sam Hocevar <samhocevar.net>
4 *                All Rights Reserved
5 *
6 *  This program is free software. It comes without any warranty, to
7 *  the extent permitted by applicable law. You can redistribute it
8 *  and/or modify it under the terms of the Do What The Fuck You Want
9 *  To Public License, Version 2, as published by Sam Hocevar. See
10 *  http://sam.zoy.org/wtfpl/COPYING for more details.
11 */
12
13#include "config.h"
14
15#include <cppunit/extensions/HelperMacros.h>
16#include <cppunit/TestCaller.h>
17#include <cppunit/TestCase.h>
18#include <cppunit/TestSuite.h>
19
20#include "caca.h"
21
22class DriverTest : public CppUnit::TestCase
23{
24    CPPUNIT_TEST_SUITE(DriverTest);
25    CPPUNIT_TEST(test_list);
26    CPPUNIT_TEST_SUITE_END();
27
28public:
29    DriverTest() : CppUnit::TestCase("Driver Test") {}
30
31    void setUp() {}
32
33    void tearDown() {}
34
35    void test_list()
36    {
37        char const * const * list;
38
39        list = caca_get_display_driver_list();
40        CPPUNIT_ASSERT(list != NULL);
41        CPPUNIT_ASSERT(list[0] != NULL);
42    }
43};
44
45CPPUNIT_TEST_SUITE_REGISTRATION(DriverTest);
46
Note: See TracBrowser for help on using the repository browser.