refactor: move all remaining files to orig/ directory
Completed clean root directory structure: - Root now contains only: .git, .env, docs/, orig/ - Moved all remaining files and directories to orig/: - Config files (.claude, .dockerignore, .drone.yml, etc.) - All .env variants (except active .env) - Git config (.gitconfig, .github, .gitignore, etc.) - Tool configs (.golangci.yml, .revive.toml, etc.) - Documentation (*.md files, @prompts) - Build files (Dockerfiles, Makefile, go.mod, go.sum) - Docker compose files - All source directories (scripts, tests, tools, etc.) - Runtime directories (logs, monitoring, reports) - Dependency files (node_modules, lib, cache) - Special files (--delete) - Removed empty runtime directories (bin/, data/) V2 structure is now clean: - docs/planning/ - V2 planning documents - orig/ - Complete V1 codebase preserved - .env - Active environment config (not in git) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
38
orig/.opencode/scripts/test-all.sh
Executable file
38
orig/.opencode/scripts/test-all.sh
Executable file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# test-all.sh - Run comprehensive tests for OpenCode
|
||||
|
||||
echo "Running comprehensive tests for OpenCode..."
|
||||
|
||||
# Create results directory if it doesn't exist
|
||||
mkdir -p .opencode/results
|
||||
|
||||
# Run Go unit tests
|
||||
echo "Running Go unit tests..."
|
||||
go test -v ./... | tee .opencode/results/go-unit-tests.log
|
||||
|
||||
# Run Go integration tests
|
||||
echo "Running Go integration tests..."
|
||||
go test -v ./test/integration/... | tee .opencode/results/go-integration-tests.log
|
||||
|
||||
# Run Go property-based tests
|
||||
echo "Running Go property-based tests..."
|
||||
go test -v -run=Property ./... | tee .opencode/results/go-property-tests.log
|
||||
|
||||
# Run Go fuzz tests (limited time)
|
||||
echo "Running Go fuzz tests (60 seconds)..."
|
||||
timeout 60s go test -fuzz=Fuzz ./... | tee .opencode/results/go-fuzz-tests.log
|
||||
|
||||
# Run Go benchmarks
|
||||
echo "Running Go benchmarks..."
|
||||
go test -bench=. -benchmem ./... | tee .opencode/results/go-benchmarks.log
|
||||
|
||||
# Check for errors
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "All tests completed successfully!"
|
||||
echo "Results saved to .opencode/results/"
|
||||
else
|
||||
echo "Some tests failed!"
|
||||
echo "Check .opencode/results/ for details"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user