Skip to content

Commit

Permalink
Fixing github tests on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
spog committed Nov 24, 2024
1 parent 11af447 commit 8a2ec6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
SHELL := bash
INSTALL ?= install
UNAME := $(shell uname);
REALPATH := $(shell if [ "$(UNAME)" == "Darwin" ]; then echo grealpath; else echo realpath; fi)

# Make sure we have git:
ifeq ($(shell which git),)
Expand All @@ -22,7 +24,7 @@ INSTALL_BIN ?= $(PREFIX)/bin
INSTALL_LIB ?= $(PREFIX)/share/$(NAME)
INSTALL_EXT ?= $(INSTALL_LIB)/$(NAME).d
INSTALL_MAN1 ?= $(PREFIX)/share/man/man1
LINK_REL_DIR := $(shell realpath --relative-to=$(INSTALL_BIN) $(INSTALL_LIB))
LINK_REL_DIR := $(shell $(REALPATH) --relative-to=$(INSTALL_BIN) $(INSTALL_LIB))

# Docker variables:
DOCKER_TAG ?= 0.0.6
Expand All @@ -49,6 +51,7 @@ help:

.PHONY: test
test:
@echo UNAME: '$(UNAME)'
prove $(prove) $(test)

test-all: test docker-tests
Expand Down
4 changes: 3 additions & 1 deletion test/setup
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

set -e

export LC_ALL=C.UTF-8
if [ "$(uname)" == "Linux" ]; then
export LC_ALL=C.UTF-8
fi

# Get the location of this script
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
Expand Down

0 comments on commit 8a2ec6a

Please sign in to comment.