20 lines
871 B
Bash
Executable File
20 lines
871 B
Bash
Executable File
#!/bin/bash
|
|
SDL_DIR="../SDL/include/SDL3"
|
|
HEADERS=(
|
|
"SDL_assert.h" "SDL_audio.h" "SDL_blendmode.h" "SDL_camera.h"
|
|
"SDL_clipboard.h" "SDL_events.h" "SDL_filesystem.h" "SDL_gamepad.h"
|
|
"SDL_gpu.h" "SDL_haptic.h" "SDL_hints.h" "SDL_init.h" "SDL_iostream.h"
|
|
"SDL_joystick.h" "SDL_keyboard.h" "SDL_keycode.h" "SDL_locale.h"
|
|
"SDL_log.h" "SDL_messagebox.h" "SDL_metal.h" "SDL_mouse.h"
|
|
"SDL_pen.h" "SDL_pixels.h" "SDL_power.h" "SDL_properties.h"
|
|
"SDL_rect.h" "SDL_render.h" "SDL_sensor.h" "SDL_stdinc.h"
|
|
"SDL_surface.h" "SDL_thread.h" "SDL_time.h" "SDL_timer.h"
|
|
"SDL_touch.h" "SDL_version.h" "SDL_video.h" "SDL_vulkan.h"
|
|
)
|
|
|
|
for header in "${HEADERS[@]}"; do
|
|
echo "=== Testing $header ==="
|
|
zig build run -- "$SDL_DIR/$header" --generate-json="/tmp/test.json" 2>&1 | grep -E "(error|Error|Found|Successfully)" | head -5
|
|
echo ""
|
|
done
|