]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/rm-lld.git/blob - test/Module.xs
rm: k2: rename the DSPClientTestProject
[keystone-rtos/rm-lld.git] / test / Module.xs
1 /******************************************************************************
2  * FILE PURPOSE: RM unit test files.
3  ******************************************************************************
4  * FILE NAME: module.xs
5  *
6  * DESCRIPTION: 
7  *  This file contains the module specification for RM test files.
8  *
9  * Copyright (C) 2012-2013, Texas Instruments, Inc.
10  *****************************************************************************/
12 /* Load the library utility. */
13 var libUtility = xdc.loadCapsule ("../build/buildlib.xs");
15 /**************************************************************************
16  * FUNCTION NAME : modBuild
17  **************************************************************************
18  * DESCRIPTION   :
19  *  The function is used to add all the source files in the test 
20  *  directory into the package.
21  **************************************************************************/
22 function modBuild() 
23 {
24     /* Add all the .c files to the release package. */
25     var testFiles = libUtility.listAllFiles (".c", "test", true);
26     for (var k = 0 ; k < testFiles.length; k++)
27         Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
29     /* Add all the .h files to the release package. */
30     var testFiles = libUtility.listAllFiles (".h", "test", true);
31     for (var k = 0 ; k < testFiles.length; k++)
32         Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
34     /* Add all the .cmd files to the release package. */
35     var testFiles = libUtility.listAllFiles (".cmd", "test", true);
36     for (var k = 0 ; k < testFiles.length; k++)
37         Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
39     /* Add all the .cfg files to the release package. */
40     var testFiles = libUtility.listAllFiles (".cfg", "test", true);
41     for (var k = 0 ; k < testFiles.length; k++)
42         Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
44     /* Add all the .cfg.xs files to the release package. */
45     var testFiles = libUtility.listAllFiles (".cfg.xs", "test", true);
46     for (var k = 0 ; k < testFiles.length; k++)
47         Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
49     /* Add the .txt to the package */
50     var testFiles = libUtility.listAllFiles (".txt", "test", true);
51     for (var k = 0 ; k < testFiles.length; k++)
52         Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
54     /* Add the .dts to the package */
55     var testFiles = libUtility.listAllFiles (".dts", "test/dts_files", true);
56     for (var k = 0 ; k < testFiles.length; k++)
57         Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];    
59     /* Add the .dtb to the package */
60     var testFiles = libUtility.listAllFiles (".dtb", "test/dts_files", true);
61     for (var k = 0 ; k < testFiles.length; k++)
62         Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; 
64     /* Add all the make files to the release package. */
65     var testFiles = libUtility.listAllFiles ("makefile", "test", true);
66     for (var k = 0 ; k < testFiles.length; k++)
67         Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];        
68 }