Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-12-06 17:21:03 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2013-04-09 09:36:51 (GMT)
commit148655635f0b59a19eb2c658086f004af1c4ab64 (patch)
tree833e5fe3a65b4ff15ab2f0269d4932a12e350c39
parentc5f30a9fbe059bda46e663821e16c70bfaeb469f (diff)
Add a make target for tests
We are running the existing test_mime.py. All the other tests which are not unit tests but more examples of code one can run interactively are moved to the example directory.
-rw-r--r--Makefile.am6
-rw-r--r--examples/buttons.py (renamed from tests/graphics/buttons.py)0
-rw-r--r--examples/cellrenderericon.py (renamed from tests/graphics/cellrenderericon.py)0
-rw-r--r--examples/common.py (renamed from tests/graphics/common.py)0
-rw-r--r--examples/customdestroy.py (renamed from tests/graphics/customdestroy.py)0
-rw-r--r--examples/gtktreesensitive.py (renamed from tests/graphics/gtktreesensitive.py)0
-rw-r--r--examples/iconbadges.py (renamed from tests/graphics/iconbadges.py)0
-rw-r--r--examples/iconcache.py (renamed from tests/graphics/iconcache.py)0
-rw-r--r--examples/iconwidget.py (renamed from tests/graphics/iconwidget.py)0
-rw-r--r--examples/intro.py (renamed from tests/graphics/intro.py)0
-rw-r--r--examples/progress.py (renamed from tests/graphics/progress.py)0
-rw-r--r--examples/tabs.py (renamed from tests/graphics/tabs.py)0
-rw-r--r--examples/ticket2855.py (renamed from tests/graphics/ticket2855.py)0
-rw-r--r--examples/ticket2999.py (renamed from tests/graphics/ticket2999.py)0
-rw-r--r--examples/ticket3000.py (renamed from tests/graphics/ticket3000.py)0
-rw-r--r--examples/toolbarpalettes.py (renamed from tests/graphics/toolbarpalettes.py)0
-rw-r--r--examples/toolbuttons.py (renamed from tests/graphics/toolbuttons.py)0
-rw-r--r--examples/tray.py (renamed from tests/graphics/tray.py)0
-rw-r--r--tests/lib/runall.py28
-rw-r--r--tests/test_mime.py (renamed from tests/lib/test_mime.py)0
20 files changed, 6 insertions, 28 deletions
diff --git a/Makefile.am b/Makefile.am
index 86a095c..763c25c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -12,3 +12,9 @@ EXTRA_DIST = \
intltool-extract.in
SUBDIRS = bin src po
+
+check: test
+
+test:
+ cd $(top_srcdir)/tests && \
+ python -m unittest discover
diff --git a/tests/graphics/buttons.py b/examples/buttons.py
index a222215..a222215 100644
--- a/tests/graphics/buttons.py
+++ b/examples/buttons.py
diff --git a/tests/graphics/cellrenderericon.py b/examples/cellrenderericon.py
index 1f87552..1f87552 100644
--- a/tests/graphics/cellrenderericon.py
+++ b/examples/cellrenderericon.py
diff --git a/tests/graphics/common.py b/examples/common.py
index 8d516ad..8d516ad 100644
--- a/tests/graphics/common.py
+++ b/examples/common.py
diff --git a/tests/graphics/customdestroy.py b/examples/customdestroy.py
index 72156a8..72156a8 100644
--- a/tests/graphics/customdestroy.py
+++ b/examples/customdestroy.py
diff --git a/tests/graphics/gtktreesensitive.py b/examples/gtktreesensitive.py
index 875612f..875612f 100644
--- a/tests/graphics/gtktreesensitive.py
+++ b/examples/gtktreesensitive.py
diff --git a/tests/graphics/iconbadges.py b/examples/iconbadges.py
index f72dfe3..f72dfe3 100644
--- a/tests/graphics/iconbadges.py
+++ b/examples/iconbadges.py
diff --git a/tests/graphics/iconcache.py b/examples/iconcache.py
index 5a027d9..5a027d9 100644
--- a/tests/graphics/iconcache.py
+++ b/examples/iconcache.py
diff --git a/tests/graphics/iconwidget.py b/examples/iconwidget.py
index e4d7f26..e4d7f26 100644
--- a/tests/graphics/iconwidget.py
+++ b/examples/iconwidget.py
diff --git a/tests/graphics/intro.py b/examples/intro.py
index 05c5b5a..05c5b5a 100644
--- a/tests/graphics/intro.py
+++ b/examples/intro.py
diff --git a/tests/graphics/progress.py b/examples/progress.py
index bc176a8..bc176a8 100644
--- a/tests/graphics/progress.py
+++ b/examples/progress.py
diff --git a/tests/graphics/tabs.py b/examples/tabs.py
index fbc4bac..fbc4bac 100644
--- a/tests/graphics/tabs.py
+++ b/examples/tabs.py
diff --git a/tests/graphics/ticket2855.py b/examples/ticket2855.py
index 0de36a3..0de36a3 100644
--- a/tests/graphics/ticket2855.py
+++ b/examples/ticket2855.py
diff --git a/tests/graphics/ticket2999.py b/examples/ticket2999.py
index 0d42297..0d42297 100644
--- a/tests/graphics/ticket2999.py
+++ b/examples/ticket2999.py
diff --git a/tests/graphics/ticket3000.py b/examples/ticket3000.py
index 295d796..295d796 100644
--- a/tests/graphics/ticket3000.py
+++ b/examples/ticket3000.py
diff --git a/tests/graphics/toolbarpalettes.py b/examples/toolbarpalettes.py
index 93177c1..93177c1 100644
--- a/tests/graphics/toolbarpalettes.py
+++ b/examples/toolbarpalettes.py
diff --git a/tests/graphics/toolbuttons.py b/examples/toolbuttons.py
index e189406..e189406 100644
--- a/tests/graphics/toolbuttons.py
+++ b/examples/toolbuttons.py
diff --git a/tests/graphics/tray.py b/examples/tray.py
index 3da60e3..3da60e3 100644
--- a/tests/graphics/tray.py
+++ b/examples/tray.py
diff --git a/tests/lib/runall.py b/tests/lib/runall.py
deleted file mode 100644
index ae1bb3a..0000000
--- a/tests/lib/runall.py
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright (C) 2007, Red Hat, Inc.
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-
-import unittest
-
-import test_mime
-
-runner = unittest.TextTestRunner()
-loader = unittest.TestLoader()
-
-suite = unittest.TestSuite()
-suite.addTest(loader.loadTestsFromModule(test_mime))
-
-runner.run(suite)
diff --git a/tests/lib/test_mime.py b/tests/test_mime.py
index 417a320..417a320 100644
--- a/tests/lib/test_mime.py
+++ b/tests/test_mime.py