Started on FileSystem format.

This commit is contained in:
2016-06-26 17:54:12 -05:00
parent 8e4c52d2ab
commit def16ce43f
5 changed files with 81 additions and 4 deletions
+11 -4
View File
@@ -1,8 +1,13 @@
cmake_minimum_required(VERSION 2.8)
add_executable(
Format
format.cpp
FileStoreFormat
filestore_format.cpp
)
add_executable(
FileSystemFormat
filesystem_format.cpp
)
add_executable(
@@ -10,8 +15,10 @@ add_executable(
filestoreio.cpp
)
target_link_libraries(Format OxFS OxStd)
target_link_libraries(FileStoreFormat OxFS OxStd)
target_link_libraries(FileSystemFormat OxFS OxStd)
target_link_libraries(FileStoreIO OxFS OxStd)
add_test("Format" Format)
add_test("FileStoreFormat" FileStoreFormat)
add_test("FileSystemFormat" FileSystemFormat)
add_test("FileStoreIO" FileStoreIO)
+22
View File
@@ -0,0 +1,22 @@
/*
* Copyright 2015 - 2016 gtalent2@gmail.com
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <ox/fs/filesystem.hpp>
using namespace ox::fs;
template<typename FileSystem>
int test() {
const auto size = 65535;
uint8_t volume[size];
FileSystem::format(volume, size);
return 0;
}
int main() {
return test<FileSystem16>() | test<FileSystem32>() | test<FileSystem64>();
}