@@ -170,6 +170,27 @@ jobs:
170
170
cp lfs.data.csv sizes/${{matrix.arch}}-threadsafe.data.csv
171
171
cp lfs.stack.csv sizes/${{matrix.arch}}-threadsafe.stack.csv
172
172
cp lfs.structs.csv sizes/${{matrix.arch}}-threadsafe.structs.csv
173
+ - name : sizes-multiversion
174
+ run : |
175
+ make clean
176
+ CFLAGS="$CFLAGS \
177
+ -DLFS_NO_ASSERT \
178
+ -DLFS_NO_DEBUG \
179
+ -DLFS_NO_WARN \
180
+ -DLFS_NO_ERROR \
181
+ -DLFS_MULTIVERSION" \
182
+ make lfs.code.csv lfs.data.csv lfs.stack.csv lfs.structs.csv
183
+ ./scripts/structs.py -u lfs.structs.csv
184
+ ./scripts/summary.py lfs.code.csv lfs.data.csv lfs.stack.csv \
185
+ -bfunction \
186
+ -fcode=code_size \
187
+ -fdata=data_size \
188
+ -fstack=stack_limit --max=stack_limit
189
+ mkdir -p sizes
190
+ cp lfs.code.csv sizes/${{matrix.arch}}-multiversion.code.csv
191
+ cp lfs.data.csv sizes/${{matrix.arch}}-multiversion.data.csv
192
+ cp lfs.stack.csv sizes/${{matrix.arch}}-multiversion.stack.csv
193
+ cp lfs.structs.csv sizes/${{matrix.arch}}-multiversion.structs.csv
173
194
- name : sizes-migrate
174
195
run : |
175
196
make clean
@@ -353,6 +374,42 @@ jobs:
353
374
run : |
354
375
CFLAGS="$CFLAGS -DLFS_NO_INTRINSICS" make test
355
376
377
+ # run LFS_MULTIVERSION tests
378
+ test-multiversion :
379
+ runs-on : ubuntu-22.04
380
+ steps :
381
+ - uses : actions/checkout@v2
382
+ - name : install
383
+ run : |
384
+ # need a few things
385
+ sudo apt-get update -qq
386
+ sudo apt-get install -qq gcc python3 python3-pip
387
+ pip3 install toml
388
+ gcc --version
389
+ python3 --version
390
+ - name : test-multiversion
391
+ run : |
392
+ CFLAGS="$CFLAGS -DLFS_MULTIVERSION" make test
393
+
394
+ # run tests on the older version lfs2.0
395
+ test-lfs2_0 :
396
+ runs-on : ubuntu-22.04
397
+ steps :
398
+ - uses : actions/checkout@v2
399
+ - name : install
400
+ run : |
401
+ # need a few things
402
+ sudo apt-get update -qq
403
+ sudo apt-get install -qq gcc python3 python3-pip
404
+ pip3 install toml
405
+ gcc --version
406
+ python3 --version
407
+ - name : test-lfs2_0
408
+ run : |
409
+ CFLAGS="$CFLAGS -DLFS_MULTIVERSION" \
410
+ TESTFLAGS="$TESTFLAGS -DDISK_VERSION=0x00020000" \
411
+ make test
412
+
356
413
# run under Valgrind to check for memory errors
357
414
test-valgrind :
358
415
runs-on : ubuntu-22.04
@@ -371,7 +428,8 @@ jobs:
371
428
# on one geometry
372
429
- name : test-valgrind
373
430
run : |
374
- TESTFLAGS="$TESTFLAGS --valgrind -Gdefault -Pnone" make test
431
+ TESTFLAGS="$TESTFLAGS --valgrind --context=1024 -Gdefault -Pnone" \
432
+ make test
375
433
376
434
# test that compilation is warning free under clang
377
435
# run with Clang, mostly to check for Clang-specific warnings
@@ -684,7 +742,7 @@ jobs:
684
742
# sizes table
685
743
i=0
686
744
j=0
687
- for c in "" readonly threadsafe migrate error-asserts
745
+ for c in "" readonly threadsafe multiversion migrate error-asserts
688
746
do
689
747
# per-config results
690
748
c_or_default=${c:-default}
0 commit comments