Skip to content

Commit c9b1b4c

Browse files
committed
ci: update to use new foamUT versions
1 parent 720f2be commit c9b1b4c

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/of2506.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,27 @@ jobs:
3838
with:
3939
detached: true
4040

41-
- name: Compile and Test
41+
- name: Compile
4242
run: |
4343
source /usr/lib/openfoam/openfoam2506/etc/bashrc
4444
mkdir -p $FOAM_USER_LIBBIN
4545
./Allwmake
46+
47+
- name: Test in serial
48+
run: |
49+
source /usr/lib/openfoam/openfoam2506/etc/bashrc
4650
git clone https://github.com/FoamScience/foamUT $FOAM_FOAMUT
47-
sed -i 's/mpirun/mpirun --oversubscribe/g' $FOAM_FOAMUT/Alltest
4851
ln -s "$PWD"/tests/adaptiveFvMeshTests "$FOAM_FOAMUT/tests/adaptiveFvMeshTests"
4952
rm -rf "$FOAM_FOAMUT/cases"
5053
cp -r tests/testCases "$FOAM_FOAMUT/cases"
5154
cd $FOAM_FOAMUT || exit 1
5255
rm -rf tests/exampleTests
53-
./Alltest "$@"
56+
./foamut
5457
if [ -f $FOAM_FOAMUT/tests/adaptiveFvMeshTests/log.wmake ]; then cat $FOAM_FOAMUT/tests/adaptiveFvMeshTests/log.wmake; fi
58+
59+
- name: Test in parallel
60+
run: |
61+
source /usr/lib/openfoam/openfoam2506/etc/bashrc
62+
cd $FOAM_FOAMUT || exit 1
63+
sed -i 's/mpirun/mpirun --oversubscribe --use-hwthread-cpus/g' ./foamut
64+
./foamut --parallel

tests/adaptiveFvMeshTests/Make/files

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/home/fadeli/repos/foamUT/tests/testDriver.C
1+
$(FOAM_FOAMUT)/tests/testDriver.C
22

33
abortHandle.C
44
adaptiveFvMeshTest.C

0 commit comments

Comments
 (0)