We're going to use common-artifacts. So, add common-artifacts
compiler/q-implant/tests/test.lst
Add recipe to proceed q-implant with addval command
compiler/q-implant/tests/CMakeLists.txt
Add q_implant_test
compiler/q-implant/tests/q-implant.sh
Define unit tests sequence
compiler/q-implant/tests/test_utils.py
Write the code to extract qparams.
(qparams consists of qparam.json and .npy files)
compiler/q-implant/tests/q_implant_test.py
Import test_utils.py to extract qparams
Proceed to q_implant
If there is a problem in progress, fail the test with the quit(255).
If it works well, pass the test with the quit(0).
We will write the above process to "draft PR" soon.
Result
During the nncc test, q_implant_test is added as the 100th test.
The files used in the test are stored in the
build/compiler/q-implant/recipe-name with qparams(qparam.json + .npy) and output.circle.
Question
If we proceed with the method introduced above, q-implant-test will be added to the nncc test, can we do that?
We are thinking of tests that check if qparams are generated correctly and output.circle is generated correctly.
Are there any additional tests to consider?
for 11254 draft 11530 (이건 # 달면 Samsung ONE 에도 생겨서 지금은 # 뺐습니다)
What
Let's develop the
q-implant-test
, unit tests of the q-implant module.Why
Progress
compiler/q-implant/CMakeLists.txt
add_subdirectory(tests)
compiler/q-implant/requires.cmake
common-artifacts
. So, addcommon-artifacts
compiler/q-implant/tests/test.lst
addval
commandcompiler/q-implant/tests/CMakeLists.txt
q_implant_test
compiler/q-implant/tests/q-implant.sh
compiler/q-implant/tests/test_utils.py
compiler/q-implant/tests/q_implant_test.py
test_utils.py
to extract qparamsq_implant
quit(255)
.quit(0)
.We will write the above process to "draft PR" soon.
Result
build/compiler/q-implant/recipe-name
with qparams(qparam.json + .npy) and output.circle.Question
q-implant-test
will be added to the nncc test, can we do that?qparams
are generated correctly andoutput.circle
is generated correctly. Are there any additional tests to consider?