Add unit test infrastructure

This commit is contained in:
mbanth
2021-05-19 16:07:40 +01:00
parent 1ddbfdd8c1
commit 9b2efd07ad
6 changed files with 508 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
// Copyright 2021 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include "xua_unit_tests.h"
void test_null(){
TEST_ASSERT_MESSAGE(1, "Success!");
}

View File

@@ -0,0 +1,25 @@
// Copyright 2018-2021 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#ifndef VTB_UNIT_TESTS_H_
#define VTB_UNIT_TESTS_H_
#include "unity.h"
#ifdef __XC__
#include <xs1.h>
#include <string.h>
#include <math.h>
#include <xclib.h>
#include "audio_test_tools.h"
#include "voice_toolbox.h"
#include "voice_toolbox_fp.h"
#include "vtb_references.h"
#define TEST_ASM 1
#endif // __XC__
#endif /* VTB_UNIT_TESTS_H_ */