-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMBPM_TestMain.cpp
More file actions
23 lines (20 loc) · 878 Bytes
/
Copy pathMBPM_TestMain.cpp
File metadata and controls
23 lines (20 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "MBPacketManager.h"
#include <iostream>
#include <filesystem>
int main(int argc,const char** argv)
{
//debug
std::filesystem::current_path(std::filesystem::current_path().parent_path());
std::cout << "Update index test" << std::endl;
MBPM::MBPP_FileInfoReader OSUpdateReader("MBPM_Tests/UpdateTests/MBPM_FileInfo");
MBPM::MBPP_FileInfoReader::UpdateFileInfo("MBPM_Tests/UpdateTests",OSUpdateReader);
MBPM::MBPP_FileInfoReader VirtualUpdateReader("MBPM_Tests/UpdateTests/MBPM_FileInfo");
MBUtility::OS_Filesystem Filesystem;
MBPM::MBPP_FileInfoReader::UpdateFileInfo(Filesystem,"MBPM_Tests/UpdateTests", VirtualUpdateReader);
if (!(OSUpdateReader == VirtualUpdateReader))
{
std::cout << "Update index test failed: Virtual reader and os reader produces different results" << std::endl;
std::exit(1);
}
std::cout << "Update index passed" << std::endl;
}