From 6b56aef0734a5ebc79046d10e5ed0fb1ea5623f8 Mon Sep 17 00:00:00 2001 From: olszomal Date: Thu, 5 Jun 2025 10:05:49 +0200 Subject: [PATCH] Add tests for handling JavaScript files --- cmake/CMakeTest.cmake | 6 +++--- tests/files/unsigned.cat | Bin 2824 -> 3073 bytes tests/files/unsigned.js | 1 + tests/sources/CatalogDefinitionFileName.cdf | 3 +++ 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 tests/files/unsigned.js diff --git a/cmake/CMakeTest.cmake b/cmake/CMakeTest.cmake index f589ee3..417b27c 100644 --- a/cmake/CMakeTest.cmake +++ b/cmake/CMakeTest.cmake @@ -75,9 +75,9 @@ if(Python3_FOUND) endif(NOT client_result) endif(EXISTS "${LOGS}/url.log") - set(extensions_all "exe" "ex_" "msi" "256appx" "512appx" "cat" "ps1" "psc1" "mof") - set(extensions_nocat "exe" "ex_" "msi" "256appx" "512appx" "ps1" "psc1" "mof") - set(extensions_nocatappx "exe" "ex_" "msi" "ps1" "psc1" "mof") + set(extensions_all "exe" "ex_" "msi" "256appx" "512appx" "cat" "ps1" "psc1" "mof" "js") + set(extensions_nocat "exe" "ex_" "msi" "256appx" "512appx" "ps1" "psc1" "mof" "js") + set(extensions_nocatappx "exe" "ex_" "msi" "ps1" "psc1" "mof" "js") set(formats "pem" "der") else(NOT cryptography_error) diff --git a/tests/files/unsigned.cat b/tests/files/unsigned.cat index 73ad5aed68a8860d3f1e600fbfe347fd9eaddb49..7c48c6f4fafd8343be660ae6688bda4325024207 100644 GIT binary patch delta 285 zcmeAWYm`VdXyX3M#;Mij(e|B}k)3Hl6Zboy&?_cJMneW5<31awHX9=gW0N@-BT()F zQ0R;S4;vR$kcW|xMZj|Rim%bJ-CoV&x~FX>*WVZCH8M3YGcYx$R&J9q6arbkxu2tw2>{xzSzG`B delta 121 zcmZpa=nzXZXyRsJ}kwswEjPUL$zi#?MOFfile=..\files\unsigned.mof MOFfileATTR1=0x11010001:File:unsigned.mof + +JSfile=..\files\unsigned.js +JSfileATTR1=0x11010001:File:unsigned.js