Validation scripts for the project. Run before submitting PRs.
# All tests (no Docker required for first two)
./tests/test-no-corporate.sh
./tests/test-project-structure.sh
# Requires built Docker image
./tests/test-docker-image.sh [image-name]Default image: open-computer-use:latest.
| Script | What it validates | Docker required |
|---|---|---|
test-no-corporate.sh |
No corporate/internal references leak into codebase | No |
test-project-structure.sh |
Correct directory structure (12 checks) | No |
test-docker-image.sh |
Docker image contents: npm packages, CLI tools, Python packages, Playwright, volume size, permissions | Yes |
Scans all project files against patterns in corporate-patterns.txt. Catches internal domains, hardcoded API keys, registry URLs, and service accounts that shouldn't be in open-source code.
Verifies the expected project layout: computer-use-server/, openwebui/, required files, no legacy directories, docker-compose services, .env.example variables.
Runs inside the Docker image to verify:
- Node.js CommonJS
require()and ESMimportwork - CLI tools available:
mmdc,tsc,tsx,claude - Python packages:
docx,pptx,openpyxl,playwright - npm package layout (
/home/node_modules/vs/home/assistant/) - Volume size (
/home/assistant/< 1MB — packages should be outside) - File permissions and guard files