1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flohmarkt_ynh.git synced 2024-09-03 18:36:30 +02:00

test script not needed anymore (hopefully)

This commit is contained in:
Chris Vogel 2024-05-26 14:53:21 +02:00
parent 047af9605c
commit 108be10c41

View file

@ -1,32 +0,0 @@
#!/bin/bash -x
url_path=/
domain=fl.tst
install_dir=/root/tmp/install_dir
data_dir=/root/tmp/data_dir
. /usr/share/yunohost/helpers
. /root/flohmarkt_ynh/scripts/_common.sh
# Here we now have TWO subroutines to compare:
#
# ynh_handle_getopts_args (old implementation)
# flohmarkt_ynh_handle_getopts_args (new implentation)
#
# There shouldn't be any case in which the results of situations both can handle
# differ.
#
# @@ TODO: write some routine that compares for a list of examples the results
#
# https://stackoverflow.com/questions/1203583/how-do-i-rename-a-bash-function describes how to
# replace an existing subroutine with an own one.
#
# idea: replace ynh_handle_getopts_args by a sub that runs old and new versions and compares
# output. Performance impact: yes. But testing made very simple by real use and optional fallback
# to old version.
flohmarkt_ynh_local_curl --location http://127.0.0.1/go_ahead -n --data blafasel -d foo -d bar -H 'header1: blafasel' --header 'header2: foobar'
# -u admin -p bla
# flohmarkt_ynh_local_curl -n -H '-header1' --header 'header2: bar' --header='-header3: ups' -- /path "key1=value1" "key2=value2"
# ups...
# flohmarkt_ynh_local_curl $*