12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #!/bin/bash
-
- . "$TF_DIR/include/subtest.sh"
- . "$TF_DIR/include/tools.sh"
-
- . "$(shellfu-get path)" || tf_exit_error "failed to init shellfu"
- SHELLFU_PATH=$(satcmd --saturnin-get-shellfu-path)
- shellfu import saturnin || tf_exit_error "failed to import saturnin"
-
- tf_enum_subtests() {
- echo "merge_first"
- echo "merge_first_no1"
- echo "merge_first_no2"
- echo "merge_first_no3"
- echo "merge_first_none"
- echo "merge_first_only1"
- echo "merge_first_only2"
- echo "merge_first_only3"
- echo "merge_first_raw"
- echo "merge_join"
- echo "merge_join_no1"
- echo "merge_join_no2"
- echo "merge_join_no3"
- echo "merge_join_only1"
- echo "merge_join_only2"
- echo "merge_join_only3"
- echo "merge_join_none"
- echo "merge_join_raw"
- }
-
- tf_do_subtest() {
- local name=$1
- local o_out="oracle/$name.stdout"
- local o_es=0
- local cmd
- local t_paths
- local t_args
- case $name in
- merge_first)
- t_paths='test/merge-a:test/merge-b'; t_args='s1.k1 t.conf' ;;
- merge_first_no1)
- t_paths='test/merge-x:test/merge-a:test/merge-b'; t_args='s1.k1 t.conf' ;;
- merge_first_no2)
- t_paths='test/merge-a:test/merge-x:test/merge-b'; t_args='s1.k1 t.conf' ;;
- merge_first_no3)
- t_paths='test/merge-a:test/merge-b:test/merge-x'; t_args='s1.k1 t.conf' ;;
- merge_first_none)
- t_paths='test/merge-x:test/merge-y:test/merge-z'; t_args='s1.k1 t.conf'; o_es=1 ;;
- merge_first_only1)
- t_paths='test/merge-b:test/merge-x:test/merge-y'; t_args='s1.k1 t.conf' ;;
- merge_first_only2)
- t_paths='test/merge-x:test/merge-b:test/merge-y'; t_args='s1.k1 t.conf' ;;
- merge_first_only3)
- t_paths='test/merge-x:test/merge-y:test/merge-b'; t_args='s1.k1 t.conf' ;;
- merge_first_raw)
- t_paths='test/merge-a:test/merge-b'; t_args='-r s2.k2 t.conf' ;;
- merge_join)
- t_paths='test/merge-a:test/merge-b'; t_args='-j s1.k1 t.conf' ;;
- merge_join_no1)
- t_paths='test/merge-x:test/merge-a:test/merge-b'; t_args='-j s1.k1 t.conf' ;;
- merge_join_no2)
- t_paths='test/merge-a:test/merge:x:test/merge-b'; t_args='-j s1.k1 t.conf' ;;
- merge_join_no3)
- t_paths='test/merge-a:test/merge-b:test/merge:x'; t_args='-j s1.k1 t.conf' ;;
- merge_join_none)
- t_paths='test/merge-x:test/merge-y:test/merge-z'; t_args='-j s1.k1 t.conf'; o_es=1 ;;
- merge_join_only1)
- t_paths='test/merge-b:test/merge-x:test/merge-y'; t_args='-j s1.k1 t.conf' ;;
- merge_join_only2)
- t_paths='test/merge-x:test/merge-b:test/merge-y'; t_args='-j s1.k1 t.conf' ;;
- merge_join_only3)
- t_paths='test/merge-x:test/merge-y:test/merge-b'; t_args='-j s1.k1 t.conf' ;;
- merge_join_raw)
- t_paths='test/merge-a:test/merge-b'; t_args='-j -r s2.k2 t.conf' ;;
- esac
- tf_testflt -n "$name" -O "$o_out" -S "$o_es" "SATURNIN_CONF_PATH=$t_paths saturnin__conf $t_args"
- }
-
- tf_do_subtests
|