#!/bin/bash # run_tests.sh — 宿主 gcc 构建并运行图库 logic 层测试(不链 SDK、不需要设备)。 set -e cd "$(dirname "$0")/.." gcc -Wall -Wextra -O1 -I. \ test/test_library.c logic/library.c logic/reader.c \ -o test/test_library ./test/test_library