From 83c4df045581df88c87e9a03d7d58df0acf69182 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Fri, 15 Sep 2023 15:20:10 +0200 Subject: [PATCH] add testing files --- example-packages/test/example-prj/hello.txt | 1 + tests/getfile.sh | 1 + tests/getfile.sh.cfg | 2 +- tests/hello.txt | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 example-packages/test/example-prj/hello.txt create mode 100644 tests/hello.txt diff --git a/example-packages/test/example-prj/hello.txt b/example-packages/test/example-prj/hello.txt new file mode 100644 index 0000000..6769dd6 --- /dev/null +++ b/example-packages/test/example-prj/hello.txt @@ -0,0 +1 @@ +Hello world! \ No newline at end of file diff --git a/tests/getfile.sh b/tests/getfile.sh index 6bd3a5b..b4dcfde 100755 --- a/tests/getfile.sh +++ b/tests/getfile.sh @@ -315,6 +315,7 @@ if [ "$IMLCI_FILE" = "ALL" ]; then -s "${IMLCI_PKG_SECRET}" \ -f "${myfile}" done + rm -f "${tmpfilelist}" else makeRequest GET "/packages/$IMLCI_PHASE/$IMLCI_PROJECT/$IMLCI_FILE" "$IMLCI_OUTFILE" "$IMLCI_PKG_SECRET" fi diff --git a/tests/getfile.sh.cfg b/tests/getfile.sh.cfg index f614f3d..8a323ab 100644 --- a/tests/getfile.sh.cfg +++ b/tests/getfile.sh.cfg @@ -1,4 +1,4 @@ -# +# for less params with getfile.sh IMLCI_PKG_SECRET=myapikey IMLCI_URL=http://localhost:8001 IMLCI_PHASE=test diff --git a/tests/hello.txt b/tests/hello.txt new file mode 100644 index 0000000..6769dd6 --- /dev/null +++ b/tests/hello.txt @@ -0,0 +1 @@ +Hello world! \ No newline at end of file -- GitLab