Hi, I'm trying to get started with unit testing in Zephyr by running the sample in samples/subsys/testsuite/integration. I'm using ncs 1.7.1.
I copied the sample to my workspace and when I try to run it using ~/workspace/ncs/zephyr/scripts/twister -T ./tests/sample_dir
I get a cmake failue FileNotFoundError: [Errno 2] No such file or directory: '/...../twister-out/native_posix/testing.ztest/build.log' and indeed there is no 'native_posix' directory in the 'twister-out' directory
Can you help me figure out the problem?
full trace:
ERROR - Cmake build failure: /home/dorsadeh/workspace/canary-ep2/tests/demo for native_posix
Process Process-2:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/dorsadeh/workspace/ncs/zephyr/scripts/pylib/twister/twisterlib.py", line 3350, in pipeline_mgr
pb.process(pipeline, done_queue, task, lock, results)
File "/home/dorsadeh/workspace/ncs/zephyr/scripts/pylib/twister/twisterlib.py", line 2302, in process
res = self.cmake()
File "/home/dorsadeh/workspace/ncs/zephyr/scripts/pylib/twister/twisterlib.py", line 2541, in cmake
res = self.run_cmake(args)
File "/home/dorsadeh/workspace/ncs/zephyr/scripts/pylib/twister/twisterlib.py", line 2067, in run_cmake
with open(os.path.join(self.build_dir, self.log), "a") as log:
FileNotFoundError: [Errno 2] No such file or directory: '/...../twister-out/native_posix/testing.ztest/build.log'