Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. #include "config.h"
  15. #include <cppunit/extensions/HelperMacros.h>
  16. #include <cppunit/TestCaller.h>
  17. #include <cppunit/TestCase.h>
  18. #include <cppunit/TestSuite.h>
  19. #include "caca.h"
  20. class DriverTest : public CppUnit::TestCase
  21. {
  22. CPPUNIT_TEST_SUITE(DriverTest);
  23. CPPUNIT_TEST(test_list);
  24. CPPUNIT_TEST_SUITE_END();
  25. public:
  26. DriverTest() : CppUnit::TestCase("Driver Test") {}
  27. void setUp() {}
  28. void tearDown() {}
  29. void test_list()
  30. {
  31. char const * const * list;
  32. list = caca_get_display_driver_list();
  33. CPPUNIT_ASSERT(list != NULL);
  34. CPPUNIT_ASSERT(list[0] != NULL);
  35. }
  36. };
  37. CPPUNIT_TEST_SUITE_REGISTRATION(DriverTest);