Skip to content

Commit

Permalink
test_pyi25.ps1 updated
Browse files Browse the repository at this point in the history
Signed-off-by: SONIABHISHEK121 <[email protected]>
  • Loading branch information
ABHISHEKSONI121 committed Aug 3, 2024
1 parent 118bfb3 commit a1ddf8c
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 3 deletions.
17 changes: 17 additions & 0 deletions reingart.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-----BEGIN CERTIFICATE-----
MIIDSDCCAjCgAwIBAgIIeF8lUl48osswDQYJKoZIhvcNAQENBQAwODEaMBgGA1UEAwwRQ29tcHV0
YWRvcmVzIFRlc3QxDTALBgNVBAoMBEFGSVAxCzAJBgNVBAYTAkFSMB4XDTIzMDcxNzE3NDIyOVoX
DTI1MDcxNjE3NDIyOVowLjERMA8GA1UEAwwIcmVpbmdhcnQxGTAXBgNVBAUTEENVSVQgMjAyNjc1
NjUzOTMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC2NxoJg4hKU5xO3Oq3bA2hYV16
PZu++RenUzjDTf1fofFw9LZ4FsJu1OaquZzCIcLmgYa49poHRTTPTD111nM5RGAjQlpg8kvR4TeP
MhvagITUdPaqwBFSmPcbWWzRmBwVs6nd0281gmAnaVHjkU4g+gdnWU9C5QMG7HhOmKcJD34iYl2A
x+FBz7Id5CRH6kBvKudCRiu0SDeXI6vgc+oh2jIWR30QIcm2spqnXtSchyLd51zhuruBE//SUJ/G
37pvNi6mymLPQAKSXU35W0LD8p2nmwpkyDF4hX0k+JoNbp2QBa8pBsGRE5tiWHEdGJa0F4OCjkC3
3X+b0+mMg+jhAgMBAAGjYDBeMAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUs7LT//3put7eja8R
IZzWIH3yT28wHQYDVR0OBBYEFLeul03RbyQzEXDlQZnJEClwxcHbMA4GA1UdDwEB/wQEAwIF4DAN
BgkqhkiG9w0BAQ0FAAOCAQEAWUSGBn7WXpQu2rLLFOPvuY/GIY1CP1duxnfkervkXGMqhOMnRYyc
TyD1IUMBYhvO01r6uv7tzsOAen9ZQ0ZtOmHpUqpik8DA6hjh+n1Pj17KDMkTXOkFUPc43VCnHeH8
ScyIVXXGLE0RW/u0vVfT9G3z5n+mFQxWwWfou9ct7jPvRZWzGt4R+U1CYWFtSJvAc3Ytr3KXpFxy
JpnQ2uifB29Vu10H9zlfnqDChUQ2xsCnxmz6HV2js3mUrm8zTnosbClc3H4scJVVk3NfmztHGvEG
uwg0BWLZzptLpVpCzFukHsD8Lz/ydsM46ZemjfGvWjc6hzJYSOBNcGdzfR8lJg==
-----END CERTIFICATE-----
27 changes: 27 additions & 0 deletions reingart.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAtjcaCYOISlOcTtzqt2wNoWFdej2bvvkXp1M4w039X6HxcPS2
eBbCbtTmqrmcwiHC5oGGuPaaB0U0z0w9ddZzOURgI0JaYPJL0eE3jzIb2oCE1HT2
qsARUpj3G1ls0ZgcFbOp3dNvNYJgJ2lR45FOIPoHZ1lPQuUDBux4TpinCQ9+ImJd
gMfhQc+yHeQkR+pAbyrnQkYrtEg3lyOr4HPqIdoyFkd9ECHJtrKap17UnIci3edc
4bq7gRP/0lCfxt+6bzYupspiz0ACkl1N+VtCw/Kdp5sKZMgxeIV9JPiaDW6dkAWv
KQbBkRObYlhxHRiWtBeDgo5At91/m9PpjIPo4QIDAQABAoIBAQCI3XaXMs8KVScR
LWq3/1d1ojaefOwhU+RqcF4whMIONQuvdoAgT6gXq57fGbAfOVC15xCUmdY0I814
76Eyg7PkjfFQSqSsMRK2QN6ElnTJeMNM+dXVh5L7YZ4qUs8j14cw3dR3pDriDF3A
/KDft+LhbixlenXIn0/YwYHUN2EvsceHnS/HvY7n9CetVBt2YFoAUjUoOSe8KzfO
sCYfP2Qqr/QCUnUFswhBswimrQ1p/0AvtbRbsDVNt6kEtSAR+XlCS1Bc0Qb0FilX
xsdUg9BGnV0m6oDxthIOhEVTjgmLp6qTh9/OY/ttZsKBd43FFOWKMAbd7rT6h2kW
OhiD7ZzJAoGBAOz7QetqKb3mboY6fn5NDT9TVISaONIxuC6lLRCXmDAm85x3PGf0
zAhUx6WviaTWTMtkyjNbmfVB5FgxSf5YAN+q0a+dkHm8sGmwemYhyfWscXEhGYqO
ah4Lp/0qVbk3u8ZnFpkUB2x4+K0qi5TU3ORWMtBi982OJf/snTDky5VjAoGBAMTW
rn7Qeg28XQtN+jEB99jtGB9Zaz1g+Qsr5atmHm5imR/hY46MUiLWDHo/hJ60vYdV
YxPR+B9CT9Tpv75iPv68LDvYSEEvHcWDbyWmBYnnftMTRl7QJHSb9ZQ9ud6BrEa3
AmTbnbr0Vcz8TmC3Asd5pT+BiURcxff0AqETcU3rAoGBAJV9JacYD/6/pka8DWEk
v8+LhEwlcOR/Ap1CCrxltFXjrFauDIfTLwWuXUZSBfTaThUbnkVpaiQBDcboSLHN
17c/7Qfnz+RLN8ljzsIwXFLCFcl0RMVXcu9DERQtKWguFSBhlSq5LLmrUcsChIw8
/p53FZTIaWLcYXIgU0Qtf5LbAoGBAKvN/cwuRvoKOOQPEZsI7r1mZDGoqJOQOo9n
pzTtEw6h/Kj43x6il2ZUkdt56VVkyDCBdNLt57XQ+UELLRMNSZKpx6oMYzSR3Vhy
Gecwe5Ecf3PYVQmYftlQ7w6OudbeM/Ic9nf1wDxX2zPp3LdJxaE6KeO+OoNyvlBn
qIvTHog1AoGANj2NNfqhJnd9CIGOMXN6hOkZ/CkEd3uNyZsTl3bwIcz3HOET5pe5
t7Rwg/iENf58qedkQwC0PDTZuuItRBquxRFGSbcr6+8pHSnt40GECEt9CNTfCGdO
DTHZKouJHm+CStvGR+DCiv5fi7XRbGcM1eiIhcFyaJAW2zBaZwKzUSk=
-----END RSA PRIVATE KEY-----
27 changes: 24 additions & 3 deletions tests/powershell/test_pyi25.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,33 @@

