[Pkg-electronics-devel] Bug#927050: gcc-xtensa-lx106: add an autopkgtest

Helmut Grohne helmut at subdivi.de
Sun Apr 14 08:55:56 BST 2019


Source: gcc-xtensa-lx106
Version: 2
Tags: patch

Hi Jonathan,

I started working on the toolchain package and managed to break it, but
I only noticed much later, because it lacks tests. I managed to break
the simplest of all tests: compiling an empty file. Could you maybe add
that as an autopkgtest? Not opposed to testing more, but this would
already help.

Helmut
-------------- next part --------------
diff --minimal -Nru gcc-xtensa-lx106-2/debian/changelog gcc-xtensa-lx106-2+nmu1/debian/changelog
--- gcc-xtensa-lx106-2/debian/changelog	2019-02-27 15:55:11.000000000 +0100
+++ gcc-xtensa-lx106-2+nmu1/debian/changelog	2019-04-14 09:47:32.000000000 +0200
@@ -1,3 +1,10 @@
+gcc-xtensa-lx106 (2+nmu1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add a very simply autopkgtest. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sun, 14 Apr 2019 09:47:32 +0200
+
 gcc-xtensa-lx106 (2) unstable; urgency=medium
 
   *  Remove unnecessary build-deps (Closes: #921855)
diff --minimal -Nru gcc-xtensa-lx106-2/debian/tests/compile-empty-lx106 gcc-xtensa-lx106-2+nmu1/debian/tests/compile-empty-lx106
--- gcc-xtensa-lx106-2/debian/tests/compile-empty-lx106	1970-01-01 01:00:00.000000000 +0100
+++ gcc-xtensa-lx106-2+nmu1/debian/tests/compile-empty-lx106	2019-04-14 09:47:32.000000000 +0200
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -u
+set -e
+cd "$ADTTMP"
+cat >test.c <<'EOF'
+void _start()
+{
+}
+EOF
+xtensa-lx106-elf-gcc -nostdlib test.c
diff --minimal -Nru gcc-xtensa-lx106-2/debian/tests/control gcc-xtensa-lx106-2+nmu1/debian/tests/control
--- gcc-xtensa-lx106-2/debian/tests/control	1970-01-01 01:00:00.000000000 +0100
+++ gcc-xtensa-lx106-2+nmu1/debian/tests/control	2019-04-14 09:47:19.000000000 +0200
@@ -0,0 +1,2 @@
+Tests: compile-empty-lx106
+Depends: gcc-xtensa-lx106


More information about the Pkg-electronics-devel mailing list