X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=test%2Fbasic.cpp;fp=test%2Fbasic.cpp;h=3710916be8406e1faad45c73b381ae48c6eecacf;hp=0000000000000000000000000000000000000000;hb=a87a0712f7166d3418a7b522b44ffbce97a93d50;hpb=a4eac20496c663784e2a655712ec6459dac244dc diff --git a/test/basic.cpp b/test/basic.cpp new file mode 100644 index 0000000..3710916 --- /dev/null +++ b/test/basic.cpp @@ -0,0 +1,33 @@ +/**@file +@brief Test basic FTDI functionality + +@author Thomas Jarosch +*/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU Lesser General Public License * + * version 2.1 as published by the Free Software Foundation; * + * * + ***************************************************************************/ + +#define BOOST_TEST_DYN_LINK +#define BOOST_TEST_MAIN +#include + +#include + +BOOST_AUTO_TEST_SUITE(Basic) + +BOOST_AUTO_TEST_CASE(SimpleInit) +{ + ftdi_context ftdi; + + int rtn_init = ftdi_init(&ftdi); + BOOST_REQUIRE_EQUAL(0, rtn_init); + + ftdi_deinit(&ftdi); +} + +BOOST_AUTO_TEST_SUITE_END()