blob: 03333e6e920aa270b3436f0f1f94efb60eee1d77 [file] [log] [blame]
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/storage/f2fs/test/compatibility/compatibility.h"
namespace f2fs {
namespace {
using MkfsFsckCompatibilityTest = F2fsGuestTest;
TEST_F(MkfsFsckCompatibilityTest, MkfsFsckLinuxToFuchsia) {
// mkfs on Linux
GetEnclosedGuest().GetLinuxOperator().Mkfs();
// fsck on Fuchsia
GetEnclosedGuest().GetFuchsiaOperator().Fsck();
}
TEST_F(MkfsFsckCompatibilityTest, MkfsFsckFuchsiaToLinux) {
// mkfs on Fuchsia
GetEnclosedGuest().GetFuchsiaOperator().Mkfs();
// fsck on Linux
GetEnclosedGuest().GetLinuxOperator().Fsck();
}
} // namespace
} // namespace f2fs