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