Your message dated Tue, 17 Aug 2021 15:55:07 +0000
with message-id <[email protected]>
and subject line Bug#990770: fixed in tcode 0.1.20080918-4
has caused the Debian Bug report #990770,
regarding tcode -- add autopkgtests
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
990770: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990770
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: tcode
Version: 0.1.20080918-3
Severity: normal
Tags: patch
X-Debbugs-Cc: [email protected]

Dear Maintainer,

tcode does not have any autopkgtests at the moment,
I've attempted adding these, please consider applying the patch

Nilesh

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.7.0-2-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages tcode depends on:
ii  default-jre           2:1.11-72
pn  latex2html            <none>
pn  texlive-bibtex-extra  <none>

tcode recommends no packages.

tcode suggests no packages.
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..ac78501
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, default-jdk-headless
+Restrictions: allow-stderr
diff --git a/debian/tests/example-texjava.java 
b/debian/tests/example-texjava.java
new file mode 100644
index 0000000..2e775e9
--- /dev/null
+++ b/debian/tests/example-texjava.java
@@ -0,0 +1,52 @@
+\defclass{Complex}
+This class allows one to work with complex numbers of
+the form $a + bi$, where $a$ is the \emph{real} part of
+the number, \emph{b} is the imaginary part and
+$i=\sqrt{-1}$.
+\bigskip\hrule\bigskip
+\begin{code}
+public class Complex\begin{hide} {
+private double realPart;
+private double imagPart;\end{hide}
+public Complex (double realPart, double imagPart)\begin{hide} {
+this.realPart = realPart;
+this.imagPart = imagPart;
+}\end{hide}
+\end{code}
+\begin{tabb} Constructs a new {\tt Complex} number.
+\param{realPart}{The real part corresponding to $a$}
+\param{imagPart}{The imaginary part corresponding to $b$}
+\end{tabb}
+\begin{code}
+public Complex add (Complex c)\begin{hide} {
+realPart += c.realPart;
+imagPart += c.realPart;
+return this;
+}\end{hide}
+
+\end{code}
+\begin{tabb} Adds two complex numbers.
+\param{c}{The complex number to add to this one.}
+\return{This object, allowing to perform more than one operation
+on a single line of code.}
+\end{tabb}
+\begin{code}
+// other methods...
+public String toString()\begin{hide} {
+return "(" + realPart + " + " + imagPart + "i)";
+}
+// Test code
+public static void main(String[] args) {
+       Complex c1 = new Complex(1, 2);
+       Complex c2 = new Complex(2, 3);
+       assert c1.add(c2).toString().equals("(3.0 + 4.0i)");
+       System.out.println("PASS");
+}
+}\end{hide}
+\end{code}
+\begin{tabb}
+ Converts the number to a {\tt String} of
+the form {\tt a + bi}.
+\end{tabb}
+
+
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..99d8710
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,27 @@
+#!/bin/bash
+set -e
+
+pkg=tcode
+CUR_DIR=`pwd`
+
+export LC_ALL=C.UTF-8
+if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
+  AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
+  trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
+fi
+
+cp /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
+cd "${AUTOPKGTEST_TMP}"
+
+# Running texjava
+texjava -savelatex example-texjava.java Complex.java
+
+# Verify that the latex part indeed is saved
+fgrep -q "This class allows one to work with complex numbers of" Complex.java
+
+# Running the code
+javac Complex.java
+java -enableassertions Complex
+
+# Cleanup
+rm -f Complex*

--- End Message ---
--- Begin Message ---
Source: tcode
Source-Version: 0.1.20080918-4
Done: Nilesh Patra <[email protected]>

We believe that the bug you reported is fixed in the latest version of
tcode, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nilesh Patra <[email protected]> (supplier of updated tcode package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 17 Aug 2021 21:05:01 +0530
Source: tcode
Architecture: source
Version: 0.1.20080918-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers 
<[email protected]>
Changed-By: Nilesh Patra <[email protected]>
Closes: 990768 990770
Changes:
 tcode (0.1.20080918-4) unstable; urgency=medium
 .
   * Team Upload.
   * Add autopkgtests (Closes: #990768)
   * d/p/reproducible: Remove build date from
     doc to make build reproducible (Closes: #990770)
   * Declare compliance with policy 4.5.1
   * Drop compat, switch to debhelper-compat 13
   * Add "Rules-Requires-Root: no"
   * Bump watch file version to 4
   * Migrate to secure urls (s/http/https/)
   * Add d/salsa-ci.yml
Checksums-Sha1:
 67807c030546bc0406442d632d0d2aabd73e5dc4 2163 tcode_0.1.20080918-4.dsc
 b9ab33bd354c32c670a6b0b79ad5c44fe4e694df 4720 
tcode_0.1.20080918-4.debian.tar.xz
 9cfc5b1b682e7549ca52b914a7928792f998636f 10033 
tcode_0.1.20080918-4_amd64.buildinfo
Checksums-Sha256:
 7913ca6fae6356dfd3052245167940cbc8bac14248eb8d0b00841da18e9a22b1 2163 
tcode_0.1.20080918-4.dsc
 247eb4162fc46c232065e35de1c56d8a5b086788bb7703aae6c0c4b76eed414f 4720 
tcode_0.1.20080918-4.debian.tar.xz
 e1a613ce1defda56e01410115c343880ec59c80e24b016c67edc5867f87afc56 10033 
tcode_0.1.20080918-4_amd64.buildinfo
Files:
 02d10cdf6115e3010a17a4fb10990856 2163 java optional tcode_0.1.20080918-4.dsc
 0aedd6753c2f074968e781d7a1328482 4720 java optional 
tcode_0.1.20080918-4.debian.tar.xz
 7e729128ed97f8c45519cfd20a6aee33 10033 java optional 
tcode_0.1.20080918-4_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEPpmlJvXcwMu/HO6mALrnSzQzafEFAmEb2AkUHG5wYXRyYTk3
NEBnbWFpbC5jb20ACgkQALrnSzQzafHeGw//TF1PrEkzjmsfWDoH42mMnrxu/eJ6
oV9f1TPk2dLBWylHcUA7VnMRYMKNXs7EykSjaP6eYiGvcU4ihq6ly3tvAMy4qG9c
AUI0J2wMYTR12ztpbWfSYYV/aKpG9CMq8fYChAjqWdA837CuUTYrONVhiyVsppfz
eCN4v4JyeG1Inz7BZhu1CKTy59NEXux/NHwgjgrbNcyV1w6y1oZte2gGu8r8om/0
8CXy1je+QvJ8oshWLwLIoHeDeSOBn5Ef1qq7+6sUcKDYd6Gljjay+cJw8NOMZ1om
h65HoM7B5CvuJrHY+T18ayXdYfvSR/ZYYtbP89uH2L58HP3EkTUvn6xz37lvAajw
CqjD4q6Vbajv33vdnwW7WgPUcUFzAHmgddToWVhnG7bBZYApljAmVIefk9c2NQ7+
sXMlOCjvKIhLj1VzJnkb6Mshxh8N07tEJqBixWnvyrcbbthz6ww3dKkaFS8HRez2
6EoUULjWdn7vbup4msdehNDYvYsfhFmPsmKqbyyIiKKaRJ+F+p2AsPfgLOwpFeG8
1tiX/xGzpLGt80gAVGAp/fBOzupFi9ntCnPO6e6db1LXGnOmAbUT/VjcmjCSz23/
jspK7HDbov8Att+k3I8LoqEVOmIF5UrpVDvJ5+ULv8UA++PgDLym33FtbRrDQvMT
FRtzOeekzfLsJr4=
=gpzr
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to