diff options
author | Hao Zhang | 2015-12-13 09:40:50 -0600 |
---|---|---|
committer | Hao Zhang | 2015-12-13 09:40:50 -0600 |
commit | b6ee58a180c107017e777031952fb46c42b7b681 (patch) | |
tree | beafa1d0caab6ed8fea4ea80a6dd1c4a5a2fa9f2 | |
parent | 1a96f0a7f4cb4f85c95fd0fe3a75f937d27fdf69 (diff) | |
download | pktlib-b6ee58a180c107017e777031952fb46c42b7b681.tar.gz pktlib-b6ee58a180c107017e777031952fb46c42b7b681.tar.xz pktlib-b6ee58a180c107017e777031952fb46c42b7b681.zip |
pktlib: keystone: package all the test project files
Signed-off-by: Hao Zhang <hzhang@ti.com>
-rwxr-xr-x | ti/runtime/pktlib/test/Module.xs | 174 |
1 files changed, 81 insertions, 93 deletions
diff --git a/ti/runtime/pktlib/test/Module.xs b/ti/runtime/pktlib/test/Module.xs index 87678ef..3482415 100755 --- a/ti/runtime/pktlib/test/Module.xs +++ b/ti/runtime/pktlib/test/Module.xs | |||
@@ -29,123 +29,111 @@ function modBuild() | |||
29 | Pkg.otherFiles[Pkg.otherFiles.length++] = "test/README.txt"; | 29 | Pkg.otherFiles[Pkg.otherFiles.length++] = "test/README.txt"; |
30 | Pkg.otherFiles[Pkg.otherFiles.length++] = "test/test_sharedHeaps.c"; | 30 | Pkg.otherFiles[Pkg.otherFiles.length++] = "test/test_sharedHeaps.c"; |
31 | 31 | ||
32 | var socFamily = java.lang.System.getenv("SOC_FAMILY"); | 32 | /* Add all the .cmd files to the release package. */ |
33 | if(socFamily != "KeyStone2") | 33 | var testFiles = libUtility.listAllFiles (".txt", "test/k1"); |
34 | { | 34 | for (var k = 0 ; k < testFiles.length; k++) |
35 | if ( buildFull != "YES" ) | 35 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
36 | { | ||
37 | /* Add all the .cmd files to the release package. */ | ||
38 | var testFiles = libUtility.listAllFiles ("_UnittestProject.txt", "test/k1"); | ||
39 | for (var k = 0 ; k < testFiles.length; k++) | ||
40 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | ||
41 | } | ||
42 | else | ||
43 | { | ||
44 | Pkg.otherFiles[Pkg.otherFiles.length++] = "test/k1/pktlibC66UnitTestProject.txt"; | ||
45 | } | ||
46 | 36 | ||
47 | var testFiles = libUtility.listAllFiles (".c", "test/k1"); | 37 | var testFiles = libUtility.listAllFiles (".c", "test/k1"); |
48 | for (var k = 0 ; k < testFiles.length; k++) | 38 | for (var k = 0 ; k < testFiles.length; k++) |
49 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 39 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
50 | 40 | ||
51 | var testFiles = libUtility.listAllFiles (".h", "test/k1"); | 41 | var testFiles = libUtility.listAllFiles (".h", "test/k1"); |
52 | for (var k = 0 ; k < testFiles.length; k++) | 42 | for (var k = 0 ; k < testFiles.length; k++) |
53 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 43 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
54 | 44 | ||
55 | var testFiles = libUtility.listAllFiles (".cfg", "test/k1"); | 45 | var testFiles = libUtility.listAllFiles (".cfg", "test/k1"); |
56 | for (var k = 0 ; k < testFiles.length; k++) | 46 | for (var k = 0 ; k < testFiles.length; k++) |
57 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 47 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
58 | 48 | ||
59 | var testFiles = libUtility.listAllFiles (".cmd", "test/k1"); | 49 | var testFiles = libUtility.listAllFiles (".cmd", "test/k1"); |
60 | for (var k = 0 ; k < testFiles.length; k++) | 50 | for (var k = 0 ; k < testFiles.length; k++) |
61 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 51 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
62 | } else { | ||
63 | 52 | ||
64 | /* Add all the .c files to the release package. */ | 53 | /* Add all the .c files to the release package. */ |
65 | var testFiles = libUtility.listAllFiles (".c", "test/k2h"); | 54 | var testFiles = libUtility.listAllFiles (".c", "test/k2h"); |
66 | for (var k = 0 ; k < testFiles.length; k++) | 55 | for (var k = 0 ; k < testFiles.length; k++) |
67 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 56 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
68 | 57 | ||
69 | var testFiles = libUtility.listAllFiles (".c", "test/k2k"); | 58 | var testFiles = libUtility.listAllFiles (".c", "test/k2k"); |
70 | for (var k = 0 ; k < testFiles.length; k++) | 59 | for (var k = 0 ; k < testFiles.length; k++) |
71 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 60 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
72 | 61 | ||
73 | var testFiles = libUtility.listAllFiles (".c", "test/k2e"); | 62 | var testFiles = libUtility.listAllFiles (".c", "test/k2e"); |
74 | for (var k = 0 ; k < testFiles.length; k++) | 63 | for (var k = 0 ; k < testFiles.length; k++) |
75 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 64 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
76 | 65 | ||
77 | var testFiles = libUtility.listAllFiles (".c", "test/k2l"); | 66 | var testFiles = libUtility.listAllFiles (".c", "test/k2l"); |
78 | for (var k = 0 ; k < testFiles.length; k++) | 67 | for (var k = 0 ; k < testFiles.length; k++) |
79 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 68 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
80 | 69 | ||
81 | /* Add all the .h files to the release package. */ | 70 | /* Add all the .h files to the release package. */ |
82 | var testFiles = libUtility.listAllFiles (".h", "test/k2h"); | 71 | var testFiles = libUtility.listAllFiles (".h", "test/k2h"); |
83 | for (var k = 0 ; k < testFiles.length; k++) | 72 | for (var k = 0 ; k < testFiles.length; k++) |
84 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 73 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
85 | 74 | ||
86 | var testFiles = libUtility.listAllFiles (".h", "test/k2k"); | 75 | var testFiles = libUtility.listAllFiles (".h", "test/k2k"); |
87 | for (var k = 0 ; k < testFiles.length; k++) | 76 | for (var k = 0 ; k < testFiles.length; k++) |
88 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 77 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
89 | 78 | ||
90 | var testFiles = libUtility.listAllFiles (".h", "test/k2e"); | 79 | var testFiles = libUtility.listAllFiles (".h", "test/k2e"); |
91 | for (var k = 0 ; k < testFiles.length; k++) | 80 | for (var k = 0 ; k < testFiles.length; k++) |
92 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 81 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
93 | 82 | ||
94 | var testFiles = libUtility.listAllFiles (".h", "test/k2l"); | 83 | var testFiles = libUtility.listAllFiles (".h", "test/k2l"); |
95 | for (var k = 0 ; k < testFiles.length; k++) | 84 | for (var k = 0 ; k < testFiles.length; k++) |
96 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 85 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
97 | 86 | ||
98 | 87 | ||
99 | /* Add all the .cfg files to the release package. */ | 88 | /* Add all the .cfg files to the release package. */ |
100 | var testFiles = libUtility.listAllFiles (".cfg", "test/k2h"); | 89 | var testFiles = libUtility.listAllFiles (".cfg", "test/k2h"); |
101 | for (var k = 0 ; k < testFiles.length; k++) | 90 | for (var k = 0 ; k < testFiles.length; k++) |
102 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 91 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
103 | 92 | ||
104 | var testFiles = libUtility.listAllFiles (".cfg", "test/k2k"); | 93 | var testFiles = libUtility.listAllFiles (".cfg", "test/k2k"); |
105 | for (var k = 0 ; k < testFiles.length; k++) | 94 | for (var k = 0 ; k < testFiles.length; k++) |
106 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 95 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
107 | 96 | ||
108 | var testFiles = libUtility.listAllFiles (".cfg", "test/k2e"); | 97 | var testFiles = libUtility.listAllFiles (".cfg", "test/k2e"); |
109 | for (var k = 0 ; k < testFiles.length; k++) | 98 | for (var k = 0 ; k < testFiles.length; k++) |
110 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 99 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
111 | 100 | ||
112 | var testFiles = libUtility.listAllFiles (".cfg", "test/k2l"); | 101 | var testFiles = libUtility.listAllFiles (".cfg", "test/k2l"); |
113 | for (var k = 0 ; k < testFiles.length; k++) | 102 | for (var k = 0 ; k < testFiles.length; k++) |
114 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 103 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
115 | 104 | ||
116 | /* Add all the .cmd files to the release package. */ | 105 | /* Add all the .cmd files to the release package. */ |
117 | var testFiles = libUtility.listAllFiles (".cmd", "test/k2h"); | 106 | var testFiles = libUtility.listAllFiles (".cmd", "test/k2h"); |
118 | for (var k = 0 ; k < testFiles.length; k++) | 107 | for (var k = 0 ; k < testFiles.length; k++) |
119 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 108 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
120 | 109 | ||
121 | var testFiles = libUtility.listAllFiles (".cmd", "test/k2k"); | 110 | var testFiles = libUtility.listAllFiles (".cmd", "test/k2k"); |
122 | for (var k = 0 ; k < testFiles.length; k++) | 111 | for (var k = 0 ; k < testFiles.length; k++) |
123 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 112 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
124 | 113 | ||
125 | var testFiles = libUtility.listAllFiles (".cmd", "test/k2e"); | 114 | var testFiles = libUtility.listAllFiles (".cmd", "test/k2e"); |
126 | for (var k = 0 ; k < testFiles.length; k++) | 115 | for (var k = 0 ; k < testFiles.length; k++) |
127 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 116 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
128 | 117 | ||
129 | var testFiles = libUtility.listAllFiles (".cmd", "test/k2l"); | 118 | var testFiles = libUtility.listAllFiles (".cmd", "test/k2l"); |
130 | for (var k = 0 ; k < testFiles.length; k++) | 119 | for (var k = 0 ; k < testFiles.length; k++) |
131 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 120 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
132 | 121 | ||
133 | /* Add all the .txt files to the release package. */ | 122 | /* Add all the .txt files to the release package. */ |
134 | var testFiles = libUtility.listAllFiles (".txt", "test/k2h"); | 123 | var testFiles = libUtility.listAllFiles (".txt", "test/k2h"); |
135 | for (var k = 0 ; k < testFiles.length; k++) | 124 | for (var k = 0 ; k < testFiles.length; k++) |
136 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 125 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
137 | 126 | ||
138 | var testFiles = libUtility.listAllFiles (".txt", "test/k2k"); | 127 | var testFiles = libUtility.listAllFiles (".txt", "test/k2k"); |
139 | for (var k = 0 ; k < testFiles.length; k++) | 128 | for (var k = 0 ; k < testFiles.length; k++) |
140 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 129 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
141 | 130 | ||
142 | var testFiles = libUtility.listAllFiles (".txt", "test/k2e"); | 131 | var testFiles = libUtility.listAllFiles (".txt", "test/k2e"); |
143 | for (var k = 0 ; k < testFiles.length; k++) | 132 | for (var k = 0 ; k < testFiles.length; k++) |
144 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 133 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
145 | 134 | ||
146 | var testFiles = libUtility.listAllFiles (".txt", "test/k2l"); | 135 | var testFiles = libUtility.listAllFiles (".txt", "test/k2l"); |
147 | for (var k = 0 ; k < testFiles.length; k++) | 136 | for (var k = 0 ; k < testFiles.length; k++) |
148 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; | 137 | Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k]; |
149 | } | ||
150 | } | 138 | } |
151 | 139 | ||