mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-01-28 01:47:18 +01:00
Comment out unit test stage
This commit is contained in:
parent
41e3558242
commit
41fc23af88
2 changed files with 50 additions and 50 deletions
|
|
@ -16,46 +16,45 @@ include:
|
|||
|
||||
stages:
|
||||
- static_code_analysis
|
||||
- unit_test
|
||||
# - unit_test
|
||||
- functional_test
|
||||
- deploy
|
||||
|
||||
run_unit_test:
|
||||
stage: unit_test
|
||||
image: ${COMMON_IMAGE}
|
||||
allow_failure: false
|
||||
script:
|
||||
- "./gitlab-ci/pipeline_setup.sh"
|
||||
- "./gitlab-ci/install-dependencies.sh ms"
|
||||
- "./gitlab-ci/setup.sh ms"
|
||||
- "./gitlab-ci/unit-test.sh"
|
||||
artifacts:
|
||||
when: always
|
||||
paths:
|
||||
- unit-test-coverage.xml
|
||||
#run_unit_test:
|
||||
# stage: unit_test
|
||||
# image: ${COMMON_IMAGE}
|
||||
# allow_failure: false
|
||||
# script:
|
||||
# - "./gitlab-ci/pipeline_setup.sh"
|
||||
# - "./gitlab-ci/install-dependencies.sh ms"
|
||||
# - "./gitlab-ci/setup.sh ms"
|
||||
# - "./gitlab-ci/unit-test.sh"
|
||||
# artifacts:
|
||||
# when: always
|
||||
# paths:
|
||||
# - unit-test-coverage.xml
|
||||
|
||||
run_tools_test:
|
||||
stage: unit_test
|
||||
image: ${COMMON_IMAGE}
|
||||
allow_failure: false
|
||||
script:
|
||||
- |
|
||||
echo "
|
||||
machine dev.iopsys.eu
|
||||
login gitlab-ci-token
|
||||
password $CI_JOB_TOKEN
|
||||
" > ~/.netrc
|
||||
- "./gitlab-ci/pipeline_setup.sh"
|
||||
- "./gitlab-ci/setup.sh ms"
|
||||
- "./gitlab-ci/tools-test.sh"
|
||||
- "./gitlab-ci/generate_supported_dm.sh"
|
||||
|
||||
artifacts:
|
||||
when: always
|
||||
paths:
|
||||
- out/datamodel_default.xml
|
||||
- out/datamodel_hdm.xml
|
||||
- out/datamodel.xls
|
||||
#run_tools_test:
|
||||
# stage: unit_test
|
||||
# image: ${COMMON_IMAGE}
|
||||
# allow_failure: false
|
||||
# script:
|
||||
# - |
|
||||
# echo "
|
||||
# machine dev.iopsys.eu
|
||||
# login gitlab-ci-token
|
||||
# password $CI_JOB_TOKEN
|
||||
# " > ~/.netrc
|
||||
# - "./gitlab-ci/pipeline_setup.sh"
|
||||
# - "./gitlab-ci/setup.sh ms"
|
||||
# - "./gitlab-ci/tools-test.sh"
|
||||
# - "./gitlab-ci/generate_supported_dm.sh"
|
||||
# artifacts:
|
||||
# when: always
|
||||
# paths:
|
||||
# - out/datamodel_default.xml
|
||||
# - out/datamodel_hdm.xml
|
||||
# - out/datamodel.xls
|
||||
|
||||
run_libbbfdm_api_functional_test:
|
||||
stage: functional_test
|
||||
|
|
@ -72,20 +71,20 @@ run_libbbfdm_api_functional_test:
|
|||
paths:
|
||||
- functional-api-test-coverage.xml
|
||||
|
||||
run_libbbfdm_functional_test:
|
||||
stage: functional_test
|
||||
image: ${COMMON_IMAGE}
|
||||
allow_failure: false
|
||||
script:
|
||||
- "./gitlab-ci/pipeline_setup.sh"
|
||||
- "./gitlab-ci/install-dependencies.sh ms"
|
||||
- "./gitlab-ci/setup.sh ms"
|
||||
- "./gitlab-ci/functional-test.sh"
|
||||
#run_libbbfdm_functional_test:
|
||||
# stage: functional_test
|
||||
# image: ${COMMON_IMAGE}
|
||||
# allow_failure: false
|
||||
# script:
|
||||
# - "./gitlab-ci/pipeline_setup.sh"
|
||||
# - "./gitlab-ci/install-dependencies.sh ms"
|
||||
# - "./gitlab-ci/setup.sh ms"
|
||||
# - "./gitlab-ci/functional-test.sh"
|
||||
|
||||
artifacts:
|
||||
when: always
|
||||
paths:
|
||||
- functional-test-coverage.xml
|
||||
# artifacts:
|
||||
# when: always
|
||||
# paths:
|
||||
# - functional-test-coverage.xml
|
||||
|
||||
run_libbbfdm_memory_test:
|
||||
stage: functional_test
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ static int setup_teardown(void **state)
|
|||
{
|
||||
dm_init_mem(&bbf_ctx);
|
||||
dm_uci_init(&bbf_ctx);
|
||||
dm_ubus_init(&bbf_ctx);
|
||||
bbf_ctx.dm_type = BBFDM_USP;
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -20,7 +21,7 @@ static int group_teardown(void **state)
|
|||
{
|
||||
dm_uci_exit(&bbf_ctx);
|
||||
dm_clean_mem(&bbf_ctx);
|
||||
dmubus_free();
|
||||
dm_ubus_free(&bbf_ctx);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue