Commit 9916b9ecb962b828585d3093a0ad2b21bc97a1f5

Thomas de Grivel 2024-07-16T14:50:56

test_ekc3

diff --git a/test/Makefile b/test/Makefile
index da98a29..36dee53 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -13,6 +13,10 @@
 CLEANFILES = \
 	*.a \
 	*.css \
+	ekc3/*.diff \
+	ekc3/*.err \
+	ekc3/*.out \
+	ekc3/*.ret \
 	*.gcno \
 	*.html \
 	*.lo \
diff --git a/test/ekc3/title.c3.ret b/test/ekc3/title.c3.ret
deleted file mode 100644
index d00491f..0000000
--- a/test/ekc3/title.c3.ret
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/test/ekc3/title.out b/test/ekc3/title.out
deleted file mode 100644
index e69de29..0000000
--- a/test/ekc3/title.out
+++ /dev/null
diff --git a/test/ekc3/title.out.expected b/test/ekc3/title.out.expected
index e69de29..a8c79bd 100644
--- a/test/ekc3/title.out.expected
+++ b/test/ekc3/title.out.expected
@@ -0,0 +1,8 @@
+<html>
+  <head>
+    <title>EKC3 test title</title>
+  </head>
+  <body>
+    <h1>EKC3 test title</h1>
+  </body>
+</html>
diff --git a/test/ekc3/title.ret b/test/ekc3/title.ret
deleted file mode 100644
index 573541a..0000000
--- a/test/ekc3/title.ret
+++ /dev/null
@@ -1 +0,0 @@
-0
diff --git a/test/ekc3_test b/test/ekc3_test
index d38f492..98f021b 100755
--- a/test/ekc3_test
+++ b/test/ekc3_test
@@ -8,11 +8,11 @@ TEST_COUNT=0
 TEST_KO=0
 TEST_OK=0
 
-if [ "x$IKC3" = "x" ]; then
-    if [ -f ../../ikc3/ikc3 ]; then
-	IKC3=../../ikc3/ikc3
-    elif [ -f ../../ikc3 ]; then
-	IKC3=../../ikc3
+if [ "x$KC3S" = "x" ]; then
+    if [ -f ../../kc3s/kc3s ]; then
+	KC3S=../../kc3s/kc3s
+    elif [ -f ../../kc3s ]; then
+	KC3S=../../kc3s
     fi
 fi
 
@@ -40,7 +40,7 @@ fi
 
 for TARGET in $TARGETS; do
     RESULT=test_ok
-    $IKC3 < ${TARGET}.kc3 > ${TARGET}.out 2>&1
+    $KC3S --load ${TARGET}.kc3 --quit > ${TARGET}.out 2>&1
     echo $? > ${TARGET}.ret
     if ! diff -abu ${TARGET}.out.expected ${TARGET}.out > ${TARGET}.diff
     then