25
README.md
25
README.md
@@ -36,20 +36,20 @@ Mô phỏng cấu hình controller tối thiểu SICK (Dual-Core, 4 GB) trên m
|
||||
|
||||
```bash
|
||||
cd /home/robotics/RD/Test3
|
||||
sudo docker compose up --build -d
|
||||
# hoặc: sudo ./scripts/docker-up.sh
|
||||
./scripts/lm.sh docker up
|
||||
# hoặc: sudo docker compose up --build -d
|
||||
```
|
||||
|
||||
Kiểm tra giới hạn:
|
||||
|
||||
```bash
|
||||
sudo ./scripts/docker-stats.sh
|
||||
./scripts/lm.sh docker stats
|
||||
```
|
||||
|
||||
Dừng:
|
||||
|
||||
```bash
|
||||
sudo docker compose down
|
||||
./scripts/lm.sh docker down
|
||||
```
|
||||
|
||||
Dữ liệu layout vẫn lưu tại `data/` trên host (volume mount).
|
||||
@@ -58,8 +58,7 @@ Kiểm tra tài nguyên trong container:
|
||||
|
||||
```bash
|
||||
# Vào shell container
|
||||
sudo docker exec -it lidar-manager-limited bash
|
||||
# hoặc: sudo ./scripts/docker-shell.sh
|
||||
./scripts/lm.sh docker shell
|
||||
|
||||
# Trong container, thử:
|
||||
htop # CPU/RAM (q để thoát)
|
||||
@@ -70,8 +69,8 @@ cat /proc/meminfo | head
|
||||
```
|
||||
|
||||
```bash
|
||||
sudo ./scripts/docker-htop.sh
|
||||
sudo ./scripts/docker-stats.sh
|
||||
./scripts/lm.sh docker htop
|
||||
./scripts/lm.sh docker stats
|
||||
```
|
||||
|
||||
## Test tự động
|
||||
@@ -80,8 +79,8 @@ Chạy toàn bộ: unit C++ (GTest), API smoke (`curl`), pytest integration.
|
||||
|
||||
```bash
|
||||
cd /home/robotics/RD/Test3
|
||||
chmod +x scripts/run-tests.sh scripts/api-smoke.sh
|
||||
./scripts/run-tests.sh
|
||||
chmod +x scripts/lm.sh scripts/test/*.sh
|
||||
./scripts/lm.sh test run
|
||||
```
|
||||
|
||||
Chỉ unit test C++:
|
||||
@@ -96,7 +95,7 @@ Chỉ API smoke (server đang chạy, dùng fixture `tests/fixtures/data/`):
|
||||
|
||||
```bash
|
||||
./build/lidar_manager_web 18080 www tests/fixtures/data/state.json &
|
||||
./scripts/api-smoke.sh http://127.0.0.1:18080
|
||||
./scripts/lm.sh test smoke http://127.0.0.1:18080
|
||||
```
|
||||
|
||||
Fixture mission id mặc định: `testmission00001` (`tests/fixtures/data/missions.json`).
|
||||
@@ -104,8 +103,8 @@ Fixture mission id mặc định: `testmission00001` (`tests/fixtures/data/missi
|
||||
Benchmark hiệu năng trong container (cần `docker compose up -d`):
|
||||
|
||||
```bash
|
||||
chmod +x scripts/docker-benchmark.sh
|
||||
sudo ./scripts/docker-benchmark.sh
|
||||
./scripts/lm.sh docker bench
|
||||
# hoặc chỉ HTTP: ./scripts/lm.sh bench http
|
||||
```
|
||||
|
||||
CI: GitHub Actions workflow `.github/workflows/test.yml`.
|
||||
|
||||
Reference in New Issue
Block a user