My working unpac space for OCaml projects in development
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

test: update libzstd_builds.sh for disabled legacy default

Summary:
Updates the library build tests to reflect that legacy format support is now disabled by default. Also adds a new test case to verify that legacy support can still be explicitly enabled via ZSTD_LEGACY_SUPPORT=5.

Test Plan:
Run `bash tests/libzstd_builds.sh` on a Linux environment.

+17 -6
+17 -6
vendor/git/zstd-c/tests/libzstd_builds.sh
··· 21 21 $ECHO "$@ correctly not present" # for some reason, this $ECHO must exist, otherwise mustBeAbsent() always fails (??) 22 22 } 23 23 24 - # default compilation : all features enabled - no zbuff 24 + # default compilation : all features enabled - no zbuff, no legacy 25 25 $ECHO "testing default library compilation" 26 26 CFLAGS= make -C $DIR/../lib libzstd libzstd.a > $INTOVOID 27 27 nm $DIR/../lib/libzstd.a | $GREP "\.o" > tmplog 28 28 isPresent "zstd_compress.o" 29 29 isPresent "zstd_decompress.o" 30 30 isPresent "zdict.o" 31 - isPresent "zstd_v07.o" 31 + mustBeAbsent "zstd_v07.o" 32 32 mustBeAbsent "zbuff_compress.o" 33 33 $RM tmplog 34 34 ··· 44 44 mustBeAbsent "zstd_compress.o" 45 45 isPresent "zstd_decompress.o" 46 46 mustBeAbsent "zdict.o" 47 - isPresent "zstd_v07.o" 47 + mustBeAbsent "zstd_v07.o" 48 48 mustBeAbsent "zbuff_compress.o" 49 49 $RM $DIR/../lib/libzstd.a tmplog 50 50 ··· 66 66 isPresent "zstd_compress.o" 67 67 isPresent "zstd_decompress.o" 68 68 isPresent "zdict.o" 69 - isPresent "zstd_v07.o" 69 + mustBeAbsent "zstd_v07.o" 70 70 mustBeAbsent "zbuff_compress.o" 71 71 $RM $DIR/../lib/libzstd.a tmplog 72 72 ··· 77 77 isPresent "zstd_compress.o" 78 78 isPresent "zstd_decompress.o" 79 79 isPresent "zdict.o" 80 - isPresent "zstd_v07.o" 80 + mustBeAbsent "zstd_v07.o" 81 81 isPresent "zbuff_compress.o" 82 82 $RM $DIR/../lib/libzstd.a tmplog 83 83 ··· 88 88 isPresent "zstd_compress.o" 89 89 isPresent "zstd_decompress.o" 90 90 mustBeAbsent "zdict.o" 91 - isPresent "zstd_v07.o" 91 + mustBeAbsent "zstd_v07.o" 92 92 mustBeAbsent "zbuff_compress.o" 93 93 $RM $DIR/../lib/libzstd.a tmplog 94 94 ··· 102 102 mustBeAbsent "zstd_v07.o" 103 103 mustBeAbsent "zbuff_compress.o" 104 104 $RM $DIR/../lib/libzstd.a tmplog 105 + 106 + # legacy support explicitly enabled 107 + $ECHO "testing with legacy support explicitly enabled" 108 + ZSTD_LEGACY_SUPPORT=5 CFLAGS= make -C $DIR/../lib libzstd.a > $INTOVOID 109 + nm $DIR/../lib/libzstd.a | $GREP "\.o" > tmplog 110 + isPresent "zstd_compress.o" 111 + isPresent "zstd_decompress.o" 112 + isPresent "zdict.o" 113 + isPresent "zstd_v07.o" 114 + mustBeAbsent "zbuff_compress.o" 115 + $RM $DIR/../lib/libzstd.a tmplog