Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
integrate the new CLI app in the Fix executable
In order to pass the behave tests, the main executable has to show the behavior provided by the CLI app also fixed a few behave issues
- Loading branch information
Showing
6 changed files
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#! /usr/bin/bash | ||
|
||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
|
||
pushd "${SCRIPT_DIR}/../behave" > /dev/null || exit | ||
|
||
# run all scenarios that are not tagged @skip AND all that are tagged @wip | ||
docker4c run behave -t ~skip,wip | ||
|
||
popd > /dev/null || exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
# Generic test that uses conan libs | ||
|
||
add_subdirectory(fix_cli) | ||
|
||
add_executable(fix main.cpp) | ||
target_link_libraries( | ||
fix | ||
PRIVATE | ||
project_options | ||
project_warnings | ||
CONAN_PKG::fmt | ||
fix_cli | ||
) | ||
|
||
add_subdirectory(fix_cli) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
#include <fmt/format.h> | ||
#include <iostream> | ||
|
||
int main() { | ||
std::cout << fmt::format("Hello, {}", "fix!"); | ||
#include "fix_cli/app.hpp" | ||
|
||
int main(int argc, char* argv[]) { | ||
fix::cli::app app{std::cout}; | ||
const std::vector<std::string_view> args(argv, std::next(argv, argc)); | ||
app.run(args); | ||
} |