mirror of
https://github.com/luxfi/dex.git
synced 2026-09-24 00:26:31 +00:00
Apply consistent naming conventions throughout: - Standardize product name to "LX" in documentation - Update README files and API documentation - Apply linter fixes to all source files - Update Hummingbot connector documentation
64 lines
1.4 KiB
Bash
Executable File
64 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# LX - Final Verification Script
|
|
# Ensures everything builds, tests pass, and benchmarks work
|
|
|
|
set -e
|
|
|
|
echo "========================================="
|
|
echo " LX Complete Verification"
|
|
echo "========================================="
|
|
echo ""
|
|
|
|
# Colors
|
|
GREEN='\033[0;32m'
|
|
RED='\033[0;31m'
|
|
NC='\033[0m'
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
# 1. Clean
|
|
echo "๐งน Cleaning..."
|
|
make clean > /dev/null 2>&1
|
|
echo -e "${GREEN}โ
Clean complete${NC}"
|
|
|
|
# 2. Build
|
|
echo "๐จ Building..."
|
|
if make build > /dev/null 2>&1; then
|
|
echo -e "${GREEN}โ
Build successful${NC}"
|
|
else
|
|
echo -e "${RED}โ Build failed${NC}"
|
|
exit 1
|
|
fi
|
|
|
|
# 3. Test core packages
|
|
echo "๐งช Testing..."
|
|
cd backend
|
|
if go test ./pkg/orderbook/... ./pkg/lx/... > /dev/null 2>&1; then
|
|
echo -e "${GREEN}โ
Tests passed${NC}"
|
|
else
|
|
echo -e "${RED}โ Tests failed${NC}"
|
|
exit 1
|
|
fi
|
|
cd ..
|
|
|
|
# 4. Benchmark
|
|
echo "โก Running benchmark..."
|
|
if timeout 30s make bench > /dev/null 2>&1; then
|
|
echo -e "${GREEN}โ
Benchmarks complete${NC}"
|
|
else
|
|
echo -e "${RED}โ Benchmark failed or timed out${NC}"
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
echo "========================================="
|
|
echo -e "${GREEN} โ
ALL SYSTEMS OPERATIONAL${NC}"
|
|
echo "========================================="
|
|
echo ""
|
|
echo "Summary:"
|
|
echo " โข Build: โ
Working"
|
|
echo " โข Tests: โ
Passing"
|
|
echo " โข Bench: โ
Running"
|
|
echo ""
|
|
echo "The codebase is fully functional!" |