Skip to content

Commit c330160

Browse files
committed
Add tests for handling JavaScript files
1 parent 3292b02 commit c330160

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

cmake/CMakeTest.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ if(Python3_FOUND)
7575
endif(NOT client_result)
7676
endif(EXISTS "${LOGS}/url.log")
7777

78-
set(extensions_all "exe" "ex_" "msi" "256appx" "512appx" "cat" "ps1" "psc1" "mof")
79-
set(extensions_nocat "exe" "ex_" "msi" "256appx" "512appx" "ps1" "psc1" "mof")
80-
set(extensions_nocatappx "exe" "ex_" "msi" "ps1" "psc1" "mof")
78+
set(extensions_all "exe" "ex_" "msi" "256appx" "512appx" "cat" "ps1" "psc1" "mof" "js")
79+
set(extensions_nocat "exe" "ex_" "msi" "256appx" "512appx" "ps1" "psc1" "mof" "js")
80+
set(extensions_nocatappx "exe" "ex_" "msi" "ps1" "psc1" "mof" "js")
8181
set(formats "pem" "der")
8282

8383
else(NOT cryptography_error)

tests/files/unsigned.cat

249 Bytes
Binary file not shown.

tests/files/unsigned.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log("Hello, world!");

tests/sources/CatalogDefinitionFileName.cdf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,6 @@ CATATTR1=0x11010001:OSAttr:2:6.0
5555

5656
<HASH>MOFfile=..\files\unsigned.mof
5757
<HASH>MOFfileATTR1=0x11010001:File:unsigned.mof
58+
59+
<HASH>JSfile=..\files\unsigned.js
60+
<HASH>JSfileATTR1=0x11010001:File:unsigned.js

0 commit comments

Comments
 (0)