]> Cypherpunks.ru repositories - goredo.git/commitdiff
Do not depend on non-portable stat command v2.6.2
authorSergey Matveev <stargrave@stargrave.org>
Thu, 29 Feb 2024 08:29:31 +0000 (11:29 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 29 Feb 2024 08:29:31 +0000 (11:29 +0300)
doc/news.texi
t/goredo-chmoding.t
usage.go

index f6bcdd55bca333f66528917bc42e4772c2c734ed..c7d0bdd75096d708959962901c8022355b6d550c 100644 (file)
@@ -2,11 +2,18 @@
 @cindex news
 @unnumbered News
 
+@anchor{Release 2_6_2}
+@section Release 2.6.2
+@itemize
+@item
+    Integration tests do not depend on non-portal @command{stat} command.
+@end itemize
+
 @anchor{Release 2_6_1}
 @section Release 2.6.1
 @itemize
 @item
-    Tests do not depend on Python or Git.
+    Integration tests do not depend on Python or Git.
 @end itemize
 
 @anchor{Release 2_6_0}
index 79866970b608c595c41b290a343e91da51f6ba22..c283aba893b6e2a2d3208019045b7ff2cf2f15dd 100755 (executable)
@@ -8,7 +8,7 @@ export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1
 echo echo ok > foo.do
 redo foo
 test_expect_success "foo is non executable" '[ ! -x foo ]'
-inode0=`stat -f %i foo`
+inode0=`perl -e '@s=stat "foo"; print "$s[1]\n"'`
 
 cat > foo.do <<EOF
 echo ok > \$3
@@ -16,7 +16,7 @@ chmod +x \$3
 EOF
 redo foo
 test_expect_success "foo is executable" '[ -x foo ]'
-inode1=`stat -f %i foo`
+inode1=`perl -e '@s=stat "foo"; print "$s[1]\n"'`
 test_expect_success "foo was not renamed" '[ $inode0 = $inode1 ]'
 
 test_done
index 566bca57fe90f5ab001e7369e0a7558063d0f1f0..a64c375fbd2a4719b01871504ff1c688e48657e6 100644 (file)
--- a/usage.go
+++ b/usage.go
@@ -22,7 +22,7 @@ import (
 )
 
 const (
-       Version  = "2.6.1"
+       Version  = "2.6.2"
        Warranty = `Copyright (C) 2020-2024 Sergey Matveev
 
 This program is free software: you can redistribute it and/or modify