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

[RSDK-8848] - Test improvements bucket #16

Merged
merged 6 commits into from
Sep 30, 2024
Merged

[RSDK-8848] - Test improvements bucket #16

merged 6 commits into from
Sep 30, 2024

Conversation

seanavery
Copy link
Collaborator

@seanavery seanavery commented Sep 30, 2024

Description

  • Moved from using t.Fatal to viam test package.
  • Fixed segfault issue related to encoding with fake cam dependency.
  • Added a cleanup utility to delete temporary storage files between viam-server runs.
  • Added real-time async save test case.
  • Added checks to to error message strings.
  • Added checks to make sure that video clips are playable.

I did not add in struct template loops as it did not make sense for config tests since template varies across tests.

@seanavery seanavery changed the title [RSDK-8848] - Test improvements bucket. [RSDK-8848] - Test improvements bucket Sep 30, 2024
@@ -83,6 +83,14 @@ lint: tool-install $(FFMPEG_BUILD)
CGO_CFLAGS=$(CGO_CFLAGS) GOFLAGS=$(GOFLAGS) $(TOOL_BIN)/golangci-lint run -v --fix --config=./etc/.golangci.yaml

test: $(BIN_OUTPUT_PATH)/video-store
ifeq ($(shell which ffmpeg > /dev/null 2>&1; echo $$?), 1)
ifeq ($(SOURCE_OS),linux)
sudo apt update && sudo apt install -y ffmpeg
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Adding separate FFmpeg installation here to get binary for playable checks.

@seanavery seanavery merged commit 8d5c497 into main Sep 30, 2024
4 checks passed
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.

2 participants