mirror of
https://github.com/jfdelnero/HxCFloppyEmulator.git
synced 2026-07-28 04:06:36 +00:00
convert tests.
This commit is contained in:
+11
-1
@@ -46,6 +46,16 @@ unzip -o ../data/text_files.zip || exit 1
|
||||
../scripts/fs_put_files.sh ./ADOS_880kB.adf || exit 2
|
||||
../scripts/fs_get_files.sh ./ADOS_880kB.adf || exit 2
|
||||
|
||||
unzip -o ../data/text_files.zip || exit 1
|
||||
|
||||
../scripts/fs_put_files.sh ./FAT_720kB.hfe || exit 2
|
||||
../scripts/convert.sh ./FAT_720kB.hfe || exit 2
|
||||
|
||||
unzip -o ../data/text_files.zip || exit 1
|
||||
|
||||
../scripts/fs_put_files.sh ./ADOS_880kB.hfe || exit 2
|
||||
../scripts/convert_amiga.sh ./ADOS_880kB.hfe || exit 2
|
||||
|
||||
echo
|
||||
|
||||
echo ------------------------------------
|
||||
@@ -58,7 +68,7 @@ export success_cnt=`cat tests_results.txt | grep "SUCCESS" | wc -l`
|
||||
|
||||
echo Success count : $success_cnt
|
||||
|
||||
if [ "$success_cnt" -ne "4" ]
|
||||
if [ "$success_cnt" -ne "6" ]
|
||||
then
|
||||
echo "One or more tests have failed !";
|
||||
exit 2
|
||||
|
||||
Executable
+63
@@ -0,0 +1,63 @@
|
||||
rm *_T.IMG
|
||||
|
||||
./hxcfe -finput:$1 -foutput:I001.IMG -conv:RAW_LOADER
|
||||
./hxcfe -finput:$1 -foutput:I002.FDX -conv:FDX68_FDX
|
||||
./hxcfe -finput:$1 -foutput:I003.STX -conv:ATARIST_STX
|
||||
./hxcfe -finput:$1 -foutput:I004.DSK -conv:AMSTRADCPC_DSK
|
||||
./hxcfe -finput:$1 -foutput:I005.STW -conv:ATARIST_STW
|
||||
./hxcfe -finput:$1 -foutput:I006.HFE -conv:HXC_HFEV3
|
||||
./hxcfe -finput:$1 -foutput:I007.HFE -conv:HXC_HFE
|
||||
./hxcfe -finput:$1 -foutput:I008.IMD -conv:IMD_IMG
|
||||
./hxcfe -finput:$1 -foutput:I009.JV3 -conv:TRS80_JV3
|
||||
./hxcfe -finput:$1 -foutput:I010.DMK -conv:TRS80_DMK
|
||||
./hxcfe -finput:$1 -foutput:I011.AFI -conv:HXC_AFI
|
||||
./hxcfe -finput:$1 -foutput:I012.AFI -conv:HXC_AFI
|
||||
./hxcfe -finput:$1 -foutput:I013.SCP -conv:SCP_FLUX_STREAM
|
||||
./hxcfe -finput:$1 -foutput:I014.XML -conv:GENERIC_XML
|
||||
./hxcfe -finput:$1 -foutput:I015.HFE -conv:HXC_STREAMHFE
|
||||
./hxcfe -finput:$1 -foutput:I016.D88 -conv:NEC_D88
|
||||
./hxcfe -finput:$1 -foutput:I017.MFM -conv:HXCMFM_IMG
|
||||
#./hxcfe -finput:$1 -foutput:I018.DIM -conv:ATARIST_DIM
|
||||
#./hxcfe -finput:$1 -foutput:I019.TRD -conv:ZXSPECTRUM_TRD
|
||||
|
||||
|
||||
./hxcfe -finput:I001.IMG -foutput:I001_T.IMG -conv:RAW_LOADER
|
||||
./hxcfe -finput:I002.FDX -foutput:I002_T.IMG -conv:RAW_LOADER
|
||||
./hxcfe -finput:I003.STX -foutput:I003_T.IMG -conv:RAW_LOADER
|
||||
./hxcfe -finput:I004.DSK -foutput:I004_T.IMG -conv:RAW_LOADER
|
||||
./hxcfe -finput:I005.STW -foutput:I005_T.IMG -conv:RAW_LOADER
|
||||
./hxcfe -finput:I006.HFE -foutput:I006_T.IMG -conv:RAW_LOADER
|
||||
./hxcfe -finput:I007.HFE -foutput:I007_T.IMG -conv:RAW_LOADER
|
||||
./hxcfe -finput:I008.IMD -foutput:I008_T.IMG -conv:RAW_LOADER
|
||||
./hxcfe -finput:I009.JV3 -foutput:I009_T.IMG -conv:RAW_LOADER
|
||||
./hxcfe -finput:I010.DMK -foutput:I010_T.IMG -conv:RAW_LOADER
|
||||
./hxcfe -finput:I011.AFI -foutput:I011_T.IMG -conv:RAW_LOADER
|
||||
./hxcfe -finput:I012.AFI -foutput:I012_T.IMG -conv:RAW_LOADER
|
||||
./hxcfe -finput:I013.SCP -foutput:I013_T.IMG -conv:RAW_LOADER
|
||||
./hxcfe -finput:I014.XML -foutput:I014_T.IMG -conv:RAW_LOADER
|
||||
./hxcfe -finput:I015.HFE -foutput:I015_T.IMG -conv:RAW_LOADER
|
||||
./hxcfe -finput:I016.D88 -foutput:I016_T.IMG -conv:RAW_LOADER
|
||||
./hxcfe -finput:I017.MFM -foutput:I017_T.IMG -conv:RAW_LOADER
|
||||
#./hxcfe -finput:I018.DIM -foutput:I018_T.IMG -conv:RAW_LOADER
|
||||
#./hxcfe -finput:I019.TRD -foutput:I019_T.IMG -conv:RAW_LOADER
|
||||
|
||||
echo > convert_res.txt
|
||||
for i in ./*_T.IMG; do diff -s "$i" I001_T.IMG >> convert_res.txt; done
|
||||
|
||||
cat convert_res.txt
|
||||
|
||||
export success_cnt=`cat convert_res.txt | grep "identical" | wc -l`
|
||||
|
||||
echo Convert success count : $success_cnt
|
||||
|
||||
if [ "$success_cnt" -ne "17" ]
|
||||
then
|
||||
echo "CONVERT $1 : FAILED" >> tests_results.txt
|
||||
echo "One or more tests have failed !";
|
||||
exit 2
|
||||
fi
|
||||
|
||||
echo "CONVERT $1 : SUCCESS" >> tests_results.txt
|
||||
echo "All convert tests succeeded !";
|
||||
|
||||
exit 0
|
||||
Executable
+42
@@ -0,0 +1,42 @@
|
||||
rm *_T.ADF
|
||||
|
||||
./hxcfe -finput:$1 -foutput:I001.ADF -conv:AMIGA_ADF
|
||||
./hxcfe -finput:$1 -foutput:I002.ADZ -conv:AMIGA_ADZ
|
||||
./hxcfe -finput:$1 -foutput:I003.HFE -conv:HXC_HFEV3
|
||||
./hxcfe -finput:$1 -foutput:I004.HFE -conv:HXC_HFE
|
||||
./hxcfe -finput:$1 -foutput:I005.AFI -conv:HXC_AFI
|
||||
./hxcfe -finput:$1 -foutput:I006.SCP -conv:SCP_FLUX_STREAM
|
||||
./hxcfe -finput:$1 -foutput:I007.HFE -conv:HXC_STREAMHFE
|
||||
./hxcfe -finput:$1 -foutput:I008.MFM -conv:HXCMFM_IMG
|
||||
#./hxcfe -finput:$1 -foutput:I009.XML -conv:GENERIC_XML
|
||||
|
||||
./hxcfe -finput:I001.ADF -foutput:I001_T.ADF -conv:RAW_LOADER
|
||||
./hxcfe -finput:I002.ADZ -foutput:I002_T.ADF -conv:RAW_LOADER
|
||||
./hxcfe -finput:I003.HFE -foutput:I003_T.ADF -conv:RAW_LOADER
|
||||
./hxcfe -finput:I004.HFE -foutput:I004_T.ADF -conv:RAW_LOADER
|
||||
./hxcfe -finput:I005.AFI -foutput:I005_T.ADF -conv:RAW_LOADER
|
||||
./hxcfe -finput:I006.SCP -foutput:I006_T.ADF -conv:RAW_LOADER
|
||||
./hxcfe -finput:I007.HFE -foutput:I007_T.ADF -conv:RAW_LOADER
|
||||
./hxcfe -finput:I008.MFM -foutput:I008_T.ADF -conv:RAW_LOADER
|
||||
#./hxcfe -finput:I009.XML -foutput:I009_T.ADF -conv:RAW_LOADER
|
||||
|
||||
echo > convert_amiga_res.txt
|
||||
for i in ./*_T.ADF; do diff -s "$i" I001_T.ADF >> convert_amiga_res.txt; done
|
||||
|
||||
cat convert_amiga_res.txt
|
||||
|
||||
export success_cnt=`cat convert_amiga_res.txt | grep "identical" | wc -l`
|
||||
|
||||
echo Convert success count : $success_cnt
|
||||
|
||||
if [ "$success_cnt" -ne "8" ]
|
||||
then
|
||||
echo "CONVERT $1 : FAILED" >> tests_results.txt
|
||||
echo "One or more tests have failed !";
|
||||
exit 2
|
||||
fi
|
||||
|
||||
echo "CONVERT $1 : SUCCESS" >> tests_results.txt
|
||||
echo "All convert tests succeeded !";
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user