Skip to content

Commit

Permalink
Run tests with gtest (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
pguyot committed Jan 11, 2022
1 parent 152a55f commit a929040
Show file tree
Hide file tree
Showing 124 changed files with 2,818 additions and 3,275 deletions.
1 change: 1 addition & 0 deletions .github/codeql/codeql-config.yml
Expand Up @@ -5,3 +5,4 @@ queries:
paths-ignore:
- fltk
- newt64
- _Tests_
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Expand Up @@ -51,6 +51,6 @@ jobs:
- name: Compile Einstein
run: |
cmake -S . -B _Build_/Makefiles
cmake --build _Build_/Makefiles
cmake --build _Build_/Makefiles --target Einstein
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
10 changes: 1 addition & 9 deletions .github/workflows/macos.yml
Expand Up @@ -22,18 +22,10 @@ jobs:
- name: Build
run: xcodebuild build -project _Build_/Xcode/Einstein.xcodeproj -scheme Einstein

# Runs a set of commands using the runners shell
# All automated tests are available as part of the EinsteinTest target
- name: Run Xcode tests
run: xcodebuild test -project _Build_/Xcode/Einstein.xcodeproj -scheme Einstein

# Also run CLI tests
- name: Run CLI tests
run: |
xcodebuild install -project _Build_/Xcode/Einstein.xcodeproj -configuration Debug -scheme CLITest DSTROOT=/ INSTALL_PATH=/usr/local/bin
cd _Tests_/scripts/
sh test-instructions.sh /usr/local/bin/CLITest
sh test-memory.sh /usr/local/bin/CLITest
- name: Archive
run: |
xcodebuild -project _Build_/Xcode/Einstein.xcodeproj -scheme Einstein -archivePath Einstein.xcarchive archive
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/macos_fltk.yml
Expand Up @@ -45,3 +45,6 @@ jobs:
run: |
cmake -S . -B _Build_/Makefiles
cmake --build _Build_/Makefiles
- name: Run tests
run: |
_Build_/Makefiles/EinsteinTests
3 changes: 3 additions & 0 deletions .github/workflows/ubuntu.yml
Expand Up @@ -47,3 +47,6 @@ jobs:
run: |
cmake -S . -B _Build_/Makefiles
cmake --build _Build_/Makefiles
- name: Run tests
run: |
_Build_/Makefiles/EinsteinTests
2 changes: 1 addition & 1 deletion .lgtm.yml
Expand Up @@ -22,4 +22,4 @@ extraction:
index: # Customizable step used by all languages.
build_command:
- cmake -S . -B _Build_/Makefiles
- cmake --build _Build_/Makefiles
- cmake --build _Build_/Makefiles --target Einstein

0 comments on commit a929040

Please sign in to comment.