Initial commit: DPM core library, CLI, bundled info module, and tests
This commit is contained in:
33
tests/fixtures/src/missing_symbols.cpp
vendored
Normal file
33
tests/fixtures/src/missing_symbols.cpp
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* @file missing_symbols.cpp
|
||||
* @brief Broken fixture: exports only part of the module contract
|
||||
*
|
||||
* Missing dpm_module_execute, dpm_module_core_min, and
|
||||
* dpm_module_manifest. Core must refuse it at validation step 1 and
|
||||
* name the missing symbols.
|
||||
*
|
||||
* Part of the Dark Horse Linux Package Manager (DPM)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
extern "C" const char* dpm_module_version(void)
|
||||
{
|
||||
return "1.0.0";
|
||||
}
|
||||
|
||||
extern "C" const char* dpm_module_description(void)
|
||||
{
|
||||
return "Fixture missing most of the contract.";
|
||||
}
|
||||
Reference in New Issue
Block a user