You've already forked glider
mirror of
https://gitlab.com/zephray/glider.git
synced 2026-08-06 03:30:32 +00:00
75 lines
1.7 KiB
Bash
Executable File
75 lines
1.7 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
USER_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
BUILD_DIR="${TMPDIR:-/tmp}/glider-fw-host-tests"
|
|
|
|
mkdir -p "$BUILD_DIR"
|
|
|
|
cc="${CC:-gcc}"
|
|
cflags=(
|
|
-DGLIDER_HOST_TEST
|
|
-std=c11
|
|
-Wall
|
|
-Wextra
|
|
-Werror
|
|
-I"$USER_DIR"
|
|
)
|
|
|
|
"$cc" "${cflags[@]}" \
|
|
"$USER_DIR/config.c" \
|
|
"$USER_DIR/ui_menu.c" \
|
|
"$SCRIPT_DIR/test_config_menu.c" \
|
|
-o "$BUILD_DIR/test_config_menu"
|
|
|
|
"$cc" "${cflags[@]}" \
|
|
"$USER_DIR/osd_font.c" \
|
|
"$SCRIPT_DIR/test_osd_font.c" \
|
|
-o "$BUILD_DIR/test_osd_font"
|
|
|
|
"$cc" "${cflags[@]}" \
|
|
"$USER_DIR/tone_lut.c" \
|
|
"$SCRIPT_DIR/test_tone_lut.c" \
|
|
-o "$BUILD_DIR/test_tone_lut"
|
|
|
|
"$cc" "${cflags[@]}" \
|
|
"$USER_DIR/autoclear.c" \
|
|
"$SCRIPT_DIR/test_autoclear.c" \
|
|
-o "$BUILD_DIR/test_autoclear"
|
|
|
|
"$cc" "${cflags[@]}" \
|
|
"$USER_DIR/numfmt.c" \
|
|
"$SCRIPT_DIR/test_numfmt.c" \
|
|
-o "$BUILD_DIR/test_numfmt"
|
|
|
|
"$cc" "${cflags[@]}" \
|
|
"$USER_DIR/power_state.c" \
|
|
"$SCRIPT_DIR/test_power_state.c" \
|
|
-o "$BUILD_DIR/test_power_state"
|
|
|
|
"$cc" "${cflags[@]}" \
|
|
"$USER_DIR/wake_event_latch.c" \
|
|
"$SCRIPT_DIR/test_wake_event_latch.c" \
|
|
-o "$BUILD_DIR/test_wake_event_latch"
|
|
|
|
"$cc" "${cflags[@]}" \
|
|
"$USER_DIR/fpga_spi_policy.c" \
|
|
"$SCRIPT_DIR/test_fpga_spi_policy.c" \
|
|
-o "$BUILD_DIR/test_fpga_spi_policy"
|
|
|
|
"$cc" "${cflags[@]}" \
|
|
"$USER_DIR/edid.c" \
|
|
"$SCRIPT_DIR/test_edid.c" \
|
|
-o "$BUILD_DIR/test_edid"
|
|
|
|
"$BUILD_DIR/test_config_menu"
|
|
"$BUILD_DIR/test_osd_font"
|
|
"$BUILD_DIR/test_tone_lut"
|
|
"$BUILD_DIR/test_autoclear"
|
|
"$BUILD_DIR/test_numfmt"
|
|
"$BUILD_DIR/test_power_state"
|
|
"$BUILD_DIR/test_wake_event_latch"
|
|
"$BUILD_DIR/test_fpga_spi_policy"
|
|
"$BUILD_DIR/test_edid"
|