Skip to content

Add temporary directory handling to ctest - #741

Closed
GMNGeoffrey wants to merge 2 commits into
iree-org:masterfrom
GMNGeoffrey:ctest
Closed

GMNGeoffrey wants to merge 2 commits into
iree-org:masterfrom
GMNGeoffrey:ctest

Conversation

@GMNGeoffrey

@GMNGeoffrey GMNGeoffrey commented Feb 11, 2020 •

Copy link
Copy Markdown
Member

I tried many ways to do this natively in ctest/cmake, but none of them did what we wanted.

This runs each test through a custom shell script "run_test.sh" that sets up and tears down a temporary directory for the test.

This gets the file IO tests running on ctest and fixes the CLI smoketests locally, but not on the Kokoro VMs.

Closes #731

@GMNGeoffrey

Copy link
Copy Markdown
Member Author

Oh sad :-( these passed on my local machine. I'll add them back to the exclude for now:

The following tests FAILED:
	167 - iree_tools_test_multiple_args.mlir.test (Failed)
	168 - iree_tools_test_scalars.mlir.test (Failed)
	169 - iree_tools_test_simple.mlir.test (Failed)

@marbre

marbre commented Feb 12, 2020

Copy link
Copy Markdown
Member

The smoke tests passed on my local machine as well. Anyway, LGTM 👍

BEFORE
95% tests passed, 8 tests failed out of 174

The following tests FAILED:
4 - iree_base_file_io_test (Child aborted)
162 - iree_compiler_Translation_SPIRV_LinalgToSPIRV_test_pw_add.mlir.test (Failed)
169 - iree_tools_vm_util_test (Failed)
170 - iree_tools_test_multiple_args.mlir.test (Failed)
171 - iree_tools_test_scalars.mlir.test (Failed)
172 - iree_tools_test_simple.mlir.test (Failed)
173 - iree_samples_custom_modules_custom_modules_test (Child aborted)
174 - iree_samples_simple_embedding_simple_embedding_test (Child aborted)

AFTERWARDS
98% tests passed, 4 tests failed out of 174

The following tests FAILED:
162 - iree_compiler_Translation_SPIRV_LinalgToSPIRV_test_pw_add.mlir.test (Failed)
169 - iree_tools_vm_util_test (Failed)
173 - iree_samples_custom_modules_custom_modules_test (Failed)
174 - iree_samples_simple_embedding_simple_embedding_test (Failed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CTest: File IO tests fail because tmp directory isn't cleaned up

4 participants