|
1 | 1 | set -eu |
2 | 2 | set -o pipefail |
3 | 3 |
|
| 4 | +test_jerryscript() { |
| 5 | + github_tar jerryscript-project jerryscript v3.0.0 |
| 6 | + sed -i 's|if(NOT (${CMAKE_C_COMPILER_ID} STREQUAL MSVC))|if(FALSE)|g' tests/unit-doc/CMakeLists.txt |
| 7 | + replace_line "#ifdef __GNUC__" "#if 1" jerry-ext/include/jerryscript-ext/autorelease.impl.h |
| 8 | + replace_line "#elif defined(__GNUC__)" "#elif 1" jerry-ext/include/jerryscript-ext/module.h |
| 9 | + python3 tools/run-tests.py --unittest |
| 10 | + python3 tools/run-tests.py --jerry-tests |
| 11 | + python3 tools/run-tests.py --test262 |
| 12 | + python3 tools/build.py |
| 13 | +} |
| 14 | + |
4 | 15 | test_bash() { |
5 | 16 | url_tar https://ftpmirror.gnu.org/gnu/bash/bash-5.3.tar.gz bash |
6 | 17 | fix_and_configure |
@@ -195,7 +206,7 @@ test_gawk() { |
195 | 206 | } |
196 | 207 |
|
197 | 208 | test_git() { |
198 | | - github_tar git git v2.50.1 |
| 209 | + github_tar git git v2.51.0 |
199 | 210 | make CC="$CC" test -j2 |
200 | 211 | } |
201 | 212 |
|
@@ -320,6 +331,18 @@ test_libgc() { |
320 | 331 | make check |
321 | 332 | } |
322 | 333 |
|
| 334 | +test_libgit2(){ |
| 335 | + github_tar libgit2 libgit2 v1.9.1 |
| 336 | + use_stdatomic '#ifdef GIT_THREADS' src/util/thread.h |
| 337 | + sed -i 's|defined(GIT_BUILTIN_ATOMIC)|1|g' src/util/thread.h |
| 338 | + sed -i 's|__atomic_exchange(ptr, &newval, &foundval,|return atomic_exchange_explicit(ptr, newval,|g' src/util/thread.h |
| 339 | + sed -i 's|__atomic_compare_exchange(ptr, &foundval, &newval, false,|atomic_compare_exchange_strong_explicit(ptr, \&foundval, newval,|g' src/util/thread.h |
| 340 | + replace_line "#elif defined(__clang__) || defined(__GNUC__)" "#elif 1" deps/ntlmclient/utf8.h |
| 341 | + sed -i 's|__has_builtin(__builtin_add_overflow)|0|g' src/util/integer.h |
| 342 | + cmake . -DCMAKE_C_COMPILER=$CC |
| 343 | + make && ctest --verbose |
| 344 | +} |
| 345 | + |
323 | 346 | test_libgmp() { |
324 | 347 | url_xz https://ftpmirror.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz gmp |
325 | 348 | fix_and_configure |
@@ -455,6 +478,23 @@ test_lua() { |
455 | 478 | ../lua -e"_port=true" all.lua # assertion at files.lua:84 fail in CI |
456 | 479 | } |
457 | 480 |
|
| 481 | +test_lwan(){ |
| 482 | + github_tar lpereira lwan v0.7 |
| 483 | + use_stdbit '#include <assert.h>' src/bin/tools/mimegen.c |
| 484 | + use_stdbit '#include <assert.h>' src/lib/timeout.c |
| 485 | + use_stdbit '#include <assert.h>' src/samples/techempower/json.c |
| 486 | + use_stdbit '#include <stdlib.h>' src/lib/lwan-private.h |
| 487 | + sed -i 's|defined(LWAN_HAVE_BUILTIN_CLZLL)|(1)|g' src/lib/lwan-private.h |
| 488 | + sed -i 's|__sync_##O##_and_fetch|__builtin_atomic_arith_##O|g' src/lib/lwan.h |
| 489 | + sed -i 's|__uint128_t|unsigned _BitInt(128)|g' src/lib/lwan-thread.c |
| 490 | + sed -i 's|__builtin_inf()|HUGE_VAL|g' src/samples/forthsalon/forth.c |
| 491 | + replace_line "#if defined(__x86_64__)" "#if 0" src/lib/lwan-websocket.c |
| 492 | + replace_line "#if __x86_64__" "#if 0" src/lib/lwan-template.c |
| 493 | + mkdir build && cd build |
| 494 | + cmake ../ -DCMAKE_C_COMPILER=$CC -DCMAKE_PREFIX_PATH=/usr/lib/x86_64-linux-gnu -DCMAKE_C_FLAGS=-fPIC |
| 495 | + make testsuite |
| 496 | +} |
| 497 | + |
458 | 498 | test_mawk() { |
459 | 499 | github_tar ThomasDickey mawk-snapshots t20250131 |
460 | 500 | ./configure |
@@ -524,7 +564,7 @@ test_msgpack() { |
524 | 564 | } |
525 | 565 |
|
526 | 566 | test_muon() { |
527 | | - git_fetch https://github.com/muon-build/muon e6038ff33267ebf035d4aa839d7815fb34c427b0 muon |
| 567 | + git_fetch https://github.com/muon-build/muon 91e7009351bbfa032ddcc25764c92fced0f47faa muon |
528 | 568 | sh ./bootstrap.sh build |
529 | 569 | build/muon-bootstrap setup build |
530 | 570 | sed -i 's/posix.default_linker = linker_posix/posix.default_linker = linker_ld/g' src/compilers.c |
@@ -678,7 +718,7 @@ test_quickjs() { |
678 | 718 | } |
679 | 719 |
|
680 | 720 | test_redis() { |
681 | | - github_tar redis redis 8.2.0 |
| 721 | + github_tar redis redis 8.2.1 |
682 | 722 | replace_line "# if defined(__GNUC__) && !(defined(__clang__) && defined(__cplusplus))" "#if 1" src/redismodule.h |
683 | 723 | sed -i 's|asm volatile|__asm volatile|g' deps/hdr_histogram/hdr_atomic.h |
684 | 724 | convert_atomic_x_fetch deps/hdr_histogram/hdr_atomic.h |
@@ -805,6 +845,13 @@ test_wget() { |
805 | 845 | make check |
806 | 846 | } |
807 | 847 |
|
| 848 | +test_wolfssl() { |
| 849 | + github_tar wolfSSL wolfssl v5.8.2-stable |
| 850 | + mkdir cmakebuild && cd cmakebuild |
| 851 | + cmake ../ -DCMAKE_C_COMPILER=$CC -DCMAKE_C_FLAGS=-fPIC |
| 852 | + make && ctest |
| 853 | +} |
| 854 | + |
808 | 855 | test_wuffs() { |
809 | 856 | git_fetch https://github.com/google/wuffs 67e9078eabcbda867ccc9fa912d81cba4fb0aa89 wuffs |
810 | 857 | sed -i 's|Building (C)|Build CC:$CC|g' ./build-example.sh |
@@ -922,12 +969,12 @@ build_lynx() { |
922 | 969 | } |
923 | 970 |
|
924 | 971 | build_nano() { |
925 | | - url_tar https://www.nano-editor.org/dist/v8/nano-8.5.tar.gz nano |
| 972 | + url_xz https://www.nano-editor.org/dist/v8/nano-8.6.tar.xz nano |
926 | 973 | ./configure && make |
927 | 974 | } |
928 | 975 |
|
929 | 976 | build_ncurses() { |
930 | | - github_tar ThomasDickey ncurses-snapshots v6_5_20250809 |
| 977 | + github_tar ThomasDickey ncurses-snapshots v6_5_20250816 |
931 | 978 | ./configure |
932 | 979 | make V=1 |
933 | 980 | } |
|
0 commit comments