Skip to content

Commit

Permalink
test: add NoConfigWithConfig
Browse files Browse the repository at this point in the history
test it with
ctest -R NoConfigWithConfig
  • Loading branch information
t-h2o committed Dec 18, 2024
1 parent fdf329b commit 189f1b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/testing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,9 @@ f3d_test(NAME TestConfigFileQuiet DATA nonExistentFile.vtp CONFIG ${F3D_SOURCE_D
# Test no file with config file
f3d_test(NAME TestNoFileConfigFile CONFIG ${F3D_SOURCE_DIR}/testing/configs/verbose.json ARGS --verbose REGEXP "No files to load provided" NO_BASELINE)

# Test that --no-config set no-config value to 1
f3d_test(NAME TestNoConfigWithConfig ARGS --no-config --config=config_build --verbose REGEXP "'no-config' = '1'" NO_BASELINE)

# Test help display
f3d_test(NAME TestHelp ARGS --help REGEXP "Usage:")
f3d_test(NAME TestHelpPositional ARGS --help REGEXP "file1 file2 \.\.\.")
Expand Down

0 comments on commit 189f1b3

Please sign in to comment.