$ErrorActionPreference = "Stop"

# Set the working directory to the root of the repository
Set-Location $PSScriptRoot\..

# Verify dependencies
if (-not (Test-Path ".\ejemplos\pyi25\pyi25.vbs")) {
Write-Error "pyi25.vbs not found. Ensure all dependencies are installed."
exit 1
}

# Set execution policy for this script
try {
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force
} catch {
Write-Warning "Failed to set execution policy. Script may fail if not run with appropriate permissions."
}

# Run the VBS script and capture its output
$output = cscript //nologo ejemplos\pyi25\pyi25.vbs
try {
$output = cscript //nologo .\ejemplos\pyi25\pyi25.vbs
} catch {
Write-Error "Failed to execute pyi25.vbs: $_"
exit 1
}

# Check if the script executed successfully
if ($LASTEXITCODE -ne 0) {
Write-Error "pyi25.vbs failed to execute"
Write-Error "pyi25.vbs failed to execute with exit code $LASTEXITCODE"
exit 1
}

Expand All @@ -28,7 +49,7 @@ if ($output -notmatch "Listo!") {
}

# Check if the output file was created
if (-not (Test-Path "ejemplos\pyi25\barras.png")) {
if (-not (Test-Path ".\ejemplos\pyi25\barras.png")) {
Write-Error "Barcode image file was not created"
exit 1
}
Expand Down

0 comments on commit a1ddf8c

Please sign in to comment.