ScummVM API documentation
fs.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef TESTBED_FS_H
23#define TESTBED_FS_H
24
25#include "common/fs.h"
26
27#include "testbed/testsuite.h"
28
29namespace Testbed {
30
31namespace FStests {
32
33// Note: These tests require a game-data directory
34// So would work if game-path is set in the launcher or invoked as ./scummvm --path="path-to-testbed-data" testbed
35// from commandline
36
37// Helper functions for FS tests
38bool readDataFromFile(Common::FSDirectory *directory, const char *file);
39
40// will contain function declarations for FS tests
41TestExitStatus testReadFile();
42TestExitStatus testWriteFile();
43TestExitStatus testCreateDir();
44TestExitStatus testOpeningSaveFile();
45// add more here
46
47} // End of namespace FStests
48
49class FSTestSuite : public Testsuite {
50public:
60 ~FSTestSuite() override {}
61 const char *getName() const override {
62 return "FS";
63 }
64 const char *getDescription() const override {
65 return "File system tests (Navigation, Read/Write)";
66 }
67 void enable(bool flag) override;
68};
69
70} // End of namespace Testbed
71
72#endif // TESTBED_FS_H
Definition: fs.h:341
Definition: fs.h:49
Definition: testsuite.h:96