Skip to content

Commit

Permalink
Merge pull request #80 from sony/feature/20230511-remove-deprecated-t…
Browse files Browse the repository at this point in the history
…ests

Remove two test targets in nnabla-c-runtime
  • Loading branch information
YukioOobuchi authored May 24, 2023
2 parents 131ffcb + da5cdad commit a7cd1a6
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 403 deletions.
11 changes: 0 additions & 11 deletions build-tools/make/build-with-docker.mk
Original file line number Diff line number Diff line change
Expand Up @@ -192,17 +192,6 @@ bwd-check-api_level: nnabla-c-runtime-docker_image_test

########################################################################################################################
# Tests
.PHONY: bwd-nnabla-c-runtime-generate-function-test
bwd-nnabla-c-runtime-generate-function-test: nnabla-c-runtime-docker_image_test
cd $(NNABLA_C_RUNTIME_DIRECTORY) \
&& docker run $(NNABLA_C_RUNTIME_DOCKER_RUN_OPTS) \
$(NNABLA_C_RUNTIME_DOCKER_IMAGE_TEST) make nnabla-c-runtime-generate-function-test

.PHONY: bwd-nnabla-c-runtime-test-all-functions
bwd-nnabla-c-runtime-test-all-functions: nnabla-c-runtime-docker_image_test
cd $(NNABLA_C_RUNTIME_DIRECTORY) \
&& docker run $(NNABLA_C_RUNTIME_DOCKER_RUN_OPTS) \
$(NNABLA_C_RUNTIME_DOCKER_IMAGE_TEST) make nnabla-c-runtime-test-all-functions

ifneq ("$(NNABLA_EXAMPLES_DIRECTORY)","")

Expand Down
25 changes: 0 additions & 25 deletions build-tools/make/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -89,31 +89,6 @@ nnabla-c-runtime-update-function-info: nnabla-install
check-api_level: nnabla-c-runtime-build nnabla-install
@bash ./build-tools/test/scripts/check_api_level.sh $(NNABLA_C_RUNTIME_DIRECTORY)

.PHONY: nnabla-c-runtime-generate-function-test
nnabla-c-runtime-generate-function-test: nnabla-install
@mkdir -p $(NNABLA_C_RUNTIME_TEST_DIRECTORY)/nnabla
@cd $(NNABLA_C_RUNTIME_TEST_DIRECTORY)/nnabla && PYTHONPATH=$$(cd ../../../build-tools/test/callback && pwd) \
python -m pytest ${PYTEST_OPTS} ../../../../nnabla/python/test
@NNABLA_C_RUNTIME_TEST_DIRECTORY=$(NNABLA_C_RUNTIME_TEST_DIRECTORY) $(NNABLA_C_RUNTIME_DIRECTORY)/build-tools/test/scripts/exec_all_functions.sh
@python build-tools/test/scripts/generate_yaml.py
@rm -rf $(NNABLA_C_RUNTIME_REFERENCE_DIRECTORY)/functions
@mkdir -p $(NNABLA_C_RUNTIME_REFERENCE_DIRECTORY)/functions
@ln $(NNABLA_C_RUNTIME_TEST_DIRECTORY)/nnabla/succeed/*.nntxt $(NNABLA_C_RUNTIME_REFERENCE_DIRECTORY)/functions/
@ln $(NNABLA_C_RUNTIME_TEST_DIRECTORY)/nnabla/succeed/*.yaml $(NNABLA_C_RUNTIME_REFERENCE_DIRECTORY)/functions/
@ln $(NNABLA_C_RUNTIME_TEST_DIRECTORY)/nnabla/succeed/*_input_*.bin $(NNABLA_C_RUNTIME_REFERENCE_DIRECTORY)/functions/
@ln $(NNABLA_C_RUNTIME_TEST_DIRECTORY)/nnabla/succeed/*_output_?.bin $(NNABLA_C_RUNTIME_REFERENCE_DIRECTORY)/functions/
@rm -f $(NNABLA_C_RUNTIME_REFERENCE_DIRECTORY)/functions/*_nnabla_cli_output_?.bin

.PHONY: nnabla-c-runtime-test-all-functions
nnabla-c-runtime-test-all-functions: nnabla-c-runtime-build nnabla-install
@rm -rf $(NNABLA_C_RUNTIME_TEST_DIRECTORY)/nnabla-c-runtime/nnb
@rm -rf $(NNABLA_C_RUNTIME_TEST_DIRECTORY)/nnabla-c-runtime/csrc
@mkdir -p $(NNABLA_C_RUNTIME_TEST_DIRECTORY)/nnabla-c-runtime/
@python build-tools/test/scripts/create_nnabla_c_runtime_function_test_makefile.py
@NNABLA_C_RUNTIME_REFERENCE_DIRECTORY=$(NNABLA_C_RUNTIME_REFERENCE_DIRECTORY) \
NNABLA_C_RUNTIME_TEST_DIRECTORY=$(NNABLA_C_RUNTIME_TEST_DIRECTORY) \
$(MAKE) -k -j1 -f $(NNABLA_C_RUNTIME_TEST_DIRECTORY)/nnabla-c-runtime/test_functions.mk

ifneq ("$(NNABLA_EXAMPLES_DIRECTORY)","")

.PHONY: nnabla-c-runtime-generate-mnist-test
Expand Down
34 changes: 0 additions & 34 deletions build-tools/test/callback/function_test_callback.py

This file was deleted.

51 changes: 0 additions & 51 deletions build-tools/test/scripts/check_function_result.py

This file was deleted.

This file was deleted.

33 changes: 0 additions & 33 deletions build-tools/test/scripts/diff_function_test_result.py

This file was deleted.

26 changes: 0 additions & 26 deletions build-tools/test/scripts/diff_result.py

This file was deleted.

44 changes: 0 additions & 44 deletions build-tools/test/scripts/exec_all_functions.sh

This file was deleted.

Loading

0 comments on commit a7cd1a6

Please sign in to comment.