ucimap: add helper function for resizing lists and freeing items (both using ucimap...
[project/uci.git] / test / tests.d / 060-ucimap_example
index c5176374203aba457ab55602f665b5feb0a2be9f..984726b33337ea535ff8978dd4405e8ba28a32f2 100644 (file)
@@ -1,5 +1,9 @@
 test_ucimap_example()
 {
-       ( cd ..; ./ucimap-example ) > "${TMP_DIR}/ucimap_example.result"
-       assertSameFile "${TMP_DIR}/ucimap_example.result" "${REF_DIR}/ucimap_example.result"
+       rm -rf ./save
+       ( cd ..; ./ucimap-example -s ) > "${TMP_DIR}/ucimap_example.result"
+       assertSameFile "${TMP_DIR}/ucimap_example.result" "${REF_DIR}/ucimap_example_1.result"
+       ( cd ..; ./ucimap-example -s ) > "${TMP_DIR}/ucimap_example.result"
+       assertSameFile "${TMP_DIR}/ucimap_example.result" "${REF_DIR}/ucimap_example_2.result"
+       rm -rf ./save
 }