Blame testcases/init_cca.sh

Packit 8681c6
#!/bin/sh
Packit 8681c6
#
Packit 8681c6
# COPYRIGHT (c) International Business Machines Corp. 2010-2017
Packit 8681c6
#
Packit 8681c6
# This program is provided under the terms of the Common Public License,
Packit 8681c6
# version 1.0 (CPL-1.0). Any use, reproduction or distribution for this software
Packit 8681c6
# constitutes recipient's acceptance of CPL-1.0 terms which can be found
Packit 8681c6
# in the file LICENSE file or at https://opensource.org/licenses/cpl1.0.php
Packit 8681c6
#
Packit 8681c6
Packit 8681c6
for j in S A E; do
Packit 8681c6
	echo "---"
Packit 8681c6
	echo "CLEARING 'NEW' register for key type '$j'"
Packit 8681c6
	panel.exe -c -t $j
Packit 8681c6
	echo "Exit value was '$?'"
Packit 8681c6
	for i in F M L; do
Packit 8681c6
		echo "  LOADING key type '$j', key part '$i'"
Packit 8681c6
		if [ "$j" = "E" ]; then
Packit 8681c6
			panel.exe -l -t $j -p $i 0202020202020202020202020202020202020202020202020202020202020202
Packit 8681c6
		else
Packit 8681c6
			panel.exe -l -t $j -p $i 020202020202020202020202020202020202020202020202
Packit 8681c6
		fi
Packit 8681c6
		echo "  Exit value was '$?'"
Packit 8681c6
	done
Packit 8681c6
	echo "SETTING new key"
Packit 8681c6
	panel.exe -s -t $j
Packit 8681c6
	echo "Exit value was '$?'"
Packit 8681c6
done