Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify tests directory structure #83

Merged
merged 1 commit into from
Jan 7, 2020

Conversation

hug-dev
Copy link
Member

@hug-dev hug-dev commented Dec 20, 2019

In order to execute the tests under different single providers, under
all providers and for cross-compilation, split the tests directory into
sub-directories. Each one contains a specific configuration file to run
the tests under.
Please check issue #69 for details.

Signed-off-by: Hugues de Valon hugues.devalon@arm.com

@hug-dev hug-dev added the enhancement New feature or request label Dec 20, 2019
@hug-dev hug-dev self-assigned this Dec 20, 2019
Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌


#####################
# Integration tests #
#####################
RUST_BACKTRACE=1 RUST_LOG=info cargo run &
RUST_BACKTRACE=1 cargo run $FEATURES \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there no need to sleep after this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, because we do a cargo build before so that is alsmost instantaneous 😸

listener_type = "DomainSocket"
timeout = 200 # in milliseconds

# No providers are compiled in for the cross-compilation example.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this is the case - the providers are compiled, this config file is just for actually running the service, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well as of now, the cross-compilation test only compiles the service for Aarch64 and does not even execute any test, so this file is useless. I will remove it.

RUN apt-get update && \
apt-get install -y wget automake autoconf libtool pkg-config && \
apt-get install -y curl libssl-dev
# These libraries are needed for bindgen as it uses libclang.so
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

? Needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will remove that

# It is meant to be executed inside one of the container which Dockerfiles
# are in tests/per_provider/provider_cfg/*/.
#
# Usage: ./tests/per_provider/ci.sh PROVIDER_NAME
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth adding a check at the beginning of scripts that require an argument and print something like this if that argument wasn't provided

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! Will add.

In order to execute the tests under different single providers, under
all providers and for cross-compilation, split the tests directory into
sub-directories. Each one contains a specific configuration file to run
the tests under.
Please check issue parallaxsecond#69 for details.

Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!!

@hug-dev hug-dev merged commit 9f7b982 into parallaxsecond:master Jan 7, 2020
@hug-dev hug-dev deleted the new-test-structure branch January 7, 2020 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants