Add a simple test

This commit is contained in:
Asher
2020-01-15 12:05:27 -06:00
parent 57425377e5
commit 62f050fda7
3 changed files with 23 additions and 5 deletions

19
scripts/test.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env sh
# test.sh -- Simple test for CI.
# We'll have more involved tests eventually. This just ensures the binary has
# been built and runs.
set -eu
main() {
cd "$(dirname "$0")/.."
version=$(./binaries/code-server* --version | head -1)
echo "Got '$version' for the version"
case $version in
*2.*-vsc1.41.1) exit 0 ;;
*) exit 1 ;;
esac
}
main "$@"