-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb672bf
commit 0302bee
Showing
7 changed files
with
39 additions
and
83 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
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,86 +1,40 @@ | ||
set(COMMAND ${PROJECT_SOURCE_DIR}/test/atm/global-workflow/setup_workflow_exp.sh) | ||
set(ARGS "${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR}") | ||
set(WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/atm/global-workflow/testrun) | ||
|
||
function(add_jjob_test TARGET TEST_DEPENDS) | ||
message(STATUS "preparing ${TARGET} for atm_jjob ctests") | ||
ecbuild_add_test(TARGET ${TARGET} | ||
TYPE SCRIPT | ||
COMMAND ${COMMAND} | ||
ARGS ${ARGS} | ||
WORKING_DIRECTORY ${WORKING_DIRECTORY} | ||
TEST_DEPENDS ${TEST_DEPENDS}) | ||
endfunction() | ||
|
||
# test for creating an experiment directory within the global-workflow | ||
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/test/atm/global-workflow/testrun) | ||
|
||
# Setup jjob tests | ||
ecbuild_add_test(TARGET test_gdasapp_setup_atm_cycled_exp | ||
TYPE SCRIPT | ||
COMMAND ${PROJECT_SOURCE_DIR}/test/atm/global-workflow/setup_workflow_exp.sh | ||
ARGS ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/atm/global-workflow/testrun) | ||
|
||
ecbuild_add_test(TARGET test_gdasapp_atm_jjob_var_init | ||
TYPE SCRIPT | ||
COMMAND ${PROJECT_SOURCE_DIR}/test/atm/global-workflow/jjob_var_init.sh | ||
ARGS ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/atm/global-workflow/testrun | ||
TEST_DEPENDS test_gdasapp_setup_atm_cycled_exp) | ||
|
||
ecbuild_add_test(TARGET test_gdasapp_atm_jjob_var_run | ||
TYPE SCRIPT | ||
COMMAND ${PROJECT_SOURCE_DIR}/test/atm/global-workflow/jjob_var_run.sh | ||
ARGS ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/atm/global-workflow/testrun | ||
TEST_DEPENDS test_gdasapp_atm_jjob_var_init) | ||
|
||
ecbuild_add_test(TARGET test_gdasapp_atm_jjob_var_inc | ||
TYPE SCRIPT | ||
COMMAND ${PROJECT_SOURCE_DIR}/test/atm/global-workflow/jjob_var_inc.sh | ||
ARGS ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/atm/global-workflow/testrun | ||
TEST_DEPENDS test_gdasapp_atm_jjob_var_run) | ||
|
||
ecbuild_add_test(TARGET test_gdasapp_atm_jjob_var_final | ||
TYPE SCRIPT | ||
COMMAND ${PROJECT_SOURCE_DIR}/test/atm/global-workflow/jjob_var_final.sh | ||
ARGS ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/atm/global-workflow/testrun | ||
TEST_DEPENDS test_gdasapp_atm_jjob_var_inc) | ||
|
||
ecbuild_add_test(TARGET test_gdasapp_atm_jjob_ens_init | ||
TYPE SCRIPT | ||
COMMAND ${PROJECT_SOURCE_DIR}/test/atm/global-workflow/jjob_ens_init.sh | ||
ARGS ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/atm/global-workflow/testrun | ||
TEST_DEPENDS test_gdasapp_setup_atm_cycled_exp) | ||
|
||
ecbuild_add_test(TARGET test_gdasapp_atm_jjob_ens_letkf | ||
TYPE SCRIPT | ||
COMMAND ${PROJECT_SOURCE_DIR}/test/atm/global-workflow/jjob_ens_letkf.sh | ||
ARGS ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/atm/global-workflow/testrun | ||
TEST_DEPENDS test_gdasapp_atm_jjob_ens_init) | ||
|
||
ecbuild_add_test(TARGET test_gdasapp_atm_jjob_ens_init_split | ||
TYPE SCRIPT | ||
COMMAND ${PROJECT_SOURCE_DIR}/test/atm/global-workflow/jjob_ens_init_split.sh | ||
ARGS ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/atm/global-workflow/testrun | ||
TEST_DEPENDS test_gdasapp_atm_jjob_ens_letkf) | ||
|
||
ecbuild_add_test(TARGET test_gdasapp_atm_jjob_ens_obs | ||
TYPE SCRIPT | ||
COMMAND ${PROJECT_SOURCE_DIR}/test/atm/global-workflow/jjob_ens_obs.sh | ||
ARGS ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/atm/global-workflow/testrun | ||
TEST_DEPENDS test_gdasapp_atm_jjob_ens_init_split) | ||
|
||
ecbuild_add_test(TARGET test_gdasapp_atm_jjob_ens_sol | ||
TYPE SCRIPT | ||
COMMAND ${PROJECT_SOURCE_DIR}/test/atm/global-workflow/jjob_ens_sol.sh | ||
ARGS ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/atm/global-workflow/testrun | ||
TEST_DEPENDS test_gdasapp_atm_jjob_ens_obs) | ||
|
||
ecbuild_add_test(TARGET test_gdasapp_atm_jjob_ens_inc | ||
TYPE SCRIPT | ||
COMMAND ${PROJECT_SOURCE_DIR}/test/atm/global-workflow/jjob_ens_inc.sh | ||
ARGS ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/atm/global-workflow/testrun | ||
TEST_DEPENDS test_gdasapp_atm_jjob_ens_sol) | ||
|
||
ecbuild_add_test(TARGET test_gdasapp_atm_jjob_ens_final | ||
TYPE SCRIPT | ||
COMMAND ${PROJECT_SOURCE_DIR}/test/atm/global-workflow/jjob_ens_final.sh | ||
ARGS ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR} | ||
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/test/atm/global-workflow/testrun | ||
TEST_DEPENDS test_gdasapp_atm_jjob_ens_inc) | ||
|
||
COMMAND ${COMMAND} | ||
ARGS ${ARGS} | ||
WORKING_DIRECTORY ${WORKING_DIRECTORY}) | ||
|
||
# Variational jjobs | ||
add_jjob_test(test_gdasapp_atm_jjob_var_init test_gdasapp_setup_atm_cycled_exp) | ||
add_jjob_test(test_gdasapp_atm_jjob_var_run test_gdasapp_atm_jjob_var_init) | ||
add_jjob_test(test_gdasapp_atm_jjob_var_inc test_gdasapp_atm_jjob_var_run) | ||
add_jjob_test(test_gdasapp_atm_jjob_var_final test_gdasapp_atm_jjob_var_inc) | ||
|
||
# Ensemble jjobs with no split observer-solver | ||
add_jjob_test(test_gdasapp_atm_jjob_ens_init test_gdasapp_setup_atm_cycled_exp) | ||
add_jjob_test(test_gdasapp_atm_jjob_ens_letkf test_gdasapp_atm_jjob_ens_init) | ||
|
||
# Ensemble jjobs with split observer-solver | ||
add_jjob_test(test_gdasapp_atm_jjob_ens_init_split test_gdasapp_setup_atm_cycled_exp) | ||
add_jjob_test(test_gdasapp_atm_jjob_ens_obs test_gdasapp_atm_jjob_ens_init_split) | ||
add_jjob_test(test_gdasapp_atm_jjob_ens_sol test_gdasapp_atm_jjob_ens_obs) | ||
add_jjob_test(test_gdasapp_atm_jjob_ens_inc test_gdasapp_atm_jjob_ens_sol) | ||
add_jjob_test(test_gdasapp_atm_jjob_ens_final test_gdasapp_atm_jjob_ens_inc) |
Empty file.
Empty file.