Add a test for passing the key on the commandline
This doesn't really exercise anything new, but there was some concern
that it may not work. Now I can prove that it works.
@@ -24,14 +24,18 @@ cd -
# Create the firmware
$FWUP_CREATE -c -f $CONFIG -o $FWFILE
-# Sign the firmware out of place
+# Sign the firmware out of place using the file way
$FWUP_CREATE -S -s $WORK/fwup-key.priv -i $FWFILE -o $FWFILE.2
+# Sign the firmware out of place using the cmdline way
+$FWUP_CREATE -S --private-key $(cat $WORK/fwup-key.priv) -i $FWFILE -o $FWFILE.3
+
# Sign the firmware in place
$FWUP_CREATE -S -s $WORK/fwup-key.priv -i $FWFILE -o $FWFILE
# Check that in place and out of place signing are the same
diff $FWFILE $FWFILE.2
+diff $FWFILE $FWFILE.3
# Check that applying the firmware with checking signatures works
$FWUP_APPLY -q -p $WORK/fwup-key.pub -a -d $IMGFILE -i $FWFILE -t complete
