Skip to content

Commit

Permalink
recompile redis 7.2.* with msys2 (#99)
Browse files Browse the repository at this point in the history
* disable optimizations with `CFLAGS="-Wno-char-subscripts -O0"`
* add `redis-server.exe` version tests
  • Loading branch information
hemnstill authored Mar 18, 2024
1 parent 3d2fb87 commit 92f1f65
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion redis/build_msys2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ echo "::group::build"

sed -i 's/__GNU_VISIBLE/1/' /d/a/_temp/msys64/usr/include/dlfcn.h

make BUILD_TLS=yes CFLAGS=-Wno-char-subscripts
make BUILD_TLS=yes CFLAGS="-Wno-char-subscripts -O0"

echo "::endgroup::"

Expand Down
6 changes: 5 additions & 1 deletion redis/test_linux.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash

testVersion() {
assertEquals "redis-cli 7.2.3" "$(../bin/redis-cli --version)"
assertEquals "redis-cli 7.2.3" "$(../bin/redis-cli --version | head -c 15)"
}

testServerVersion() {
assertEquals "Redis server v=7.2.3" "$(../bin/redis-server --version | head -c 20)"
}

# Load and run shUnit2.
Expand Down
6 changes: 5 additions & 1 deletion redis/test_windows.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash

testVersion() {
assertEquals "redis-cli 7.2.3" "$(../bin/redis-cli.exe --version)"
assertEquals "redis-cli 7.2.3" "$(../bin/redis-cli.exe --version | head -c 15)"
}

testServerVersion() {
assertEquals "Redis server v=7.2.3" "$(../bin/redis-server.exe --version | head -c 20)"
}

# Load and run shUnit2.
Expand Down

0 comments on commit 92f1f65

Please sign in to comment.