Skip to content

Reorganize test folders#16

Open
ranechita wants to merge 140 commits intomasterfrom
reorganize_tests
Open

Reorganize test folders#16
ranechita wants to merge 140 commits intomasterfrom
reorganize_tests

Conversation

@ranechita
Copy link
Copy Markdown

With the way tests are currently organized in folders, the code in setup_env.sh, config.sh, lib/production.sh, etc was mostly duplicated in every production test folder, with very few additions and modifications. All the production scripts were moved to a single folder main_tests, which contains all the common files and device specific folders only for scripts that are particular for a certain setup.

The setup_env script is run with a BOARD parameter, based on which the pi is configured specifically for the chosen board.
The changes were tested with 2 different setups (synchrona and adrv9361) and the overall functionality and user experience is the same.

Waiting for suggestions for naming or any further structure related changes.

@ranechita ranechita self-assigned this Apr 4, 2022
@ranechita ranechita requested review from dbogdan and mhennerich April 4, 2022 09:05
frequency and peaks for a measured signal.

Signed-off-by: Alexandra Trifan <Alexandra.Trifan@analog.com>
@ranechita ranechita force-pushed the reorganize_tests branch 5 times, most recently from 6ab7adc to 74fb9fc Compare April 27, 2022 09:39
@ranechita ranechita force-pushed the reorganize_tests branch from 74fb9fc to bde3ad0 Compare May 2, 2022 08:25
@tachicialex
Copy link
Copy Markdown

tachicialex commented May 26, 2022

Can you please upload the rpi-ad9545-hmc7044 devicetree's sources (all 3 of them)? Also, maybe instead of using uploaded binaries you can use dtc to compile them on the fly.

@ranechita ranechita force-pushed the reorganize_tests branch 2 times, most recently from 6a4c33a to 7c11f0e Compare June 2, 2022 12:39
Test output frequencies one by one.

Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com>
ranechita added 13 commits June 2, 2022 18:07
Added scripts for testing inputs of hmc and
ad9545.

Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com>
Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com>
Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com>
Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com>
Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com>
Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com>
Added one script to call all the other
which run on synchrona.

Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com>
Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com>
Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com>
Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com>
Added the overlays for the test cases in the test folder.

Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com>
Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com>
Signed-off-by: Ramona Alexandra Nechita <ramona.nechita@analog.com>
constmonica and others added 25 commits July 15, 2025 15:19
Signed-off-by: Monica Constandachi <Monica.Constandachi@analog.com>
Signed-off-by: Monica Constandachi <Monica.Constandachi@analog.com>
Signed-off-by: Monica Constandachi <Monica.Constandachi@analog.com>
Signed-off-by:Monica Constandachi<monica.constandachi@analog.com>
Signed-off-by: Monica Constandachi <monica.constandachi@analog.com>
Signed-off-by: Monica Constandachi <monica.constandachi@analog.com>
Signed-off-by: Monica Constanddachi <monica.constandachi@analog.com>
Signed-off-by: Monica Constandachi <monica.constandachi@analog.com>
Aids in easier diffing & conflict resolution between revisions.

Signed-off-by: Ioan Dragomir <ioan.dragomir@analog.com>
Signed-off-by: Ioan Dragomir <ioan.dragomir@analog.com>
Signed-off-by: Ioan Dragomir <ioan.dragomir@analog.com>
Setup:
* Install Docker
* Build & install Openocd with support for MAX32xxx ICs
* Install Ubltools (requires GITHUB_TOKEN variable to be set)
* Download zephyr toolchain
* Build docker image with ROS 2 automated test (see adrd3161_tests)

Runtime:
* Use ublcli to bootstrap TMC9660
* Use zephyr gdb to modify firmware with serial number
* Use openocd to write MAX32662 firmware
* Run docker container with tests and report any errors

Signed-off-by: Ioan Dragomir <ioan.dragomir@analog.com>
* Flush out initial UART garbage from signal bounce when connecting the probe
* Exit bootstrap mode on a successful OTP write

Signed-off-by: Ioan Dragomir <ioan.dragomir@analog.com>
- Update telemetry instalation and add cryptography version update to avoid dependency version errors
- Change default Python version to being system appropriate
- Update libiio installation steps

Signed-off-by: Evelyn Plesca <evelyn-iulia.plesca@analog.com>
Signed-off-by: Cristina Suteu <cristina.suteu@analog.com>
- Modify pip installation test based on debian versions
- Setup network using DHCP or Network Manager based on the Kuiper version used to match distro preferences

Signed-off-by: Evelyn Plesca <evelyn-iulia.plesca@analog.com>
Signed-off-by:Monica Constandachi <monica.constandachi@analog.com>
- Add config files used in firmware application
- Apply firmware and test RX TX LED blink
- Apply testing firmware that allows slcan to work
- Initialize CAN protocol, test CAN dump, CAN RX and TX
- Test whether LED set on GPIO 24 has turned ON
- Test the presence of measurements on the ADIS16470

Signed-off-by: Evelyn Plesca <evelyn-iulia.plesca@analog.com>
Signed-off-by: Evelyn Plesca <evelyn-iulia.plesca@analog.com>
Signed-off-by: Evelyn Plesca <evelyn-iulia.plesca@analog.com>
- Automatically add overlays in the /boot/config.txt file
- Update open ocd setup steps by adding necessary dependency in the installation steps
- Fix misspelling

Signed-off-by: Evelyn Plesca <evelyn-iulia.plesca@analog.com>
Signed-off-by: Cristina Suteu <cristina.suteu@analog.com>
Signed-off-by: Monica Constandachi <monica.constandachi@analog.com>
Signed-off-by: Monica Constandachi <Monica.Constandachi@analog.com>
Signed-off-by: Monica Constandachi <Monica.Constandachi@analog.com>
Signed-off-by: constmonica <Monica.Constandachi@analog.com>
Signed-off-by: Monica Constandachi <Monica.Constandachi@analog.com>
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.

7 participants