From 123d401508a17403c9cafaa79a4bd771bce37c7e Mon Sep 17 00:00:00 2001
From: "Dmitry V. Levin" <ldv@altlinux.org>
Date: Sun, 2 Feb 2014 15:20:11 +0000
Subject: [PATCH] tests: rename all tests so that their names end in .test
 suffix

Due to automake limitations, some features work only for tests
that end in one of the suffixes listed in TEST_EXTENSIONS.

* tests/detach-running: Rename to detach-running.test.
* tests/detach-sleeping: Rename to detach-sleeping.test.
* tests/detach-stopped: Rename to detach-stopped.test.
* tests/net: Rename to net.test.
* tests/ptrace_setoptions: Rename to ptrace_setoptions.test.
* tests/qual_syscall: Rename to qual_syscall.test.
* tests/sigaction.sh: Rename to sigaction.test.
* tests/stat: Rename to stat.test.
* tests/strace-f: Rename to strace-f.test.
* tests/Makefile.am (TESTS): Update.
(LOG_COMPILER): Rename to TEST_LOG_COMPILER.
---
 tests/Makefile.am                                  | 14 +++++++++++---
 tests/{detach-running => detach-running.test}      |  0
 tests/{detach-sleeping => detach-sleeping.test}    |  0
 tests/{detach-stopped => detach-stopped.test}      |  0
 tests/{net => net.test}                            |  0
 .../{ptrace_setoptions => ptrace_setoptions.test}  |  0
 tests/{qual_syscall => qual_syscall.test}          |  0
 tests/{sigaction.sh => sigaction.test}             |  0
 tests/{stat => stat.test}                          |  0
 tests/{strace-f => strace-f.test}                  |  0
 10 files changed, 11 insertions(+), 3 deletions(-)
 rename tests/{detach-running => detach-running.test} (100%)
 rename tests/{detach-sleeping => detach-sleeping.test} (100%)
 rename tests/{detach-stopped => detach-stopped.test} (100%)
 rename tests/{net => net.test} (100%)
 rename tests/{ptrace_setoptions => ptrace_setoptions.test} (100%)
 rename tests/{qual_syscall => qual_syscall.test} (100%)
 rename tests/{sigaction.sh => sigaction.test} (100%)
 rename tests/{stat => stat.test} (100%)
 rename tests/{strace-f => strace-f.test} (100%)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index d8262f07..56c4a067 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -4,10 +4,18 @@ AM_CFLAGS = $(WARN_CFLAGS)
 
 check_PROGRAMS = net-accept-connect set_ptracer_any sigaction
 
-TESTS = ptrace_setoptions strace-f qual_syscall sigaction.sh stat net \
-	detach-sleeping detach-stopped detach-running
+TESTS = \
+	ptrace_setoptions.test \
+	strace-f.test \
+	qual_syscall.test \
+	sigaction.test \
+	stat.test \
+	net.test \
+	detach-sleeping.test \
+	detach-stopped.test \
+	detach-running.test
 
-LOG_COMPILER = $(srcdir)/run.sh
+TEST_LOG_COMPILER = $(srcdir)/run.sh
 
 EXTRA_DIST = init.sh run.sh sigaction.awk $(TESTS)
 
diff --git a/tests/detach-running b/tests/detach-running.test
similarity index 100%
rename from tests/detach-running
rename to tests/detach-running.test
diff --git a/tests/detach-sleeping b/tests/detach-sleeping.test
similarity index 100%
rename from tests/detach-sleeping
rename to tests/detach-sleeping.test
diff --git a/tests/detach-stopped b/tests/detach-stopped.test
similarity index 100%
rename from tests/detach-stopped
rename to tests/detach-stopped.test
diff --git a/tests/net b/tests/net.test
similarity index 100%
rename from tests/net
rename to tests/net.test
diff --git a/tests/ptrace_setoptions b/tests/ptrace_setoptions.test
similarity index 100%
rename from tests/ptrace_setoptions
rename to tests/ptrace_setoptions.test
diff --git a/tests/qual_syscall b/tests/qual_syscall.test
similarity index 100%
rename from tests/qual_syscall
rename to tests/qual_syscall.test
diff --git a/tests/sigaction.sh b/tests/sigaction.test
similarity index 100%
rename from tests/sigaction.sh
rename to tests/sigaction.test
diff --git a/tests/stat b/tests/stat.test
similarity index 100%
rename from tests/stat
rename to tests/stat.test
diff --git a/tests/strace-f b/tests/strace-f.test
similarity index 100%
rename from tests/strace-f
rename to tests/strace-f.test