-
Notifications
You must be signed in to change notification settings - Fork 1
/
build_itest.sh
executable file
·31 lines (26 loc) · 1.15 KB
/
build_itest.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# Build a PICO-8 cartridge for the integration tests.
# This is essentially a proxy script for pico-boots/scripts/build_game.sh with the right parameters.
# Extra options are passed to build_cartridge.sh (with $@).
# This is useful in particular for --symbols.
# Configuration: paths
picoboots_scripts_path="$(dirname "$0")/pico-boots/scripts"
game_src_path="$(dirname "$0")/src"
data_path="$(dirname "$0")/data"
build_output_path="$(dirname "$0")/build"
# Configuration: cartridge
author="hsandt"
title="pico-boots demo itests (all)"
cartridge_name="picoboots_demo_itest_all"
config='itest'
symbols='assert,log,visual_logger,tuner,profiler,mouse,itest'
# Build from itest main for all itests
"$picoboots_scripts_path/build_cartridge.sh" \
"$game_src_path" itest_main.lua itests \
-d "$data_path/data.p8" -M "$data_path/metadata.p8" \
-a "$author" -t "$title" \
-p "$build_output_path" \
-o "${cartridge_name}" \
-c "$config" \
-s "$symbols" \
--minify-level 2