summaryrefslogtreecommitdiff
path: root/test/file.cpp
AgeCommit message (Expand)Author
2021-12-01test: Replace "/proc/self/exe" with path to test binaryLaurent Pinchart
2021-08-03libcamera: file: Turn MapFlag and OpenModeFlag into enum classLaurent Pinchart
2021-06-25libcamera/base: Move File to base libraryKieran Bingham
2020-12-30test: file: Check that directories are not treated as filesKieran Bingham
2020-07-15test: file: Add file creation testLaurent Pinchart
2020-07-15test: file: Add read/write testsLaurent Pinchart
2020-06-02test: Fixed the compilation issueMadhavan Krishnan
2020-05-16libcamera: Move internal headers to include/libcamera/internal/Laurent Pinchart
2020-04-14test: Add File class testsLaurent Pinchart
pan class="hl opt"><int32_t>(0x42)) << " "; ref += "0x00000042 "; os << utils::hex(static_cast<uint32_t>(0x42)) << " "; ref += "0x00000042 "; os << utils::hex(static_cast<int64_t>(0x42)) << " "; ref += "0x0000000000000042 "; os << utils::hex(static_cast<uint64_t>(0x42)) << " "; ref += "0x0000000000000042 "; os << utils::hex(static_cast<int32_t>(0x42), 4) << " "; ref += "0x0042 "; os << utils::hex(static_cast<uint32_t>(0x42), 1) << " "; ref += "0x42 "; os << utils::hex(static_cast<int64_t>(0x42), 4) << " "; ref += "0x0042 "; os << utils::hex(static_cast<uint64_t>(0x42), 1) << " "; ref += "0x42 "; std::string s = os.str(); if (s != ref) { cerr << "utils::hex() test failed, expected '" << ref << "', got '" << s << "'"; return TestFail; } return TestPass; } }; TEST_REGISTER(UtilsTest)