fre.tests.test_fre_make_cli module
CLI Tests for fre make *
Tests the command-line-interface calls for tools in the fre make suite. Each tool generally gets 3 tests:
fre make , checking for exit code 0 (fails if cli isn’t configured right)
fre make –help, checking for exit code 0 (fails if the code doesn’t run)
fre make –optionDNE, checking for exit code 2 (fails if cli isn’t configured right and thinks the tool has a –optionDNE option)
We also have a set of more complicated tests for fre make testing the checkout and container creation (and cleaning up after those operations)
- fre.tests.test_fre_make_cli.test_cli_fre_make()
fre make
- fre.tests.test_fre_make_cli.test_cli_fre_make_create_checkout_baremetal()
fre -vv make checkout-script -y fre/make/tests/null_example/null_model.yaml -p ncrc5.intel23 -t debug
- fre.tests.test_fre_make_cli.test_cli_fre_make_create_checkout_baremetal_npc()
fre make checkout-script -y null_model.yaml -p ncrc5.intel23 -t debug -npc
- fre.tests.test_fre_make_cli.test_cli_fre_make_create_checkout_cleanup()
make sure the checked out code doesn’t stick around to mess up another pytest call
- fre.tests.test_fre_make_cli.test_cli_fre_make_create_checkout_container()
fre make checkout-script -y null_model.yaml -p hpcme.2023 -t debug
- fre.tests.test_fre_make_cli.test_cli_fre_make_help()
fre make –help
- fre.tests.test_fre_make_cli.test_cli_fre_make_opt_dne()
fre make optionDNE