From d8e2995415416587a3afda12824052a4462d6fc4 Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Mon, 24 Jun 2019 15:10:33 +0100
Subject: [PATCH] tests: Rename from t

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 meson.build                         | 2 +-
 {t => tests}/mypy.sh                | 2 +-
 {t => tests}/pycodestyle.sh         | 2 +-
 {t => tests}/pyflakes.sh            | 2 +-
 {t => tests}/relocatable-install.py | 0
 {t => tests}/shellcheck.sh          | 2 +-
 6 files changed, 5 insertions(+), 5 deletions(-)
 rename {t => tests}/mypy.sh (98%)
 rename {t => tests}/pycodestyle.sh (98%)
 rename {t => tests}/pyflakes.sh (98%)
 rename {t => tests}/relocatable-install.py (100%)
 rename {t => tests}/shellcheck.sh (98%)

diff --git a/meson.build b/meson.build
index 3ba6d0704..a1f7201ba 100644
--- a/meson.build
+++ b/meson.build
@@ -129,7 +129,7 @@ foreach test_name : tests
   if prove.found()
     test(
       test_name, prove,
-      args : ['-v', files('t/' + test_name)],
+      args : ['-v', files('tests/' + test_name)],
       env : test_env,
     )
   endif
diff --git a/t/mypy.sh b/tests/mypy.sh
similarity index 98%
rename from t/mypy.sh
rename to tests/mypy.sh
index 49fd7d0cd..af0cb055a 100755
--- a/t/mypy.sh
+++ b/tests/mypy.sh
@@ -41,7 +41,7 @@ for script in \
     "${G_TEST_SRCDIR}"/*.py \
     "${G_TEST_SRCDIR}"/pressure-vessel-test-ui \
     "${G_TEST_SRCDIR}"/sysroot/*.py \
-    "${G_TEST_SRCDIR}"/t/*.py \
+    "${G_TEST_SRCDIR}"/tests/*.py \
 ; do
     i=$((i + 1))
     if [ "x${MYPY:="$(command -v mypy || echo false)"}" = xfalse ]; then
diff --git a/t/pycodestyle.sh b/tests/pycodestyle.sh
similarity index 98%
rename from t/pycodestyle.sh
rename to tests/pycodestyle.sh
index 36fc01ea2..cd33d6bf4 100755
--- a/t/pycodestyle.sh
+++ b/tests/pycodestyle.sh
@@ -51,7 +51,7 @@ if "${PYCODESTYLE}" \
     "$G_TEST_SRCDIR"/*.py \
     "${G_TEST_SRCDIR}"/pressure-vessel-test-ui \
     "${G_TEST_SRCDIR}"/sysroot/*.py \
-    "${G_TEST_SRCDIR}"/t/*.py \
+    "${G_TEST_SRCDIR}"/tests/*.py \
     >&2; then
     echo "ok 1 - $PYCODESTYLE reported no issues"
 else
diff --git a/t/pyflakes.sh b/tests/pyflakes.sh
similarity index 98%
rename from t/pyflakes.sh
rename to tests/pyflakes.sh
index 1b8fe0b9c..8da6f8dd7 100755
--- a/t/pyflakes.sh
+++ b/tests/pyflakes.sh
@@ -41,7 +41,7 @@ elif "${PYFLAKES}" \
     "${G_TEST_SRCDIR}"/*.py \
     "${G_TEST_SRCDIR}"/pressure-vessel-test-ui \
     "${G_TEST_SRCDIR}"/sysroot/*.py \
-    "${G_TEST_SRCDIR}"/t/*.py \
+    "${G_TEST_SRCDIR}"/tests/*.py \
     >&2; then
     echo "1..1"
     echo "ok 1 - $PYFLAKES reported no issues"
diff --git a/t/relocatable-install.py b/tests/relocatable-install.py
similarity index 100%
rename from t/relocatable-install.py
rename to tests/relocatable-install.py
diff --git a/t/shellcheck.sh b/tests/shellcheck.sh
similarity index 98%
rename from t/shellcheck.sh
rename to tests/shellcheck.sh
index 2c25da90e..7943a0c95 100755
--- a/t/shellcheck.sh
+++ b/tests/shellcheck.sh
@@ -40,7 +40,7 @@ for shell_script in \
         pressure-vessel-unruntime \
         pressure-vessel-unruntime-test-ui \
         sysroot/*.sh \
-        t/*.sh \
+        tests/*.sh \
         ; do
     n=$((n + 1))
 
-- 
GitLab