10 lines
323 B
Bash
Executable File
10 lines
323 B
Bash
Executable File
#!/bin/bash
|
|
# run_zip_tests.sh — 宿主 gcc 构建并运行 zip 容器读取器测试(纯 C + -lz,无 SDK)。
|
|
set -e
|
|
cd "$(dirname "$0")/.."
|
|
trap 'rm -f test/test_zip' EXIT
|
|
gcc -Wall -Wextra -Werror -O1 -I. \
|
|
test/test_zip.c logic/zip/zip.c \
|
|
-lz -o test/test_zip
|
|
./test/test_zip ./test/make_zip_samples.py
|