1 /******************************************************************************\r
2 * FILE PURPOSE: GPIO LLD unit test files.\r
3 ******************************************************************************\r
4 * FILE NAME: module.xs\r
5 *\r
6 * DESCRIPTION: \r
7 * This file contains the module specification for GPIO LLD test files.\r
8 *\r
9 * Copyright (C) 2009-2012, Texas Instruments, Inc.\r
10 *****************************************************************************/\r
11 \r
12 /* Load the library utility. */\r
13 var libUtility = xdc.loadCapsule ("../build/buildlib.xs");\r
14 \r
15 /**************************************************************************\r
16 * FUNCTION NAME : modBuild\r
17 **************************************************************************\r
18 * DESCRIPTION :\r
19 * The function is used to add all the source files in the test \r
20 * directory into the package.\r
21 **************************************************************************/\r
22 function modBuild() \r
23 {\r
24 /* Add all the .c files to the release package. */\r
25 var testFiles = libUtility.listAllFiles (".c", "test", true);\r
26 for (var k = 0 ; k < testFiles.length; k++)\r
27 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
28 \r
29 /* Add all the .h files to the release package. */\r
30 var testFiles = libUtility.listAllFiles (".h", "test", true);\r
31 for (var k = 0 ; k < testFiles.length; k++)\r
32 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
33 \r
34 /* Add all the makefiles files to the release package. */\r
35 var testFiles = libUtility.listAllFiles ("makefile", "test", true);\r
36 for (var k = 0 ; k < testFiles.length; k++)\r
37 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
38 \r
39 /* Add all the .cmd files to the release package. */\r
40 var testFiles = libUtility.listAllFiles (".cmd", "test", true);\r
41 for (var k = 0 ; k < testFiles.length; k++)\r
42 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
43 \r
44 /* Add all the .cfg files to the release package. */\r
45 var testFiles = libUtility.listAllFiles (".cfg", "test", true);\r
46 for (var k = 0 ; k < testFiles.length; k++)\r
47 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
48 \r
49 /* Add the .txt to the package */\r
50 var testFiles = libUtility.listAllFiles (".txt", "test", true);\r
51 for (var k = 0 ; k < testFiles.length; k++)\r
52 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
53 /* Add all the .mk files to the release package. */\r
54 var mkFiles = libUtility.listAllFiles (".mk", "test", true);\r
55 for (var k = 0 ; k < mkFiles.length; k++)\r
56 Pkg.otherFiles[Pkg.otherFiles.length++] = mkFiles[k];\r
57 \r
58 /* Add all the .xs files to the release package. */\r
59 var mkFiles = libUtility.listAllFiles (".xs", "test", true);\r
60 for (var k = 0 ; k < mkFiles.length; k++)\r
61 Pkg.otherFiles[Pkg.otherFiles.length++] = mkFiles[k];\r
62 }\r