shithub: scc

Download patch

ref: 4c6ff78ab23b4820161ec032390a88c7bd6b6fea
parent: 23cb5f4c52263967dfa971b8912f6a2fcbef02a2
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Aug 25 12:57:17 EDT 2018

[tests/ar] Don't use date -d

Date -d is not posix and it is not supported by all the
systems. We can fix the problem in other way fixing the
timezone while we run the tests.

--- a/tests/ar/execute/Makefile
+++ b/tests/ar/execute/Makefile
@@ -6,7 +6,7 @@
 all: tests
 
 tests: master.a
-	PATH=$(ROOT)/bin:$$PATH ./chktest.sh
+	TZ=UTC PATH=$(ROOT)/bin:$$PATH ./chktest.sh
 
 master.a:
 	./mkmaster.sh
--- a/tests/ar/execute/mkmaster.sh
+++ b/tests/ar/execute/mkmaster.sh
@@ -2,7 +2,7 @@
 
 uid=`id -u`
 gid=`id -g`
-time=`date -d "1980-01-01" +%s`
+time=315532800
 
 cat <<EOF >master.a
 !<arch>