changeset 241:866b8778acc1

More test clean ups
author charles <charles>
date Mon, 12 Jan 2009 00:49:01 +0000
parents 22b5cf141a53
children 705d723aec8b
files direct/tests/Makefile direct/tests/run_fw_update_test.sh direct/yaffs_fileem.c direct/yaffs_fileem2k.c direct/ynorsim.c
diffstat 5 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/direct/tests/Makefile
+++ b/direct/tests/Makefile
@@ -14,7 +14,7 @@
 #
 # NB Warning this Makefile does not include header dependencies.
 #
-# $Id: Makefile,v 1.1 2009-01-04 21:44:24 charles Exp $
+# $Id: Makefile,v 1.2 2009-01-12 00:49:01 charles Exp $
 
 #EXTRA_COMPILE_FLAGS = -DYAFFS_IGNORE_TAGS_ECC
 
@@ -78,4 +78,4 @@ yaffs_test: $(SYMLINKS) $(YAFFSTESTOBJS)
 
 
 clean:
-	rm -f $(ALLOBJS) core
+	rm -f yaffs_test $(ALLOBJS) core $(YAFFSSYMLINKS) $(YAFFSDIRECTSYMLINKS)
--- a/direct/tests/run_fw_update_test.sh
+++ b/direct/tests/run_fw_update_test.sh
@@ -7,9 +7,9 @@ do
    seed=$RANDOM   
    j=$(( $i % 10 ))
    rm seed*$j
-   echo $seed>seed$i
+   echo $seed>seed-for-run-$i
    rm data*$j
-   cp ynorsimdata data$i
+   cp emfile-nor data-for-run-$i
    echo "######### Run $i with seed $seed"
    ./yaffs_test -f -u -p -s$seed M18-1
 done
--- a/direct/yaffs_fileem.c
+++ b/direct/yaffs_fileem.c
@@ -16,7 +16,7 @@
  * This is only intended as test code to test persistence etc.
  */
 
-const char *yaffs_flashif_c_version = "$Id: yaffs_fileem.c,v 1.4 2008-07-21 01:03:19 charles Exp $";
+const char *yaffs_flashif_c_version = "$Id: yaffs_fileem.c,v 1.5 2009-01-12 00:49:01 charles Exp $";
 
 
 #include "yportenv.h"
@@ -83,7 +83,7 @@ static int  CheckInit(yaffs_Device *dev)
 	
 	filedisk.nBlocks = (SIZE_IN_MB * 1024 * 1024)/(16 * 1024);
 	
-	filedisk.handle = open("emfile512-0", O_RDWR | O_CREAT, S_IREAD | S_IWRITE);
+	filedisk.handle = open("emfile-512-0", O_RDWR | O_CREAT, S_IREAD | S_IWRITE);
 	
 	if(filedisk.handle < 0)
 	{
--- a/direct/yaffs_fileem2k.c
+++ b/direct/yaffs_fileem2k.c
@@ -16,7 +16,7 @@
  * This is only intended as test code to test persistence etc.
  */
 
-const char *yaffs_flashif2_c_version = "$Id: yaffs_fileem2k.c,v 1.15 2008-07-21 01:03:19 charles Exp $";
+const char *yaffs_flashif2_c_version = "$Id: yaffs_fileem2k.c,v 1.16 2009-01-12 00:49:01 charles Exp $";
 
 
 #include "yportenv.h"
@@ -71,7 +71,7 @@ static __u8 localBuffer[PAGE_SIZE];
 
 static char *NToName(char *buf,int n)
 {
-	sprintf(buf,"emfile2k-%d",n);
+	sprintf(buf,"emfile-2k-%d",n);
 	return buf;
 }
 
--- a/direct/ynorsim.c
+++ b/direct/ynorsim.c
@@ -10,7 +10,7 @@
 #include <unistd.h>
 #include <time.h>
 
-#define YNORSIM_FNAME "ynorsimdata"
+#define YNORSIM_FNAME "emfile-nor"
 
 /* Set YNORSIM_BIT_CHANGES to a a value from 1..30 to 
  *simulate bit flipping as the programming happens.