[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#936313: [PATCH 2/3] Add more tests to the check script



---
 check                       | 14 +++++++++++++-
 fail-tests/fail.stdout-diff |  4 ++--
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/check b/check
index 83fb46b..43d3ac6 100755
--- a/check
+++ b/check
@@ -2,4 +2,16 @@
 
 set -eu
 
-./cmdtest yarn.tests
+rc=0
+
+python3 -m unittest discover -p '*tests.py' || rc=1
+
+./cmdtest echo-tests || rc=1
+
+./cmdtest sort-tests || rc=1
+
+./cmdtest fail-tests && echo "fail-tests did not fail!" && rc=1 || true
+
+./cmdtest yarn.tests || rc=1
+
+exit $rc
diff --git a/fail-tests/fail.stdout-diff b/fail-tests/fail.stdout-diff
index 47ac588..5ff15ca 100644
--- a/fail-tests/fail.stdout-diff
+++ b/fail-tests/fail.stdout-diff
@@ -1,4 +1,4 @@
---- /dev/null	2017-04-20 17:06:09.455944599 +0300
-+++ fail-tests/fail.stdout-actual	2017-04-30 11:15:56.619905930 +0300
+--- /dev/null	2019-11-15 19:57:15.955999653 -0300
++++ fail-tests/fail.stdout-actual	2019-11-25 12:17:53.315392072 -0300
 @@ -0,0 +1 @@
 +this is not empty output to make test fail
-- 
2.24.0


Reply to: