Skip to content

Commit a82007d

Browse files
committed
Update CI to use ctest
1 parent b728681 commit a82007d

File tree

2 files changed

+5
-39
lines changed

2 files changed

+5
-39
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ jobs:
5151
run: |
5252
mkdir ${GITHUB_WORKSPACE}/build
5353
cd ${GITHUB_WORKSPACE}/build
54-
cmake .. -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} -DCMAKE_BUILD_TYPE=Debug -DUSE_MFEM=${USE_MFEM} -DMFEM_USE_GSLIB=${MFEM_USE_GSLIB}
55-
make
56-
cmake .. -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} -DCMAKE_BUILD_TYPE=Optimized -DUSE_MFEM=${USE_MFEM} -DMFEM_USE_GSLIB=${MFEM_USE_GSLIB}
57-
make
54+
cmake .. -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} -DCMAKE_BUILD_TYPE=Debug -DUSE_MFEM=${USE_MFEM} -DMFEM_USE_GSLIB=${MFEM_USE_GSLIB} -DENABLE_TESTS=ON
55+
make -j 4
56+
cmake .. -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} -DCMAKE_BUILD_TYPE=Optimized -DUSE_MFEM=${USE_MFEM} -DMFEM_USE_GSLIB=${MFEM_USE_GSLIB} -DENABLE_TESTS=ON
57+
make -j 4
5858
- name: Build baseline libROM
5959
if: ${{ github.event.label.name == 'LGTM' || contains(github.event.pull_request.labels.*.name, 'LGTM') }}
6060
run: |

.github/workflows/run_tests/action.yml

+1-35
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,7 @@ runs:
44
- name: Run unit tests
55
run: |
66
cd ${GITHUB_WORKSPACE}/build
7-
./tests/test_Vector
8-
./tests/test_Matrix
9-
mpirun -n 3 --oversubscribe ./tests/test_Matrix
10-
./tests/smoke_static
11-
./tests/test_DEIM
12-
./tests/test_GNAT
13-
./tests/test_QDEIM
14-
./tests/test_S_OPT
15-
mpirun -n 4 --oversubscribe tests/test_S_OPT
16-
./tests/test_IncrementalSVD
17-
./tests/test_DMD
18-
mpirun -n 3 --oversubscribe tests/test_DMD
19-
./tests/test_GreedyCustomSampler
20-
mpirun -n 3 --oversubscribe tests/test_GreedyCustomSampler
21-
./tests/test_RandomizedSVD
22-
mpirun -n 3 --oversubscribe tests/test_RandomizedSVD
23-
./tests/test_StaticSVD
24-
mpirun -n 3 --oversubscribe tests/test_StaticSVD
25-
./tests/test_IncrementalSVDBrand
26-
mpirun -n 3 --oversubscribe tests/test_IncrementalSVDBrand
27-
./tests/test_HDFDatabase
28-
mpirun -n 3 --oversubscribe tests/test_HDFDatabase
29-
./tests/test_QR
30-
mpirun -n 3 --oversubscribe tests/test_QR
31-
./tests/test_NNLS
32-
mpirun -n 3 --oversubscribe tests/test_NNLS
33-
shell: bash
34-
- name: Basis dataset update test
35-
run: |
36-
cd ${GITHUB_WORKSPACE}/build/tests
37-
cp ${GITHUB_WORKSPACE}/unit_tests/baselines/basis_conversion/* ./
38-
cp ${GITHUB_WORKSPACE}/scripts/data/update_basis_format.py ./
39-
python3 update_basis_format.py test_basis.000000
40-
python3 update_basis_format.py test_basis_snapshot.000000
41-
./test_basis_conversion
7+
ctest --output-on-failure
428
shell: bash
439

4410
- name: Run regression tests

0 commit comments

Comments
 (0)