Introduction
Introduction Statistics Contact Development Disclaimer Help
expand tests: add subdirectory and CGI REST test - geomyidae-tests - geomyidae …
git clone git://bitreich.org/geomyidae-tests/ git://enlrupgkhuxnvlhsf6lc3fziv5h…
Log
Files
Refs
Tags
README
LICENSE
---
commit 7e2c1e1d9a8e64ac371f7b6878e3928b28a7c458
parent ae4e0ab63e7fb0ef6b694b952f582e96510382e9
Author: Hiltjo Posthuma <[email protected]>
Date: Fri, 21 Jul 2023 15:56:54 +0200
expand tests: add subdirectory and CGI REST test
Diffstat:
M Makefile | 8 +++-----
M run.sh | 9 ++++++++-
M tests | 9 +++++++++
3 files changed, 20 insertions(+), 6 deletions(-)
---
diff --git a/Makefile b/Makefile
@@ -1,13 +1,11 @@
build: clean
${CC} -o test.cgi test.c -static -Wall
-
-setup:
- mkdir -p results
- rm -f test_counter.txt
+ mkdir -p deepah
+ cp test.cgi deepah/test.cgi
clean-results:
rm -rf results
rm -f test_counter.txt
clean:
- rm -f test.cgi
+ rm -f test.cgi deepah/test.cgi
diff --git a/run.sh b/run.sh
@@ -29,12 +29,19 @@ if test "$uid" != "0"; then
exit 1
fi
-# clean previous tests
+# setup and clean previous tests
rm -rf results
mkdir -p results
chown "$user:$group" results
rm -f test_counter.txt
+mkdir -p deepah
+chown "$user:$group" deepah
+cd deepah || exit 1
+ln -sf ../results results
+ln -sf ../test_counter.txt test_counter.txt
+cd ../ || exit 1
+
"$bin" -4 -d -b "$base" -p "$port" -o "$port" -h "$host" -u "$user" -g "$group…
run_tests
pkill geomyidae
diff --git a/tests b/tests
@@ -1,6 +1,15 @@
/test.cgi
//test.cgi
+/test.cgi/rest
/test.cgi?query
/test.cgi?query=test
/test.cgi?query=/test
/test.cgi search
+/deepah/test.cgi
+/deepah/test.cgi/rest
+//deepah/test.cgi
+//deepah//test.cgi
+/deepah/test.cgi?query
+/deepah/test.cgi?query=test
+/deepah/test.cgi?query=/test
+/deepah/test.cgi search
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.