gnome-shell-extension-no-ov.../tests/validation/test.sh
Takao Fujiwara 4f78007f42 Impelemt CI
2024-09-06 12:12:22 +09:00

18 lines
574 B
Bash
Executable File

#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
# gjs or js115 in mozjs115-devel provides very simple validations.
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartSetup
rlRun -t "sed -e 's|resource:.*/main.js|./main.js|' /usr/share/gnome-shell/extensions/no-overview@fthx/extension.js > extension.js"
rlPhaseEnd
rlPhaseStartTest
rlRun -t "json-glib-validate /usr/share/gnome-shell/extensions/no-overview@fthx/metadata.json"
rlRun -t "gjs -m test.js"
rlPhaseEnd
rlJournalEnd