aboutsummaryrefslogtreecommitdiffstats
path: root/roms/skiboot/external/ffspart/test/tests/08-small-files
diff options
context:
space:
mode:
Diffstat (limited to 'roms/skiboot/external/ffspart/test/tests/08-small-files')
-rw-r--r--roms/skiboot/external/ffspart/test/tests/08-small-files22
1 files changed, 22 insertions, 0 deletions
diff --git a/roms/skiboot/external/ffspart/test/tests/08-small-files b/roms/skiboot/external/ffspart/test/tests/08-small-files
new file mode 100644
index 000000000..1e4f3b3be
--- /dev/null
+++ b/roms/skiboot/external/ffspart/test/tests/08-small-files
@@ -0,0 +1,22 @@
+#! /bin/sh
+touch $DATA_DIR/$CUR_TEST.gen
+
+i=1;
+while [ $i -lt 5 ] ; do
+ j=0;
+ while [ $j -lt $((0xe0)) ] ; do
+ echo -n "$i" >> $DATA_DIR/$CUR_TEST.$i;
+ j=$(expr $j + 1);
+ done
+ sed -i "s|SEDCATCH_$i|$DATA_DIR\/$CUR_TEST.$i|" $DATA_DIR/$CUR_TEST.in
+ i=$(expr $i + 1);
+done
+
+run_binary "./ffspart" "-s 0x100 -c 10 -i $DATA_DIR/$CUR_TEST.in -p $DATA_DIR/$CUR_TEST.gen"
+if [ "$?" -ne 0 ] ; then
+ fail_test
+fi
+
+diff_with_result
+
+pass_test