summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFerenc Erki <erkiferenc@gmail.com>2017-09-23 17:05:58 +0200
committerMichał Górny <mgorny@gentoo.org>2018-02-11 22:24:47 +0100
commitcad95b6c5cee27bd675ff8e6816e3921ad7fdee7 (patch)
tree82f8f82582d29fce2a5c74a6925279c581160b22 /app-i18n
parentapp-i18n/translate-shell: switch to EAPI 6 (diff)
downloadgentoo-cad95b6c5cee27bd675ff8e6816e3921ad7fdee7.tar.gz
gentoo-cad95b6c5cee27bd675ff8e6816e3921ad7fdee7.tar.bz2
gentoo-cad95b6c5cee27bd675ff8e6816e3921ad7fdee7.zip
app-i18n/translate-shell: remove online tests
Closes: https://bugs.gentoo.org/630950 Package-Manager: Portage-2.3.8, Repoman-2.3.1
Diffstat (limited to 'app-i18n')
-rw-r--r--app-i18n/translate-shell/files/translate-shell-0.9.6.6-remove-online-tests.patch42
-rw-r--r--app-i18n/translate-shell/translate-shell-0.9.6.6.ebuild4
2 files changed, 46 insertions, 0 deletions
diff --git a/app-i18n/translate-shell/files/translate-shell-0.9.6.6-remove-online-tests.patch b/app-i18n/translate-shell/files/translate-shell-0.9.6.6-remove-online-tests.patch
new file mode 100644
index 00000000000..2eaf607b4bc
--- /dev/null
+++ b/app-i18n/translate-shell/files/translate-shell-0.9.6.6-remove-online-tests.patch
@@ -0,0 +1,42 @@
+diff --git a/Makefile b/Makefile
+index acc96e0..622e136 100644
+--- a/Makefile
++++ b/Makefile
+@@ -27,8 +27,6 @@ test: build
+
+ check: test
+ $(BUILDDIR)/$(COMMAND) -V
+- [ "`$(BUILDDIR)/$(COMMAND) -no-init -D -b 忍者`" = 'Ninja' ] &&\
+- [ "`$(BUILDDIR)/$(COMMAND) -no-init -D -b 'hello world'`" = 'hello world' ]
+
+ install: build
+ @mkdir -p $(DESTDIR)$(PREFIX)/bin &&\
+diff --git a/test/TestUtils.awk b/test/TestUtils.awk
+index 08bb2e9..3465327 100644
+--- a/test/TestUtils.awk
++++ b/test/TestUtils.awk
+@@ -30,24 +30,6 @@ BEGIN {
+ assertTrue(newerVersion("2", "1.9.9999"))
+ }
+
+- T("curl()", 1)
+- {
+- delete tokens; delete ast
+- tokenize(tokens, curl("https://httpbin.org/get"))
+- parseJson(ast, tokens)
+- assertEqual(unparameterize(ast[0 SUBSEP "url"]),
+- "https://httpbin.org/get")
+- }
+-
+- T("curlPost()", 1)
+- {
+- delete tokens; delete ast
+- tokenize(tokens, curlPost("https://httpbin.org/post", "fizz=buzz"))
+- parseJson(ast, tokens)
+- assertEqual(unparameterize(ast[0 SUBSEP "url"]),
+- "https://httpbin.org/post")
+- }
+-
+ T("dump()", 3)
+ {
+ delete group
diff --git a/app-i18n/translate-shell/translate-shell-0.9.6.6.ebuild b/app-i18n/translate-shell/translate-shell-0.9.6.6.ebuild
index 04cf2099bc1..6447ab3f65e 100644
--- a/app-i18n/translate-shell/translate-shell-0.9.6.6.ebuild
+++ b/app-i18n/translate-shell/translate-shell-0.9.6.6.ebuild
@@ -28,6 +28,10 @@ DEPEND="${RDEPEND}
test? ( app-editors/emacs )
"
+PATCHES=(
+ "${FILESDIR}/${P}-remove-online-tests.patch"
+)
+
src_install() {
emake PREFIX="${D}/usr" install
}