1 /******************************************************************************\r
2 * FILE PURPOSE: TCP3D Test files.\r
3 ******************************************************************************\r
4 * FILE NAME: module.xs\r
5 *\r
6 * DESCRIPTION: \r
7 * This file contains the module specification for TCP3D Driver Unit Test\r
8 * Files\r
9 *\r
10 * Copyright (C) 2009, Texas Instruments, Inc.\r
11 *****************************************************************************/\r
12 \r
13 /* Load the library utility. */\r
14 var libUtility = xdc.loadCapsule ("../build/buildlib.xs");\r
15 \r
16 var otherFiles = [\r
17 "test/gen_test_vectors/msvc/GenTestVectors.dsp",\r
18 "test/gen_test_vectors/msvc/Debug/GenTestVectors.exe",\r
19 "test/gen_test_vectors/simulator/debug/Test_c_model.exe",\r
20 "test/gen_test_vectors/cleanTestVect.bat",\r
21 "test/gen_test_vectors/genTestVect.bat",\r
22 "test/gen_test_vectors/genTestVect_200.bat",\r
23 "test/gen_test_vectors/GenConfig_wimax.m",\r
24 "test/gen_test_vectors/GenConfig_wcdma.m",\r
25 "test/gen_test_vectors/GenConfig_lte.m",\r
26 "test/gen_test_vectors/LTE_200/GenConfig_lte.m",\r
27 "test/gen_test_vectors/WCDMA_200/GenConfig_wcdma.m",\r
28 "test/gen_test_vectors/WIMAX_200/GenConfig_wimax.m",\r
29 ];\r
30 \r
31 /**************************************************************************\r
32 * FUNCTION NAME : modBuild\r
33 **************************************************************************\r
34 * DESCRIPTION :\r
35 * The function is used to add all the source files in the test \r
36 * directory into the package.\r
37 **************************************************************************/\r
38 function modBuild() \r
39 {\r
40 /* Add all the .c files to the release package. */\r
41 var testFiles = libUtility.listAllFiles (".c", "test", true);\r
42 for (var k = 0 ; k < testFiles.length; k++)\r
43 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
44 \r
45 /* Add all the .h files to the release package. */\r
46 var testFiles = libUtility.listAllFiles (".h", "test", true);\r
47 for (var k = 0 ; k < testFiles.length; k++)\r
48 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
49 \r
50 /* Add all the make files to the release package. */\r
51 var testFiles = libUtility.listAllFiles ("makefile", "test", true);\r
52 for (var k = 0 ; k < testFiles.length; k++)\r
53 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
54 \r
55 /* Add all the .cfg files to the release package. */\r
56 var testFiles = libUtility.listAllFiles (".cfg", "test", true);\r
57 for (var k = 0 ; k < testFiles.length; k++)\r
58 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
59 \r
60 /* Add all the .cmd files to the release package. */\r
61 var testFiles = libUtility.listAllFiles (".cmd", "test", true);\r
62 for (var k = 0 ; k < testFiles.length; k++)\r
63 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
64 \r
65 /* Add all the .txt files to the release package. */\r
66 var testFiles = libUtility.listAllFiles (".txt", "test", true);\r
67 for (var k = 0 ; k < testFiles.length; k++)\r
68 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
69 \r
70 /* Add all the .ini files to the release package. */\r
71 var testFiles = libUtility.listAllFiles (".ini", "test", true);\r
72 for (var k = 0 ; k < testFiles.length; k++)\r
73 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
74 \r
75 /* Add all other files to the release package. */\r
76 for (var k = 0 ; k < otherFiles.length; k++)\r
77 Pkg.otherFiles[Pkg.otherFiles.length++] = otherFiles[k];\r
78 }\r
79 \r