Cloudflare Pages / Build and verify the site (push) Successful in 3m29s
Use the verified dependency lock across native hosts and bundled apps. Preserve saved styles, local app reactivation, and offline packages while integrating the latest practice, Habits, Lumi, and figure preview updates.
140 lines
5.7 KiB
Makefile
140 lines
5.7 KiB
Makefile
# App package tests: apps, node apps, codecs and package releases.
|
|
|
|
.PHONY: app-codec-check
|
|
app-codec-check:
|
|
python3 scripts/generate-app-codec.py --check
|
|
|
|
.PHONY: apps-controller-zi-test
|
|
apps-controller-zi-test: $(ZIRAN_BIN) $(ZIRAN_BUILD_DIR)/libziran.a $(APPS_BUNDLE)
|
|
sh tests/apps_controller_zi_test.sh $(abspath $(ZIRAN_BIN)) $(abspath $(ZIRAN_BUILD_DIR)/libziran.a) $(abspath $(APPS_BUNDLE))
|
|
|
|
.PHONY: apps-test
|
|
apps-test: library-reader-test apps $(ZIRAN_BUILD_DIR)/libziran.a $(LIBOQS_A) $(SQLITE_SRC) $(SQLITE_AMALGAMATION_H)
|
|
sh tests/apps_zi_test.sh $(ZIRAN_BIN) $(LIBOQS_A)
|
|
|
|
.PHONY: apps-platform-test apps-android-probe
|
|
apps-platform-test: apps $(ZIRAN_BUILD_DIR)/libziran.a $(SQLITE_SRC) $(LIBOQS_A)
|
|
sh tests/apps_platform_test.sh $(ZIRAN_BIN) native $(LIBOQS_A) $(SQLITE_SRC)
|
|
|
|
apps-android-probe: apps
|
|
sh tests/apps_platform_test.sh $(ZIRAN_BIN) android
|
|
|
|
# Optional interoperability check against the current Kryon and Werkzeug builds.
|
|
.PHONY: portable-apps-ui-test
|
|
portable-apps-ui-test: $(TARGET) apps
|
|
@test -n "$(APP_PLAYER)" -a -n "$(WERK_BINARY)" -a -n "$(CALCULATOR_BUNDLE)" || { \
|
|
echo 'Set APP_PLAYER, WERK_BINARY and CALCULATOR_BUNDLE to the tested builds.' >&2; exit 2; }
|
|
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS -u SESSION_MANAGER \
|
|
python3 tests/portable_apps_ui_test.py --inbe $(abspath $(TARGET)) \
|
|
--player "$(APP_PLAYER)" --werk "$(WERK_BINARY)" \
|
|
--diary $(abspath build/apps/diary.zx) --calculator "$(CALCULATOR_BUNDLE)"
|
|
|
|
.PHONY: node-app-records-test
|
|
|
|
.PHONY: node-app-loading-test
|
|
node-app-loading-test: $(ZIRAN_BIN) $(ZIRAN_BUILD_DIR)/libziran.a
|
|
sh tests/node_app_loading_test.sh $(ZIRAN_BIN) $(ZIRAN_BUILD_DIR)/libziran.a
|
|
|
|
# Apps location and node snapshot checks against the locked Apps and Crypto packages.
|
|
.PHONY: app-locations-test node-app-snapshot-test
|
|
app-locations-test: $(ZIRAN_BIN)
|
|
python3 tests/app_locations_test.py --ziran '$(abspath $(ZIRAN_BIN))' \
|
|
--toolchain '$(abspath $(ZIRAN_DIR))' --apps '$(abspath build/packages/apps)' \
|
|
--mesh-client '$(abspath build/packages/mesh-client)'
|
|
|
|
node-app-snapshot-test: apps $(ZIRAN_BIN) $(ZIRAN_BUILD_DIR)/libziran.a $(SQLITE_SRC) $(LIBOQS_A)
|
|
python3 tests/node_app_snapshot_test.py --ziran '$(abspath $(ZIRAN_BIN))' \
|
|
--runtime '$(abspath $(ZIRAN_BUILD_DIR)/libziran.a)' --controller '$(abspath $(APPS_BUNDLE))'
|
|
.PHONY: media-store-test media-metadata-test entity-photos-test
|
|
# The account's media library, which Diary and the node's Photos share.
|
|
media-metadata-test: $(ZI2C_BIN)
|
|
sh tests/media_metadata_test.sh $(ZIRAN_BUILD_DIR)/bin
|
|
|
|
media-store-test: $(ZI2C_BIN) $(SQLITE_SRC) $(LIBOQS_A)
|
|
sh tests/media_store_zi_test.sh $(ZIRAN_BIN) $(LIBOQS_A)
|
|
|
|
.PHONY: media-compression-test
|
|
media-compression-test: $(ZI2C_BIN) $(SQLITE_SRC) $(LIBOQS_A) $(AUDIO_MP3_A) $(AUDIO_VORBIS_LIBS) $(WEBP_A) $(AVIF_A) $(AOM_A) $(NATIVE_AVIF_LIBRARY)
|
|
AVIF_A="$(abspath $(AVIF_A))" AOM_A="$(abspath $(AOM_A))" \
|
|
KRYON_AVIF_LIBRARY="$(abspath $(NATIVE_AVIF_LIBRARY))" \
|
|
sh tests/media_compression_zi_test.sh $(ZIRAN_BIN) $(LIBOQS_A)
|
|
|
|
test: media-compression-test
|
|
|
|
# A 2.1.43 profile's Diary and library photos move to the account's entity
|
|
# data, and old copies go only once the node has the new ones whole.
|
|
entity-photos-test: $(ZI2C_BIN) $(SQLITE_SRC) $(LIBOQS_A)
|
|
sh tests/entity_photos_zi_test.sh $(ZIRAN_BIN) $(LIBOQS_A)
|
|
|
|
node-app-records-test: $(ZI2C_BIN)
|
|
sh tests/node_app_records_zi_test.sh $(ZIRAN_BUILD_DIR)/bin
|
|
|
|
.PHONY: package-release-test
|
|
package-release-test: apps $(ZIRAN_BUILD_DIR)/libziran.a
|
|
python3 tests/package_release_test.py
|
|
|
|
# This build runs the packages the node serves, and the last released app runs
|
|
# each new package that declares a host interface it has.
|
|
.PHONY: package-compat-test
|
|
package-compat-test: $(TARGET) $(APP_BUNDLES) $(INBE_BUNDLE)
|
|
python3 tests/package_compat_fetch_test.py
|
|
python3 tests/package_compat_test.py $(abspath $(TARGET))
|
|
|
|
.PHONY: package-version-test
|
|
package-version-test:
|
|
python3 scripts/check-package-versions.py
|
|
python3 tests/package_versions_test.py
|
|
|
|
.PHONY: package-workflow-test
|
|
package-workflow-test:
|
|
python3 tests/package_workflow_test.py
|
|
|
|
.PHONY: node-app-games-test
|
|
node-app-games-test:
|
|
python3 tests/node_app_games_test.py
|
|
|
|
.PHONY: small-app-bundling-test
|
|
small-app-bundling-test:
|
|
python3 tests/small_app_bundling_test.py
|
|
|
|
.PHONY: package-manifest-test
|
|
package-manifest-test:
|
|
python3 tests/package_manifests_test.py
|
|
|
|
.PHONY: package-upload-test
|
|
package-upload-test:
|
|
python3 tests/package_upload_test.py
|
|
python3 tests/package_content_repair_test.py
|
|
|
|
.PHONY: package-receiver-test
|
|
package-receiver-test:
|
|
python3 tests/package_receiver_test.py
|
|
|
|
# Radio's installable bundle, live decoder and browser audio effect.
|
|
.PHONY: radio-test radio-app-test radio-native-test radio-web-test radio-android-test
|
|
radio-app-test: $(ZIRAN_BIN) $(ZIRAN_BUILD_DIR)/libziran.a
|
|
sh tests/radio_app_test.sh $(ZIRAN_BIN) $(ZIRAN_DIR)/std $(KRYON_DIR)/src/ui
|
|
|
|
radio-native-test: $(ZI2C_BIN) $(AUDIO_MP3_A) $(AUDIO_VORBIS_LIBS) $(AUDIO_OPUS_A)
|
|
sh tests/radio_native_test.sh $(ZIRAN_BUILD_DIR)/bin $(abspath $(AUDIO_MP3_A))
|
|
@nm -g $(AUDIO_MP3_A) | rg -q ' T drmp3dec_decode_frame$$'
|
|
|
|
radio-web-test:
|
|
$(JS_RUNTIME) tests/radio_web_test.mjs
|
|
|
|
.PHONY: radio-threejs-test
|
|
radio-threejs-test:
|
|
$(JS_RUNTIME) tests/radio_threejs_test.mjs
|
|
|
|
radio-android-test:
|
|
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS \
|
|
$(ANDROID_GRADLE_ENV) YUE_DESKTOP_RECOVERY=0 $(GRADLE) --no-daemon \
|
|
--project-dir tests/android-text-selection test --tests xyz.waozi.inbe.RadioPlayerTest
|
|
|
|
radio-test: radio-app-test radio-native-test radio-web-test radio-android-test
|
|
test: radio-app-test radio-native-test radio-web-test
|
|
|
|
.PHONY: library-reader-test
|
|
library-reader-test: $(ZIRAN_BIN)
|
|
sh tests/library_reader_test.sh $(ZIRAN_BIN)
|