* New upstream release
* Sync with ubuntu:
  * debian/rules: Make test failures fatal again
  * debian/libgtk-3-0.symbols: Updated
  * debian/rules: Update build-depends
  * debian/libgtk-3-bin.install: Add gtk-launch: A new commandline utility
    to launch an application from its desktop file
  * Add autopkgtest support
* debian/patches/072_statusicon_icon_size.patch:
  * Removed merged upstream
* debian/patches/074_try-harder-to-discriminate-Shift-F10-and-F10.patch:
  * Removed, fixed upstream
* debian/patches/073_transparent_colors.patch
  * Removed, fixed upstream
* debian/control.in: bump glib2.0 build-dep to >= 2.33.14 to trump the dodgy
  version in unstable
			
			
This commit is contained in:
		
							
								
								
									
										42
									
								
								debian/tests/build
									
									
									
									
										vendored
									
									
										Executable file
									
								
							
							
						
						
									
										42
									
								
								debian/tests/build
									
									
									
									
										vendored
									
									
										Executable file
									
								
							| @ -0,0 +1,42 @@ | ||||
| #!/bin/sh | ||||
| # autopkgtest check: Build and run a program against GTK, to verify that the | ||||
| # headers and pkg-config file are installed correctly | ||||
| # (C) 2012 Canonical Ltd. | ||||
| # Author: Martin Pitt <martin.pitt@ubuntu.com> | ||||
|  | ||||
| set -e | ||||
|  | ||||
| WORKDIR=$(mktemp -d) | ||||
| trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM | ||||
| cd $WORKDIR | ||||
| cat <<EOF > gtktest.c | ||||
| #include <glib.h> | ||||
| #include <gtk/gtk.h> | ||||
|  | ||||
| static gboolean | ||||
| do_quit (gpointer user_data) | ||||
| {    | ||||
|     gtk_main_quit (); | ||||
| } | ||||
|  | ||||
| int main(int argc, char **argv) | ||||
| { | ||||
|     GtkWidget *dialog; | ||||
|  | ||||
|     gtk_init (&argc, &argv); | ||||
|     dialog = gtk_dialog_new_with_buttons ("Test dialog", NULL, | ||||
|                                           GTK_DIALOG_MODAL,  | ||||
|                                           GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,  | ||||
|                                           NULL); | ||||
|     gtk_widget_show_all (dialog); | ||||
|     g_timeout_add_seconds (1, do_quit, NULL); | ||||
|     gtk_main(); | ||||
|     return 0; | ||||
| } | ||||
| EOF | ||||
|  | ||||
| gcc -o gtktest gtktest.c `pkg-config --cflags --libs gtk+-3.0` | ||||
| echo "build: OK" | ||||
| [ -x gtktest ] | ||||
| xvfb-run ./gtktest | ||||
| echo "run: OK" | ||||
							
								
								
									
										2
									
								
								debian/tests/control
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								debian/tests/control
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | ||||
| Tests: build python3-gi | ||||
| Depends: libgtk-3-dev, build-essential, xvfb, python3-gi, gir1.2-gtk-3.0 | ||||
							
								
								
									
										16
									
								
								debian/tests/python3-gi
									
									
									
									
										vendored
									
									
										Executable file
									
								
							
							
						
						
									
										16
									
								
								debian/tests/python3-gi
									
									
									
									
										vendored
									
									
										Executable file
									
								
							| @ -0,0 +1,16 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| xvfb-run python3 <<EOF | ||||
| from gi.repository import GLib, Gtk | ||||
|  | ||||
| def do_quit(user_data): | ||||
|     Gtk.main_quit() | ||||
|  | ||||
| dialog = Gtk.Dialog() | ||||
| dialog.set_title('Test dialog') | ||||
| dialog.add_button(Gtk.STOCK_OK, Gtk.ResponseType.ACCEPT) | ||||
| dialog.show_all() | ||||
| GLib.timeout_add_seconds(1, do_quit, None) | ||||
| Gtk.main() | ||||
| EOF | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Sjoerd Simons
					Sjoerd Simons