~straemer/ubuntu/quantal/update-manager/fix-for-1058070

« back to all changes in this revision

Viewing changes to tests/Makefile

  • Committer: Package Import Robot
  • Author(s): Michael Terry
  • Date: 2012-06-29 10:59:30 UTC
  • mfrom: (389.1.2 precise-security)
  • Revision ID: package-import@ubuntu.com-20120629105930-0oaj9vdvykmvkjum
Tags: 1:0.165
* Implementation of "update on start" feature from spec
  https://wiki.ubuntu.com/SoftwareUpdates
* Use a single main window that changes instead of having modal dialogs
* Implement several special-purpose dialogs like "No updates" or
  "Dist upgrade needed" accordingn to the above spec
* Split out release upgrader code and DistUpgrade module into a separate
  source package
* Drop python-update-manager, as it is unused
* debian/tests:
  - Add dep8 tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make
2
2
 
3
 
all: check # mago_test
4
 
 
5
 
check:
6
 
        set -e; \
7
 
        find . -name 'test_*.py' | \
8
 
        while read file; do \
9
 
            if [ -x $$file ]; then \
10
 
                if grep -q Gtk $$file; then \
11
 
                        echo "*** RUNNING $$file (under xvfb-run)"; \
12
 
                        xvfb-run python $$file; \
13
 
                        sleep 1; \
14
 
                        xvfb-run python3 $$file; \
15
 
                else \
16
 
                        echo "*** RUNNING $$file"; \
17
 
                        python $$file ; \
18
 
                        python3 $$file ; \
19
 
                fi; \
20
 
            fi; \
21
 
        done
22
 
 
23
3
mago_test:
24
4
        #MAGO_SHARE=./mago/ mago -f basic.xml
25
5
        MAGO_SHARE=./mago/ mago --log-level=debug -f basic.xml