Commit Diff


commit - f97d3fa0aeb2ae9e45d749d80629de65336b747a
commit + 1ff9fea4adda83f98727fa90b9806f6b35989182
blob - 167f75b9cfd9e96f7b54ba71b702446f1b304e51
blob + 5512a52281c0ee03946db793d6cf3bc079bef0f4
--- Makefile.am
+++ Makefile.am
@@ -17,7 +17,8 @@ GOT_TEST_ROOT=/tmp
 tests: $(TEST_TARGETS)
 
 regress-cmdline:
-	(cd $(top_builddir)/regress/cmdline || exit $$?; 	\
+	(export PLATFORM=@PLATFORM@; 				\
+	cd $(top_builddir)/regress/cmdline || exit $$?; 	\
 	./checkout.sh -r "$(GOT_TEST_ROOT)";			\
 	./update.sh -r "$(GOT_TEST_ROOT)";			\
 	./status.sh -r "$(GOT_TEST_ROOT)";			\
blob - 2b9c219181faf1e6ff070cc5d50165ed2ef06211
blob + 3e0b190072d11c5feb95bd3cb149b3635c85b9e8
--- regress/cmdline/common.sh
+++ regress/cmdline/common.sh
@@ -29,7 +29,7 @@ export MALLOC_OPTIONS=S
 date()
 {
 	DATECMD="date"
-	[ "$OSTYPE" != "linux-gnu" ] && DATECMD="gdate"
+	[ "$PLATFORM" != "linux" ] && DATECMD="gdate"
 
 	command "$DATECMD" "$@"
 }
@@ -37,7 +37,7 @@ date()
 ln()
 {
 	LNCMD="ln"
-	[ "$OSTYPE" != "linux-gnu" ] && LNCMD="gln"
+	[ "$PLATFORM" != "linux" ] && LNCMD="gln"
 
 	command "$LNCMD" "$@"
 }
@@ -45,7 +45,7 @@ ln()
 sed()
 {
 	SEDCMD="sed"
-	[ "$OSTYPE" == "linux-gnu" ] && {
+	[ "$PLATFORM" = "linux" ] && {
 		set -- "$@"
 		[ $# -ge 4 ] && {
 			shift 2