\hypertarget{autotoc_md76_src_plugins_cache_shelltests_md}{}\section{Additional shell tests for cache}\label{autotoc_md76_src_plugins_cache_shelltests_md}
This file contains important shell tests for mmapstorage which do not fit well into the plugin R\+E\+A\+D\+ME.\hypertarget{autotoc_md76_autotoc_md77}{}\section{Test kdb cp with cache and default resolver (refression test)}\label{autotoc_md76_autotoc_md77}

\begin{DoxyCode}
rm -rf $(dirname $(kdb file user:/))/multitest || $(exit 0)
mkdir -p $(dirname $(kdb file user:/))/multitest || $(exit 0)

echo "col1;col2" > $(dirname $(kdb file user:/))/multitest/first.csv
echo "l1c1;l2c2" >> $(dirname $(kdb file user:/))/multitest/first.csv
echo "l2c1;l2c2" >> $(dirname $(kdb file user:/))/multitest/first.csv

echo "" > $(dirname $(kdb file user:/))/multitest/empty.csv

kdb mount multitest/first.csv user:/tests/multifile/first.csv csvstorage
kdb mount multitest/empty.csv user:/tests/multifile/empty.csv csvstorage

kdb ls user:/tests/multifile/first.csv
#> user:/tests/multifile/first.csv/#0
#> user:/tests/multifile/first.csv/#0/#0
#> user:/tests/multifile/first.csv/#1
#> user:/tests/multifile/first.csv/#1/#0
#> user:/tests/multifile/first.csv/#2
#> user:/tests/multifile/first.csv/#2/#0

kdb ls user:/tests/multifile/empty.csv
#> user:/tests/multifile/empty.csv/#0
#> user:/tests/multifile/empty.csv/#0/#0

kdb cp -rf user:/tests/multifile/first.csv user:/tests/multifile/empty.csv

kdb ls user:/tests/multifile/first.csv
#> user:/tests/multifile/first.csv/#0
#> user:/tests/multifile/first.csv/#0/#0
#> user:/tests/multifile/first.csv/#1
#> user:/tests/multifile/first.csv/#1/#0
#> user:/tests/multifile/first.csv/#2
#> user:/tests/multifile/first.csv/#2/#0

kdb ls user:/tests/multifile/empty.csv
#> user:/tests/multifile/empty.csv/#0
#> user:/tests/multifile/empty.csv/#0/#0
#> user:/tests/multifile/empty.csv/#1
#> user:/tests/multifile/empty.csv/#1/#0
#> user:/tests/multifile/empty.csv/#2
#> user:/tests/multifile/empty.csv/#2/#0

rm -rf $(dirname $(kdb file user:/))/multitest
kdb umount user:/tests/multifile/first.csv
kdb umount user:/tests/multifile/empty.csv
\end{DoxyCode}
\hypertarget{autotoc_md76_autotoc_md78}{}\section{Test kdb cp with cache and multifile resolver (refression test)}\label{autotoc_md76_autotoc_md78}

\begin{DoxyCode}
rm -rf $(dirname $(kdb file user:/))/multitest || $(exit 0)
mkdir -p $(dirname $(kdb file user:/))/multitest || $(exit 0)

echo "col1;col2" > $(dirname $(kdb file user:/))/multitest/first.csv
echo "l1c1;l2c2" >> $(dirname $(kdb file user:/))/multitest/first.csv
echo "l2c1;l2c2" >> $(dirname $(kdb file user:/))/multitest/first.csv

echo "col1;col2;col3" > $(dirname $(kdb file user:/))/multitest/other.csv
echo "l1c1;l2c2;l2c3" >> $(dirname $(kdb file user:/))/multitest/other.csv
echo "l2c1;l2c2;l3c3" >> $(dirname $(kdb file user:/))/multitest/other.csv

echo "" > $(dirname $(kdb file user:/))/multitest/empty.csv

sudo kdb mount -R multifile -c storage="csvstorage",pattern="*.csv",resolver="resolver" multitest
       user:/tests/multifile

kdb ls user:/tests/multifile/first.csv
#> user:/tests/multifile/first.csv/#0
#> user:/tests/multifile/first.csv/#0/#0
#> user:/tests/multifile/first.csv/#1
#> user:/tests/multifile/first.csv/#1/#0
#> user:/tests/multifile/first.csv/#2
#> user:/tests/multifile/first.csv/#2/#0

kdb ls user:/tests/multifile/empty.csv
#> user:/tests/multifile/empty.csv/#0
#> user:/tests/multifile/empty.csv/#0/#0

kdb cp -rf user:/tests/multifile/first.csv user:/tests/multifile/empty.csv

kdb ls user:/tests/multifile/first.csv
#> user:/tests/multifile/first.csv/#0
#> user:/tests/multifile/first.csv/#0/#0
#> user:/tests/multifile/first.csv/#1
#> user:/tests/multifile/first.csv/#1/#0
#> user:/tests/multifile/first.csv/#2
#> user:/tests/multifile/first.csv/#2/#0

kdb ls user:/tests/multifile/empty.csv
#> user:/tests/multifile/empty.csv/#0
#> user:/tests/multifile/empty.csv/#0/#0
#> user:/tests/multifile/empty.csv/#1
#> user:/tests/multifile/empty.csv/#1/#0
#> user:/tests/multifile/empty.csv/#2
#> user:/tests/multifile/empty.csv/#2/#0

rm -rf $(dirname $(kdb file user:/))/multitest
kdb umount user:/tests/multifile
\end{DoxyCode}
 