Skip to content

Commit

Permalink
-set the version to v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kamchatka-volcano committed May 18, 2023
1 parent e47ac38 commit 3583f77
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.18)
project(lunchtoast VERSION 0.2.0 DESCRIPTION "lunchtoast - a command-line tool for functional testing of console applications.")
project(lunchtoast VERSION 0.3.0 DESCRIPTION "lunchtoast - a command-line tool for functional testing of console applications.")

find_package(Boost 1.78 REQUIRED COMPONENTS system filesystem)
include(GNUInstallDirs)
Expand Down
10 changes: 6 additions & 4 deletions src/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
#include <string_view>

namespace lunchtoast::hardcoded {
using namespace std::string_view_literals;

inline constexpr std::string_view testCaseFilename = "test.toast";
inline constexpr std::string_view configFilename = "lunchtoast.cfg";
inline constexpr std::string_view launchFailureReportFilename = "launch_{}.failure_info";
inline constexpr std::string_view compareFileContentFailureReportFilename = "compare_file_content_{}.failure_info";
inline constexpr auto appVersion = "lunchtoast v0.3.0"sv;
inline constexpr auto testCaseFilename = "test.toast"sv;
inline constexpr auto configFilename = "lunchtoast.cfg"sv;
inline constexpr auto launchFailureReportFilename = "launch_{}.failure_info"sv;
inline constexpr auto compareFileContentFailureReportFilename = "compare_file_content_{}.failure_info"sv;

} //namespace lunchtoast::hardcoded
7 changes: 5 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "commandline.h"
#include "config.h"
#include "constants.h"
#include "test.h"
#include "testcontentsgenerator.h"
#include "testlauncher.h"
Expand Down Expand Up @@ -41,14 +42,16 @@ int mainApp(const CommandLine& commandLine)
#ifdef _WIN32
int wmain(int argc, wchar_t** argv)
{
auto cmdlineReader = cmdlime::CommandLineReader<cmdlime::Format::Simple>{"lunchtoast", "lunchtoast v0.2.0"};
auto cmdlineReader =
cmdlime::CommandLineReader<cmdlime::Format::Simple>{"lunchtoast", std::string{hardcoded::appVersion}};
cmdlineReader.setErrorOutputStream(std::cout);
return cmdlineReader.exec<CommandLine>(argc, argv, mainApp);
}
#else
int main(int argc, char** argv)
{
auto cmdlineReader = cmdlime::CommandLineReader<cmdlime::Format::Simple>{"lunchtoast", "lunchtoast v0.2.0"};
auto cmdlineReader =
cmdlime::CommandLineReader<cmdlime::Format::Simple>{"lunchtoast", std::string{hardcoded::appVersion}};
cmdlineReader.setErrorOutputStream(std::cout);
return cmdlineReader.exec<CommandLine>(argc, argv, mainApp);
}
Expand Down

0 comments on commit 3583f77

Please sign in to comment.