summaryrefslogtreecommitdiff
path: root/tests/testsuite.at
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-03-19 22:32:34 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-03-20 23:11:27 +0200
commit143dc63ffa179c8a1804c0079a2fd576e259d66a (patch)
treece0a730804f3db79e7f7db895e3cd7d424f1d0f3 /tests/testsuite.at
parentc0fb0740fa2dc3ea4c4c8875d5b8344b7cdb6067 (diff)
downloadtar-143dc63ffa179c8a1804c0079a2fd576e259d66a.tar.gz
Fix the testsuite
* tests/sparse05.at: Use autom4te magic to generate mapfile, instead of the shell command seq, which is not always available. * tests/listed03.at: Skip the test if xgetcwd fails. * tests/ckmtime.c: New file. * tests/Makefile.am: Build ckmtime * tests/testsuite.at (AT_CHECK_TIMESTAMP): Check whether newly created files have timestamps consistent with the creation time. Skip the test if not. * tests/incr01.at: Use AT_CHECK_TIMESTAMP * tests/incr02.at: Likewise. * tests/incr03.at: Likewise. * tests/incr04.at: Likewise. * tests/incr05.at: Likewise. * tests/incr06.at: Likewise. * tests/incr07.at: Likewise. * tests/incr08.at: Likewise. * tests/incr09.at: Likewise. * tests/incr10.at: Likewise. * tests/incr11.at: Likewise. * tests/incremental.at: Likewise. * tests/listed01.at: Likewise. * tests/listed02.at: Likewise. * tests/listed04.at: Likewise. * tests/listed05.at: Likewise.
Diffstat (limited to 'tests/testsuite.at')
-rw-r--r--tests/testsuite.at4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 2e4a0679..0b37fa30 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -188,6 +188,10 @@ m4_define([AT_ACLS_PREREQ],[
fi
])
+dnl Check whether a newly created file has timestamp consistent with the
+dnl local time. Skip the test if not.
+m4_define([AT_CHECK_TIMESTAMP],[ckmtime || AT_SKIP_TEST])
+
m4_include([sparsemvp.at])
AT_INIT