forked from PascalGameDevelopment/SDL2-for-Pascal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compile and run fptest test framework on Linux
- trigger GHAction on test branch (temporarily) - run on Linux only (temporarily) - removed old tests from workflow
- Loading branch information
1 parent
1efa7f4
commit 95d7526
Showing
1 changed file
with
10 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,14 @@ name: CI | |
|
||
on: | ||
push: | ||
branches: [ master ] | ||
branches: [ master, use-fptest ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
macos-11-big-sur: | ||
# skip job temporarily | ||
if: false | ||
runs-on: macos-11 | ||
steps: | ||
- name: Install FPC | ||
|
@@ -112,25 +114,18 @@ jobs: | |
verbosity: ewnh | ||
- name: Install SDL2 library | ||
run: sudo apt-get install libsdl2-dev | ||
- name: Test 1 - Compile Init Test | ||
- name: Compile SDL2-for-Pascal Test Framework (fptest) and Test Cases | ||
uses: suve/[email protected] | ||
with: | ||
source: tests/testinit.pas | ||
source: tests/sdl2forpascaltests.pas | ||
flags: Fuunits Futests/fptest/src Futests/fptest/3rdparty/epiktimer | ||
verbosity: ewnh | ||
- name: Test 1 - Run Init Test | ||
- name: Run SDL2-for-Pascal Tests | ||
run: | | ||
mkdir ~/tmp | ||
export XDG_RUNTIME_DIR=~/tmp | ||
./tests/testinit | ||
- name: Test 2 - Compile Version Test | ||
uses: suve/[email protected] | ||
with: | ||
source: tests/testversion.pas | ||
verbosity: ewnh | ||
- name: Test 2 - Run Version Test | ||
run: | | ||
./tests/testversion | ||
./tests/sdl2forpascaltests | ||
windows-2022: | ||
# skip job temporarily | ||
if: false | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Install Lazarus | ||
|