Skip to content
Snippets Groups Projects
Commit ffcb24cc authored by Vesa Oikonen's avatar Vesa Oikonen
Browse files

bug fix in the test

parent c1d33966
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
#: Title : test_fit_feng #: Title : test_fit_feng
#: Date : 2019-08-26 #: Date : 2019-09-19
#: Author : "Vesa Oikonen" <vesa.oikonen@utu.fi> #: Author : "Vesa Oikonen" <vesa.oikonen@utu.fi>
#: Options : None #: Options : None
...@@ -462,8 +462,11 @@ printf "\n ok \n" ...@@ -462,8 +462,11 @@ printf "\n ok \n"
iftmatch -abs=0.01 fit1.ift output1.ift p4 L2 iftmatch -abs=0.01 fit1.ift output1.ift p4 L2
if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi
printf "\n ok \n" printf "\n ok \n"
iftmatch -abs=0.01 fit1.ift output1.ift p5 dT iftmatch -abs=0.0001 fit1.ift output1.ift p7 dT
if [ $? -ne 0 ] ; then
iftmatch -abs=0.0001 fit1.ift output1.ift p5 dT
if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi
fi
printf "\n passed. \n\n" printf "\n passed. \n\n"
iftmatch -abs=0.01 fit2.ift output2.ift p1 A1 iftmatch -abs=0.01 fit2.ift output2.ift p1 A1
...@@ -478,14 +481,11 @@ printf "\n ok \n" ...@@ -478,14 +481,11 @@ printf "\n ok \n"
iftmatch -abs=0.01 fit2.ift output2.ift p4 L2 iftmatch -abs=0.01 fit2.ift output2.ift p4 L2
if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi
printf "\n ok \n" printf "\n ok \n"
iftmatch -abs=0.01 fit2.ift output2.ift p5 A3 iftmatch -abs=0.0001 fit2.ift output2.ift p5 dT
if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi if [ $? -ne 0 ] ; then
printf "\n ok \n" iftmatch -abs=0.0001 fit2.ift output2.ift p7 dT
iftmatch -abs=0.01 fit2.ift output2.ift p6 L3
if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi
printf "\n ok \n"
iftmatch -abs=0.01 fit2.ift output2.ift p7 dT
if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi
fi;
printf "\n passed. \n\n" printf "\n passed. \n\n"
iftmatch -abs=0.01 fit3.ift output3.ift p1 A1 iftmatch -abs=0.01 fit3.ift output3.ift p1 A1
...@@ -500,20 +500,14 @@ printf "\n ok \n" ...@@ -500,20 +500,14 @@ printf "\n ok \n"
iftmatch -abs=0.01 fit3.ift output3.ift p4 L2 iftmatch -abs=0.01 fit3.ift output3.ift p4 L2
if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi
printf "\n ok \n" printf "\n ok \n"
iftmatch -abs=0.01 fit3.ift output3.ift p5 A3 iftmatch -abs=0.0001 fit3.ift output3.ift p9 dT
if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi if [ $? -ne 0 ] ; then
printf "\n ok \n" iftmatch -abs=0.0001 fit3.ift output3.ift p7 dT
iftmatch -abs=0.01 fit3.ift output3.ift p6 L3 if [ $? -ne 0 ] ; then
if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi iftmatch -abs=0.0001 fit3.ift output3.ift p5 dT
printf "\n ok \n"
iftmatch -abs=0.01 fit3.ift output3.ift p7 A4
if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi
printf "\n ok \n"
iftmatch -abs=0.01 fit3.ift output3.ift p8 L4
if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi
printf "\n ok \n"
iftmatch -abs=0.01 fit3.ift output3.ift p9 dT
if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi if [ $? -ne 0 ] ; then printf "Failed!\n" ; exit 1 ; fi
fi
fi
printf "\n passed. \n\n" printf "\n passed. \n\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment