Skip to content

Commit 3d1f5e5

Browse files
committed
*temporary commit* Run FLINT QQ unit tests individually
Also only run cmake-macos build for now
1 parent 8936c98 commit 3d1f5e5

File tree

2 files changed

+51
-17
lines changed

2 files changed

+51
-17
lines changed

.github/workflows/test_build.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ jobs:
3535
fail-fast: false
3636
matrix:
3737
build-system:
38-
- autotools
3938
- cmake
4039
os:
41-
- ubuntu-24.04
4240
- macos-13
4341
compiler:
4442
- default
@@ -141,7 +139,7 @@ jobs:
141139
- name: Build Macaulay2 using Ninja
142140
if: matrix.build-system == 'cmake'
143141
run: |
144-
cmake --build . --target M2-core M2-emacs install-packages
142+
cmake --build . --target M2-core
145143
if [[ "${{ runner.os }}" == "Linux" ]] && [[ "${{ matrix.build-system }}" == "cmake" ]]; then
146144
sudo apt-get install -y -q --no-install-recommends dpkg-dev
147145
echo "GIT_COMMIT=`git describe --dirty --always --match HEAD`" >> $GITHUB_ENV
@@ -182,10 +180,6 @@ jobs:
182180
if: matrix.build-system == 'cmake' && runner.os == 'macOS'
183181
run: |
184182
set -xe
185-
./M2 -q --check 1
186-
./M2 -q --check 2
187-
./M2 -q --check 3
188-
cmake --build . --target M2-tests
189183
cmake --build . --target M2-unit-tests
190184
cmake --build . --target memtailor-unit-tests mathic-unit-tests mathicgb-unit-tests
191185
ctest -j1 --output-on-failure -R "unit-tests"

M2/Macaulay2/e/unit-tests/ARingQQFlintTest.cpp

+50-10
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,60 @@ TEST(ARingQQFlint, display)
6767
R.clear(a);
6868
}
6969

70-
TEST(ARingQQFlint, arithmetic)
70+
TEST(ARingQQFlint, coercions)
7171
{
7272
M2::ARingQQFlint R;
7373

7474
testCoercions(R);
75-
testNegate(R, ntrials);
76-
testAdd(R, ntrials);
77-
testSubtract(R, ntrials);
78-
testMultiply(R, ntrials);
79-
testDivide(R, ntrials);
80-
testReciprocal(R, ntrials);
81-
// testPower(R, ntrials); // this test can't work, as it expects a finite
82-
// field
83-
testAxioms(R, ntrials);
75+
}
76+
77+
TEST(ARingQQFlint, negate)
78+
{
79+
M2::ARingQQFlint R;
80+
81+
testNegate(R, 40);
82+
}
83+
84+
TEST(ARingQQFlint, add)
85+
{
86+
M2::ARingQQFlint R;
87+
88+
testAdd(R, 40);
89+
}
90+
91+
TEST(ARingQQFlint, subtract)
92+
{
93+
M2::ARingQQFlint R;
94+
95+
testSubtract(R, 40);
96+
}
97+
98+
TEST(ARingQQFlint, multiply)
99+
{
100+
M2::ARingQQFlint R;
101+
102+
testMultiply(R, 40);
103+
}
104+
105+
TEST(ARingQQFlint, divide)
106+
{
107+
M2::ARingQQFlint R;
108+
109+
testDivide(R, 40);
110+
}
111+
112+
TEST(ARingQQFlint, reciprocal)
113+
{
114+
M2::ARingQQFlint R;
115+
116+
testReciprocal(R, 40);
117+
}
118+
119+
TEST(ARingQQFlint, axioms)
120+
{
121+
M2::ARingQQFlint R;
122+
123+
testAxioms(R, 40);
84124
}
85125

86126
// Local Variables:

0 commit comments

Comments
 (0)