Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
651
Issues
651
List
Boards
Labels
Service Desk
Milestones
Merge Requests
190
Merge Requests
190
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
ab445e3c
Commit
ab445e3c
authored
Jul 26, 2017
by
Jakub Jirutka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing/handlebars: fix test failure on ppc64le
parent
da228851
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
10 deletions
+31
-10
testing/handlebars/APKBUILD
testing/handlebars/APKBUILD
+6
-10
testing/handlebars/fix-test-failure-on-ppc64le.patch
testing/handlebars/fix-test-failure-on-ppc64le.patch
+25
-0
No files found.
testing/handlebars/APKBUILD
View file @
ab445e3c
...
...
@@ -3,7 +3,7 @@
pkgname
=
handlebars
_pkgname
=
handlebars.c
pkgver
=
0.6.4
pkgrel
=
0
pkgrel
=
1
_mustachespec_ver
=
"1.1.3"
_handlebarsspec_ver
=
"4.0.5-p1"
pkgdesc
=
"C implementation of handlebars.js"
...
...
@@ -15,7 +15,8 @@ makedepends="autoconf automake bison check-dev flex json-c-dev libtool lmdb-dev
subpackages
=
"
$pkgname
-dev
$pkgname
-utils"
source
=
"
$_pkgname
-
$pkgver
.tar.gz::https://github.com/jbboehr/
$_pkgname
/archive/v
$pkgver
.tar.gz
mustache-spec-
$_mustachespec_ver
.tar.gz::https://github.com/mustache/spec/archive/v
$_mustachespec_ver
.tar.gz
handlebars-spec-
$_handlebarsspec_ver
.tar.gz::https://github.com/jbboehr/handlebars-spec/archive/v
$_handlebarsspec_ver
.tar.gz"
handlebars-spec-
$_handlebarsspec_ver
.tar.gz::https://github.com/jbboehr/handlebars-spec/archive/v
$_handlebarsspec_ver
.tar.gz
fix-test-failure-on-ppc64le.patch"
builddir
=
"
$srcdir
/
$_pkgname
-
$pkgver
"
prepare
()
{
...
...
@@ -41,13 +42,7 @@ build() {
check
()
{
cd
"
$builddir
"
case
"
$CARCH
"
in
# XXX: Ignore tests failures on ppc64le for now.
# https://github.com/jbboehr/handlebars.c/issues/67
ppc64le
)
make
test
||
true
;;
*
)
make
test
;;
esac
make
test
}
package
()
{
...
...
@@ -64,4 +59,5 @@ utils() {
sha512sums
=
"fae85ac30ce85b089c79c8b67cbf96cc94527d6b1ee2e83d05e638662c85b9bb1bd2aee06168dcd1ae2a15879f9f218dbecac012c25b583749d61f0921e0af16 handlebars.c-0.6.4.tar.gz
801a9cbf8a39080b183b20fbf327b420bcd6ed162bb58165dabafeb45fae277a9da506b6639ee7b955f6c206f0b8826d39588a43ffd86ab5ef4be6e9be2bc842 mustache-spec-1.1.3.tar.gz
81f0ff5ffc2d6b72465bdcbd2325d022faf73ec79586f3d8dfb07b7a6ec9147280872a82184b8d7ecdd8b22611b6b420c02ab437794bcd0aba67d2bf2082bc5d handlebars-spec-4.0.5-p1.tar.gz"
81f0ff5ffc2d6b72465bdcbd2325d022faf73ec79586f3d8dfb07b7a6ec9147280872a82184b8d7ecdd8b22611b6b420c02ab437794bcd0aba67d2bf2082bc5d handlebars-spec-4.0.5-p1.tar.gz
41a75d3e48d9eee2a404f41d5779d104895b72d4e8f9d00b207b468fc832ddc76fcd268fee3939cfb89f1dbba8149b39a7cef3b781c0f0da0b7abbbab55d3fec fix-test-failure-on-ppc64le.patch"
testing/handlebars/fix-test-failure-on-ppc64le.patch
0 → 100644
View file @
ab445e3c
From 931ad82c17984935decebacd3283e9d26ca749cb Mon Sep 17 00:00:00 2001
From: John Boehr <jbboehr@gmail.com>
Date: Tue, 25 Jul 2017 20:02:12 -0700
Subject: [PATCH] Should fix test failure on Alpine Linux ppc64le
#67
Patch-Source: https://github.com/jbboehr/handlebars.c/pull/68
---
tests/test_spec_handlebars_parser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_spec_handlebars_parser.c b/tests/test_spec_handlebars_parser.c
index 6345e3a..7c6472d 100644
--- a/tests/test_spec_handlebars_parser.c
+++ b/tests/test_spec_handlebars_parser.c
@@ -160,7 +160,7 @@
static int loadSpec(const char * filename) {
// Allocate tests array
tests_size = array_len + 1;
- tests = handlebars_talloc_array(rootctx, struct parser_test, tests_size);
+ tests = talloc_zero_array(rootctx, struct parser_test, tests_size);
// Iterate over array
for( int i = 0; i < array_len; i++ ) {
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment