From 4330bc108964fcee9829c7c61abaeef774fabe8e Mon Sep 17 00:00:00 2001 From: Matthew Kilgore Date: Thu, 28 Apr 2022 19:34:11 -0400 Subject: [PATCH] Run tests as part of CI --- .github/workflows/ci.yml | 5 +++++ tests/.gitignore | 1 + tests/run_tests.sh | 4 ++++ 3 files changed, 10 insertions(+) create mode 100755 tests/run_tests.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c422d9d57..9c90ccdfe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,6 +73,10 @@ jobs: - name: Print QB64 Version run: ./qb64 -? + - name: Test + shell: bash + run: tests/run_tests.sh + - name: Create QB64 Artifact shell: bash run: .ci/make-dist.sh ${{ matrix.os }} @@ -96,6 +100,7 @@ jobs: with: name: qb64-${{ matrix.prefix }}-${{ matrix.platform }} path: | + tests/results/ qb64_win-x86.7z qb64_win-x64.7z qb64_lnx.tar.gz diff --git a/tests/.gitignore b/tests/.gitignore index 98dce6bc9..3a483db19 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -1 +1,2 @@ !*.bas +results/ diff --git a/tests/run_tests.sh b/tests/run_tests.sh new file mode 100755 index 000000000..c1a5926f1 --- /dev/null +++ b/tests/run_tests.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +./tests/assert.sh ./tests/compile_tests.sh ./qb64 +./tests/assert.sh ./tests/qbasic_tests.sh ./qb64