mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-29 21:57:16 +02:00
Преобразование OPI -> OInt (workflow)
This commit is contained in:
parent
2b56800b69
commit
22302abfce
@ -1,27 +1,23 @@
|
||||
#Use 1commands
|
||||
#Use coverage
|
||||
#Use fs
|
||||
#Use oint
|
||||
|
||||
FS.EnsureEmptyDirectory("./OInt/coverage/data");
|
||||
PathToStat = FS.FullPath("./OInt/coverage/data/stat.json");
|
||||
FS.EnsureEmptyDirectory("coverage\data");
|
||||
PathToStat = "coverage\stat.json";
|
||||
|
||||
Command = New Command;
|
||||
Command.SetCommand("oscript");
|
||||
Command.AddParameter(StrTemplate("-codestat=%1", PathToStat));
|
||||
Command.AddParameter(FS.FullPath("./OInt/tests/Modules/Coverage_RunAllTests.os")); // File start tests
|
||||
Command.AddParameter("D:\REPOS\OpenIntegrations\src\ru\OInt\tests\Modules\Coverage_ЗапуwithtoInwithехTestоin.os"); // File start tests
|
||||
Command.ShowOutputImmediately(True);
|
||||
|
||||
ReturnCode = Command.Execute();
|
||||
File_Stat = New File(PathToStat);
|
||||
PackageName = "oint";
|
||||
|
||||
GenerationProcessor = New CoverageReportGenerator();
|
||||
|
||||
Message(File_Stat.FullName);
|
||||
ProcessorObject = GenerationProcessor.StatisticsFile(File_Stat.FullName);
|
||||
ProcessorObject = ProcessorObject.SourceDirectory(FS.FullPath("./OInt"));
|
||||
ProcessorObject = ProcessorObject.WorkingDirectory(FS.FullPath("./OInt/coverage/data"));
|
||||
ProcessorObject = ProcessorObject.GenericCoverage();
|
||||
|
||||
ProcessorObject.Formulate();
|
||||
GenerationProcessor.ОтноwithительныеPaths()
|
||||
.StatisticsFile(File_Stat.FullName)
|
||||
.SourceDirectory("D:\REPOS\OpenIntegrations\src\ru\OInt\core")
|
||||
.GenericCoverage()
|
||||
.Formulate();
|
||||
|
@ -77,10 +77,10 @@ Function HMAC(Val Key, Val Data, Type, BlockSize) Export
|
||||
Ipad = GetBinaryDataBufferFromHexString(RepeatString("36", BlockSize));
|
||||
Opad = GetBinaryDataBufferFromHexString(RepeatString("5c", BlockSize));
|
||||
|
||||
Ipad.WriteBitwiseExclusiveOr(0, Key);
|
||||
Ipad.WriteBitwiseXor(0, Key);
|
||||
Ikeypad = GetBinaryDataFromBinaryDataBuffer(ipad);
|
||||
|
||||
Opad.WriteBitwiseExclusiveOr(0, Key);
|
||||
Opad.WriteBitwiseXor(0, Key);
|
||||
Okeypad = GetBinaryDataFromBinaryDataBuffer(opad);
|
||||
|
||||
Return Hash(UniteBinaryData(okeypad, Hash(UniteBinaryData(ikeypad, Data), Type)), Type);
|
||||
|
@ -77,10 +77,10 @@ Function HMAC(Val Key, Val Data, Type, BlockSize) Export
|
||||
Ipad = GetBinaryDataBufferFromHexString(RepeatString("36", BlockSize));
|
||||
Opad = GetBinaryDataBufferFromHexString(RepeatString("5c", BlockSize));
|
||||
|
||||
Ipad.WriteBitwiseExclusiveOr(0, Key);
|
||||
Ipad.WriteBitwiseXor(0, Key);
|
||||
Ikeypad = GetBinaryDataFromBinaryDataBuffer(ipad);
|
||||
|
||||
Opad.WriteBitwiseExclusiveOr(0, Key);
|
||||
Opad.WriteBitwiseXor(0, Key);
|
||||
Okeypad = GetBinaryDataFromBinaryDataBuffer(opad);
|
||||
|
||||
Return Hash(UniteBinaryData(okeypad, Hash(UniteBinaryData(ikeypad, Data), Type)), Type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user