xref: /openbmc/openpower-hw-diags/test/test-ffdc-file.cpp (revision 08c21c256309cbfe10b2dd7c55b68e86fb8a4640)
1*08c21c25SZane Shelley #include <util/ffdc_file.hpp>
2*08c21c25SZane Shelley #include <util/trace.hpp>
3*08c21c25SZane Shelley 
4*08c21c25SZane Shelley #include "gtest/gtest.h"
5*08c21c25SZane Shelley 
TEST(FFDCFile,TestSet1)6*08c21c25SZane Shelley TEST(FFDCFile, TestSet1)
7*08c21c25SZane Shelley {
8*08c21c25SZane Shelley     std::vector<util::FFDCFile> files;
9*08c21c25SZane Shelley     files.emplace_back(util::FFDCFormat::JSON, 1, 1);
10*08c21c25SZane Shelley     files.emplace_back(util::FFDCFormat::CBOR, 2, 2);
11*08c21c25SZane Shelley     files.emplace_back(util::FFDCFormat::Text, 3, 3);
12*08c21c25SZane Shelley     files.emplace_back(util::FFDCFormat::Custom, 4, 4);
13*08c21c25SZane Shelley 
14*08c21c25SZane Shelley     std::vector<util::FFDCTuple> tuples;
15*08c21c25SZane Shelley     ASSERT_NO_THROW(util::transformFFDC(files, tuples));
16*08c21c25SZane Shelley }
17