refactor: argc test-functions (#26)
This commit is contained in:
+4
-6
@@ -148,13 +148,11 @@ test-functions() {
|
|||||||
cmd="$(_lang_to_cmd "$lang")"
|
cmd="$(_lang_to_cmd "$lang")"
|
||||||
cmd_path="$BIN_DIR/$func$ext"
|
cmd_path="$BIN_DIR/$func$ext"
|
||||||
if command -v "$cmd" &> /dev/null; then
|
if command -v "$cmd" &> /dev/null; then
|
||||||
"$cmd_path" "$data" | {
|
echo -n "Test $cmd_path: "
|
||||||
echo "Test $cmd_path: $(cat)"
|
"$cmd_path" "$data"
|
||||||
}
|
|
||||||
if ! _is_win; then
|
if ! _is_win; then
|
||||||
"$cmd" "scripts/bin.$lang" "$func" "$data" | {
|
echo -n "Test $cmd scripts/bin.$lang $func: "
|
||||||
echo "Test $cmd scripts/bin.$lang $func: $(cat)"
|
"$cmd" "scripts/bin.$lang" "$func" "$data"
|
||||||
}
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user