summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-11-28 10:38:02 +0200
committerLars Wirzenius <liw@liw.fi>2019-11-28 10:38:02 +0200
commite8b8d90d18408b222a05950257daccbddd7d6926 (patch)
treec1d999c1fd0016c9982cca8707f2b4f687e70bce /check
parent335478a004afc442820862c188f7378595a6b8bb (diff)
parent24960b9bd1e53e970b9a9796c268ce58cd5eff93 (diff)
downloadcmdtest-e8b8d90d18408b222a05950257daccbddd7d6926.tar.gz
Change: port to Python3, drop Python2 support
This is a combination of changes made by Richard Ipsum <richardipsum@vx21.xyz> and Antonio Terceiro <terceiro@debian.org> to port cmdtest and yarn to Python3. They both provided patches for Python3 support, and I merged the changes. The actual work was done by Richard and Antonio.
Diffstat (limited to 'check')
-rwxr-xr-xcheck10
1 files changed, 10 insertions, 0 deletions
diff --git a/check b/check
index 83fb46b..10dadd5 100755
--- a/check
+++ b/check
@@ -1,5 +1,15 @@
#!/bin/sh
+#
+# Run unit and integration tests.
set -eu
+python3 -m unittest discover -p '*tests.py'
+
+./cmdtest echo-tests
+
+./cmdtest sort-tests
+
+./cmdtest fail-tests && echo "fail-tests did not fail!" && exit 1
+
./cmdtest yarn.tests