Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 24 additions & 14 deletions .github/workflows/moocore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,16 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-24.04 ]
cc: [ gcc-12, gcc-13, gcc-14, clang-18 ]
# os: [ ubuntu-24.04 ]
# cc: [ gcc-12, gcc-14, clang-18 ]
include:
- { os: ubuntu-22.04, cc: gcc-10 }
- { os: ubuntu-22.04, cc: gcc-11 }
- { os: ubuntu-24.04-arm, cc: gcc-12 }
# FIXME: needs
# * brew install xz
# * fix options only available in GNU diff
#- { os: macos-15-intel, cc: clang, python-version: '3.10' }
#- { os: macos-14, cc: clang, python-version: '3.10' }
# - { os: ubuntu-22.04, cc: gcc-10 }
# - { os: ubuntu-22.04, cc: gcc-11 }
# - { os: ubuntu-24.04-arm, cc: gcc-13 }
# - { os: macos-14, cc: clang }
# - { os: macos-14, cc: gcc-13 }
# - { os: macos-15-intel, cc: clang }
- { os: macos-15-intel, cc: gcc-13 }
env:
CC: ${{ matrix.cc }}

Expand All @@ -48,6 +47,7 @@ jobs:
with:
repository: multi-objective/moocore
sparse-checkout: c
ref: 'debug-testsuite'

- name: Checkout testsuite
uses: actions/checkout@v5
Expand All @@ -64,15 +64,25 @@ jobs:
python3 -m pip install --upgrade pip
python3 -m pip install -r testsuite/requirements.txt

- name: make time (DEBUG=0, -O3 -flto)
- name: make test (DEBUG=1, -O0)
run: |
source env/bin/activate
make -C c time
make -C c hv DEBUG=0 OPT_CFLAGS="-O3 -flto" SANITIZERS=""
cd testsuite/
# chmod u+x reduce.sh
# ./reduce.sh
# cp current.txt ./hv/bug-dtlz-linear-8d.inp
./regtest.py ../bin/hv ./hv/bug-dtlz-linear-8d.test

- name: make test (DEBUG=1, -O3 -flto)
- name: make test (DEBUG=1, -O2 -flto)
run: |
source env/bin/activate
make -C c test OPT_CFLAGS="-O3 -flto"
make -C c test OPT_CFLAGS="-O2 -flto"

- name: make time (DEBUG=0, -O3 -flto)
run: |
source env/bin/activate
make -C c time

