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

Improve TM testing support infrastructure #1353

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Didainius
Copy link
Collaborator

@Didainius Didainius commented Nov 15, 2024

  • Improve scripts for TM test support - make testtm-acc, testtm-acc-coverage, make testtm-binary, make testtm-binary-prepare
  • Adjusts TESTING.md for TM testing
  • Splits sample test configs to sample_vcd_test_config.json for VCD and sample_vcd_test_config_tm.json for TM

@@ -1,4 +1,4 @@
//go:build binary
//go:build binary && !tm
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The test templates files that are in vcd/test-templates are not compatible with TM therefore this is not being executed when tm tag is specified

@@ -99,11 +99,11 @@ function short_test {
fi
if [ -n "$VERBOSE" ]
then
echo "VCD_SHORT_TEST=1 go test -race -tags 'functional $MORE_TAGS' -v -timeout 5m"
echo "VCD_SHORT_TEST=1 go test -race -tags '$MORE_TAGS' -v -timeout 5m"
Copy link
Collaborator Author

@Didainius Didainius Nov 15, 2024

Choose a reason for hiding this comment

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

functional tag was default until TM, but this tag is now moved upstream to the function caller and it should be included within $MORE_TAGS in the caller. This allows for isolating functional tag that is not to be used with TM

Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
@Didainius Didainius marked this pull request as ready for review November 15, 2024 13:56
@Didainius Didainius changed the title Improve TM binary test support Improve TM testing support infrastructure Nov 15, 2024
Copy link
Collaborator

@adambarreiro adambarreiro left a comment

Choose a reason for hiding this comment

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

LGTM, will give it a try and then approve

.changes/v4.0.0/1353-notes.md Outdated Show resolved Hide resolved
Signed-off-by: Dainius Serplis <[email protected]>
TESTING.md Outdated Show resolved Hide resolved
TESTING.md Outdated Show resolved Hide resolved
TESTING.md Outdated Show resolved Hide resolved
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

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

Very helpful!

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.

3 participants