forked from PAWPAW-Mirror/lib_xua
Add unit test infrastructure
This commit is contained in:
7
tests/xua_unit_tests/src/test_hid/test_hid.xc
Normal file
7
tests/xua_unit_tests/src/test_hid/test_hid.xc
Normal 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!");
|
||||
}
|
||||
25
tests/xua_unit_tests/src/xua_unit_tests.h
Normal file
25
tests/xua_unit_tests/src/xua_unit_tests.h
Normal 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_ */
|
||||
Reference in New Issue
Block a user