This repository has been archived on 2025-06-24. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
scrypt-genpass/test/test.bash

15 lines
471 B
Bash
Executable file

#!/bin/bash
PROG=./scrypt-genpass
RESULTS=test/test_results.log
$PROG -t > $RESULTS 2>&1
($PROG -h |grep -v Version)>> $RESULTS 2>&1
$PROG -v -p b a >> $RESULTS 2>&1
$PROG -v -k test/keyfile1.dat -p abc ghi >> $RESULTS 2>&1
$PROG -v -l 2 -p a a >> $RESULTS 2>&1
$PROG -v -l 65 -p a a >> $RESULTS 2>&1
$PROG -v -l 64 -p a a >> $RESULTS 2>&1
$PROG -v -n -l 4 -p "Speak, friend, and enter." "The Doors of Durin" >> $RESULTS 2>&1
diff $RESULTS test/test_results.reference