Skip to content

Commit

Permalink
Merge pull request kstyrc#62 from stianl/add_32bit_binary
Browse files Browse the repository at this point in the history
Add Unix 32-bit redis binary
  • Loading branch information
kstyrc committed Oct 19, 2015
2 parents 742f9eb + fba0e75 commit 8657d85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/redis/embedded/RedisExecProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private void initExecutables() {
executables.put(OsArchitecture.WINDOWS_x86, "redis-server-2.8.19.exe");
executables.put(OsArchitecture.WINDOWS_x86_64, "redis-server-2.8.19.exe");

executables.put(OsArchitecture.UNIX_x86, "redis-server-2.8.19");
executables.put(OsArchitecture.UNIX_x86, "redis-server-2.8.19-32");
executables.put(OsArchitecture.UNIX_x86_64, "redis-server-2.8.19");

executables.put(OsArchitecture.MAC_OS_X_x86, "redis-server-2.8.19.app");
Expand Down
Binary file added src/main/resources/redis-server-2.8.19-32
Binary file not shown.
3 changes: 2 additions & 1 deletion src/test/java/redis/embedded/RedisServerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ public void shouldIndicateInactiveAfterStop() throws Exception {
@Test
public void shouldOverrideDefaultExecutable() throws Exception {
RedisExecProvider customProvider = RedisExecProvider.defaultProvider()
.override(OS.UNIX, Resources.getResource("redis-server-2.8.19").getFile())
.override(OS.UNIX, Architecture.x86, Resources.getResource("redis-server-2.8.19-32").getFile())
.override(OS.UNIX, Architecture.x86_64, Resources.getResource("redis-server-2.8.19").getFile())
.override(OS.WINDOWS, Architecture.x86, Resources.getResource("redis-server-2.8.19.exe").getFile())
.override(OS.WINDOWS, Architecture.x86_64, Resources.getResource("redis-server-2.8.19.exe").getFile())
.override(OS.MAC_OS_X, Resources.getResource("redis-server-2.8.19").getFile());
Expand Down

0 comments on commit 8657d85

Please sign in to comment.