mirror of
https://git.tuxpa.in/a/code-server.git
synced 2024-12-28 13:15:25 +00:00
20 lines
385 B
Bash
20 lines
385 B
Bash
|
#!/usr/bin/env sh
|
||
|
# test.sh -- Simple build test.
|
||
|
|
||
|
set -eu
|
||
|
|
||
|
main() {
|
||
|
cd "$(dirname "$0")/.."
|
||
|
|
||
|
# The main goal here is to ensure that the build fully completed and the
|
||
|
# result looks usable.
|
||
|
version=$(node ./build/out/node/entry.js --version --json)
|
||
|
echo "Got '$version' for the version"
|
||
|
case $version in
|
||
|
"{ codeServer":*) exit 0 ;;
|
||
|
*) exit 1 ;;
|
||
|
esac
|
||
|
}
|
||
|
|
||
|
main "$@"
|