mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
23 lines
573 B
Bash
Executable File
23 lines
573 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. ../.function
|
|
|
|
## engine.test -- Test engine feature
|
|
|
|
start_msg crypto_des3
|
|
|
|
$WINELOADER ./crypto_des3$SUFFIX password < inp/engine.inp | \
|
|
$WINELOADER ./crypto_base64$SUFFIX > err/engine.err
|
|
$WINELOADER ./crypto_base64$SUFFIX -d < err/engine.err | \
|
|
$WINELOADER ./crypto_des3$SUFFIX -d password > out/engine.out
|
|
|
|
# openssl des3 -in inp/engine.inp -out out/engine.out -pass pass:password -e
|
|
|
|
# ./crypto_base64 -d < tmp/ticket | ./crypto_des3 -d 200912281747
|
|
|
|
RESULT=$?
|
|
export RESULT
|
|
|
|
# Test against expected output
|
|
test_output_diff engine
|