- name: Collect failed test outputs
if: failure()
Expand Down
2 changes: 1 addition & 1 deletion eaf/input1.test
Original file line number Diff line number Diff line change
@@ -1 +1 @@
${PROGRAM} --quiet -i- ../data/input1.dat | sort | cat --squeeze-blank
${PROGRAM} --quiet -i- ../data/input1.dat | sort | cat -s
2 changes: 1 addition & 1 deletion eaf/ran.1000pts.3d.10.test
Original file line number Diff line number Diff line change
@@ -1 +1 @@
${PROGRAM} --quiet ../data/ran.1000pts.3d.10 | sort | cat --squeeze-blank
${PROGRAM} --quiet ../data/ran.1000pts.3d.10 | sort | cat -s
2 changes: 1 addition & 1 deletion eaf/spherical-3d-2000pts-10.test
Original file line number Diff line number Diff line change
@@ -1 +1 @@
xzcat ../data/${TESTNAME}.dat.xz | $PROGRAM --quiet | sort --stable | cat --squeeze-blank
xzcat ../data/${TESTNAME}.dat.xz | $PROGRAM --quiet | sort -s | cat -s
1 change: 0 additions & 1 deletion hv/DTLZLinearShape.9d.front.60pts.10.test
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
${PROGRAM} -r "1 1 1 1 1 1 1 1 1" < ../data/${TESTNAME}
${PROGRAM} -r "1 1 1 1 1 1 1 1 1" -u < ../data/${TESTNAME}
1 change: 1 addition & 0 deletions hv/bug-dtlz-linear-8d.exp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.914904115749332
16 changes: 16 additions & 0 deletions hv/bug-dtlz-linear-8d.inp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
2.42899462083171e-4 5.65210960376816e-4 5.24959971453096e-5 2.04960013651293e-4 1.52560560225601e-2 3.30577040111656e-2 0.117255254196719 0.333365419336299
8.21810755551991e-3 2.34059681576492e-4 5.34530891530671e-4 8.63285946266458e-4 8.00816144709717e-2 1.1881193370682e-2 0.100388232341124 0.297798975742328
8.5251806629545e-8 4.06231803000985e-8 3.90256146502855e-8 2.00427723442859e-7 1.28222021261077e-6 6.81235771016374e-2 0.208968182012679 0.222906593337146
2.28501879650758e-4 2.12710694795889e-4 5.1654829804331e-6 0.21669703345177 3.29694335489232e-2 2.50572412713597e-2 0.106822143341734 0.118007770328786
8.89592052004235e-5 1.00026715375485e-3 8.1633287357797e-4 1.00730871577352e-2 7.08887674738233e-2 1.75600292250372e-2 0.118243002274221 0.281329554636651
1.55863047209385e-3 8.11337491576624e-4 5.85801503479003e-4 2.52221049397195e-3 4.25020592169468e-2 0.265638089139003 3.95945355184076e-2 0.146787336164521
5.74204807498047e-3 3.0505470640512e-4 2.34339155700767e-4 2.60861076648023e-3 6.36695934179902e-3 3.31377011225999e-2 0.104325637209632 0.347279649622403
7.16051245822002e-3 7.64912813748044e-3 1.42254003434993e-3 7.06280072548701e-4 5.37577035822866e-2 0.10675415740044 0.125212293188593 0.197337385126081
6.02175564785745e-4 2.17763199962923e-4 1.85772464125909e-3 1.87179172792148e-3 1.1140831141677e-2 9.56482313582744e-4 1.27571298238265e-2 0.470596101586985
3.17407648825287e-3 3.31672777241526e-4 7.49600077762129e-3 2.55740402552079e-2 2.20434697699908e-2 2.34039322685479e-2 3.15060800934949e-2 0.386470727569643
1.9350060707501e-3 5.76455172256783e-4 4.16627877776467e-3 2.88519333151778e-3 7.65057533927926e-4 2.610847992711e-2 6.12746972289223e-2 0.40228883195775
8.01748213608992e-2 5.13050340703712e-2 7.15314425338266e-2 5.07933745432445e-2 6.49112767498004e-3 7.12372444452014e-2 0.156229532266201 1.22374231052759e-2
1.11360393609468e-4 3.11338934836408e-4 1.79566821448031e-3 4.78932815731347e-2 1.29243748523841e-2 7.35705420789209e-2 3.57109845504945e-2 0.32768244940214
5.74204807498047e-3 3.0505470640512e-4 2.34339155700767e-4 2.60861076648023e-3 6.36695934179902e-3 3.31377011225999e-2 0.104325637209632 0.347279649622403
6.69426269250777e-4 9.17273718881233e-4 3.14066294833011e-4 1.22674273092778e-4 3.94152436345828e-3 1.82162880697309e-3 4.03588815153e-3 0.488177518121981
4.30417175644102e-3 3.4052627894829e-3 1.31092244530975e-2 2.00417820884395e-2 5.43148029100468e-2 5.5858829683747e-2 2.03721813473367e-3 0.346928708184012
1 change: 1 addition & 0 deletions hv/bug-dtlz-linear-8d.test
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${PROGRAM} -r "1 1 1 1 1 1 1 1" -u < ./${TESTNAME}.inp
1 change: 1 addition & 0 deletions hv/bug-dtlz-linear-9d.exp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.99064227521469
Loading
Loading