Add an ostree-tests package, and use it for autopkgtest

This commit is contained in:
Simon McVittie committed 2016-01-29 11:42:05 +01:00
1 parent b63ecc385a
commit 7eee7ce2fe
7 files changed
+65

No files matched your search

Vendored Executable
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
set -e
exec 2>&1
set -x
cd "$ADTTMP"
cat > trivial.c <<EOF
#include <ostree.h>
int main (void)
{
g_object_unref (ostree_repo_new_default ());
return 0;
}
EOF
gcc -o trivial trivial.c $(pkg-config --cflags --libs ostree-1 gobject-2.0)
test -x trivial
./trivial
echo "ok 3 run it"
+5
View File
@@ -0,0 +1,5 @@
Tests: gnome-desktop-testing
Depends: gnome-desktop-testing, ostree-tests
Tests: build
Depends: build-essential, libostree-dev, pkg-config
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
set -e
exec 2>&1
exec gnome-desktop-testing-runner ostree