Jerry is now split to several components: core, libc, plugins.
The components are build independently and then are linked with main module corresponding to target platform. Core is supposed to be platform-independent, while libc and plugins are dependent on specific architecture / platform. The commit disables unit tests building and running during precommit. That is supposed to be fixed in a subsequent commit. Also, the commit disables building and running valgrind targets during precommit. Build is supposed to be turned on by an option that should be introduced later. Valgrind-checked runs are supposed to be performed in asynchronous mode.
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
/* Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
/* Copyright 2014-2015 Samsung Electronics Co., Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -32,7 +32,7 @@ static uint8_t opcode_sizes[] = {
|
||||
0
|
||||
};
|
||||
|
||||
static bool opcodes_equal (const opcode_t *, opcode_t *, uint16_t) __unused;
|
||||
static bool opcodes_equal (const opcode_t *, opcode_t *, uint16_t) __attr_unused___;
|
||||
|
||||
static bool
|
||||
opcodes_equal (const opcode_t *opcodes1, opcode_t *opcodes2, uint16_t size)
|
||||
|
||||
@@ -83,8 +83,8 @@ test_heap_give_some_memory_back (mem_try_give_memory_back_severity_t severity)
|
||||
} /* test_heap_give_some_memory_back */
|
||||
|
||||
int
|
||||
main( int __unused argc,
|
||||
char __unused **argv)
|
||||
main( int __attr_unused___ argc,
|
||||
char __attr_unused___ **argv)
|
||||
{
|
||||
uint8_t test_native_heap[test_heap_size];
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
* Unit test's main function.
|
||||
*/
|
||||
int
|
||||
main( int __unused argc,
|
||||
char __unused **argv)
|
||||
main( int __attr_unused___ argc,
|
||||
char __attr_unused___ **argv)
|
||||
{
|
||||
const ecma_char_t* zt_strings[] =
|
||||
{
|
||||
|
||||
@@ -41,8 +41,8 @@ uint8_t test_pool [TEST_POOL_SPACE_SIZE] __attribute__((aligned(MEM_ALIGNMENT)))
|
||||
uint8_t* ptrs[test_max_sub_iters];
|
||||
|
||||
int
|
||||
main( int __unused argc,
|
||||
char __unused **argv)
|
||||
main( int __attr_unused___ argc,
|
||||
char __attr_unused___ **argv)
|
||||
{
|
||||
srand((unsigned int) time(NULL));
|
||||
int k = rand();
|
||||
|
||||
@@ -41,8 +41,8 @@ const uint32_t test_max_sub_iters = 32;
|
||||
uint8_t *ptrs[test_max_sub_iters];
|
||||
|
||||
int
|
||||
main( int __unused argc,
|
||||
char __unused **argv)
|
||||
main( int __attr_unused___ argc,
|
||||
char __attr_unused___ **argv)
|
||||
{
|
||||
mem_init();
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
* Unit test's main function.
|
||||
*/
|
||||
int
|
||||
main( int __unused argc,
|
||||
char __unused **argv)
|
||||
main( int __attr_unused___ argc,
|
||||
char __attr_unused___ **argv)
|
||||
{
|
||||
char program[] = "a=1;var a;";
|
||||
bool is_ok;
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
* Unit test's main function.
|
||||
*/
|
||||
int
|
||||
main( int __unused argc,
|
||||
char __unused **argv)
|
||||
main( int __attr_unused___ argc,
|
||||
char __attr_unused___ **argv)
|
||||
{
|
||||
const ecma_char_t* zt_strings[] =
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user