| | |
| | | #define BOOST_TEST_MODULE standard_license_test |
| | | //#define BOOST_TEST_MAIN |
| | | #define BOOST_TEST_DYN_LINK |
| | | #include <boost/test/unit_test.hpp> |
| | | #include "../../../src/license-generator/license-generator.h" |
| | | #include "../../../src/library/api/license++.h" |
| | | |
| | | #include <build_properties.h> |
| | | #include <boost/filesystem.hpp> |
| | | #include <boost/test/unit_test.hpp> |
| | | |
| | | #include "../../src/tools/license-generator/license-generator.h" |
| | | #include <licensecc/licensecc.h> |
| | | #include "../../src/library/ini/SimpleIni.h" |
| | | #include "generate-license.h" |
| | | |
| | |
| | | LicenseLocation licenseLocation; |
| | | licenseLocation.openFileNearModule=false; |
| | | licenseLocation.licenseFileLocation = licLocation.c_str(); |
| | | licenseLocation.environmentVariableName = ""; |
| | | licenseLocation.licenseData = ""; |
| | | EVENT_TYPE result = acquire_license("TEST", |
| | | licenseLocation, & license); |
| | | BOOST_CHECK_EQUAL(result, LICENSE_OK); |