gsize raw_content_len;
gchar *orange_raw_file;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
/* supposed to run test in build directory */
if (root_path == NULL)
root_path = "..";
gchar *orange_png_file, *pipeline;
uint8_t *content;
gsize content_len;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
/* supposed to run test in build directory */
if (root_path == NULL)
root_path = "..";
ml_pipeline_element_h filter_h = nullptr;
gchar *pipeline, *test_model;
int status;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
/* Skip this test if enable-tensorflow-lite is false */
if (!is_enabled_tensorflow_lite)
ml_pipeline_element_h filter_h = nullptr;
gchar *pipeline, *test_model;
int status;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
/* Skip this test if enable-tensorflow-lite is false */
if (!is_enabled_tensorflow_lite)
gchar *pipeline, *test_model;
gchar *ret_prop;
int status;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
/* Skip this test if enable-tensorflow-lite is false */
if (!is_enabled_tensorflow_lite)
gchar *pipeline, *test_model;
gchar *ret_prop;
int status;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
/* Skip this test if enable-tensorflow-lite is false */
if (!is_enabled_tensorflow_lite)
ml_pipeline_element_h filter_h = nullptr;
gchar *pipeline, *test_model;
int status;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
/* Skip this test if enable-tensorflow-lite is false */
if (!is_enabled_tensorflow_lite)
ml_tensors_info_h in_info;
ml_tensors_data_h input, output;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
ml_tensors_data_h input, output;
ml_tensor_dimension in_dim;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
char *name = NULL;
int status;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
ml_tensors_data_h input, output;
int status;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
unsigned long open_duration = 0, invoke_duration = 0, close_duration = 0;
gint64 start, end;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
void *data_ptr;
size_t data_size;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model, *test_file;
gchar *contents = NULL;
gsize len = 0;
ml_tensor_dimension in_dim, out_dim;
int status;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
ml_single_h single;
int status;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
ml_tensor_dimension in_dim, out_dim;
int status;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
unsigned int count = 0;
int status;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
ml_single_h single;
int status;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
*/
TEST (nnstreamer_capi_singleshot, parallel_runs)
{
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
const gint num_threads = 3;
const gint num_cases = 3;
*/
TEST (nnstreamer_capi_singleshot, close_while_running)
{
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
pthread_t thread;
single_shot_thread_data ss_data;
ml_tensors_info_h in_info;
ml_tensor_dimension in_dim;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
unsigned int count = 0;
int status;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
ml_tensor_dimension in_dim;
ml_tensors_data_h input, output;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
size_t data_size;
float *data;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
void *data;
size_t data_size;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
int status;
char *prop_value = NULL;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
void *data;
size_t data_size;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
size_t data_size;
float *data;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
char *name = NULL;
int status;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
ml_single_h single;
int status;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
void *data_ptr;
size_t data_size;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model, *test_file;
guint8 *contents_uint8 = NULL;
gfloat *contents_float = NULL;
void *data_ptr;
size_t data_size;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
ml_tensors_info_h in_info, out_info;
ml_tensor_dimension in_dim, out_dim;
int status;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
int status;
size_t data_size;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
gfloat *contents_float = NULL;
int status;
size_t data_size;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
gfloat *contents_float = NULL;
ml_tensor_type_e tmp_type = ML_TENSOR_TYPE_UNKNOWN;
ml_tensor_dimension tmp_dim;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
ml_tensor_type_e tmp_type = ML_TENSOR_TYPE_UNKNOWN;
ml_tensor_dimension tmp_dim, in_dim;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
ml_tensors_info_h in_info, out_info;
ml_tensors_data_h input, output;
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
status = ml_option_create (&option);
EXPECT_EQ (status, ML_ERROR_NONE);
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
status = ml_option_create (&option);
EXPECT_EQ (status, ML_ERROR_NONE);
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
gchar *test_model;
/* supposed to run test in build directory */
*/
TEST (nnstreamer_capi_internal, validate_model_file_02_n)
{
- const gchar *sroot_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *sroot_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
const gchar cf_name[] = "libnnstreamer_customfilter_passthrough_variable" SO_FILE_EXTENSION;
gchar *lib_path = NULL;
gchar *test_model1 = NULL;
*/
TEST (nnstreamer_capi_internal, validate_model_file_03_n)
{
- const gchar *root_path = g_getenv ("NNSTREAMER_SOURCE_ROOT_PATH");
+ const gchar *root_path = g_getenv ("MLAPI_SOURCE_ROOT_PATH");
int status;
ml_nnfw_type_e nnfw;
gchar *test_dir1, *test_dir2;