]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
workunits/dencoder: use readable.sh script instead of python script
authorNitzanMordhai <nmordech@ibm.com>
Mon, 2 Feb 2026 07:34:24 +0000 (07:34 +0000)
committerPatrick Donnelly <pdonnell@ibm.com>
Wed, 18 Mar 2026 13:53:17 +0000 (09:53 -0400)
The python script test_readable.py was added for backword and forward
compability. maintaining 2 scripts that finally doing the same is west,
reverting and using readable.sh and leave the python out.

https://tracker.ceph.com/issues/74074
Signed-off-by: Nitzan Mordechai <nmordech@ibm.com>
(cherry picked from commit 9d289ed14e79fa8008ba30b77b425a4508030110)

qa/workunits/dencoder/test-dencoder.sh [new file with mode: 0755]
src/test/encoding/readable.sh

diff --git a/qa/workunits/dencoder/test-dencoder.sh b/qa/workunits/dencoder/test-dencoder.sh
new file mode 100755 (executable)
index 0000000..9f22aad
--- /dev/null
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+set -ex
+CEPH_ARGS=""
+mydir=`dirname $0`
+ceph-dencoder version
+
+# clone the corpus repository on the host
+git clone -b master https://github.com/ceph/ceph-object-corpus.git $CEPH_MNT/client.0/tmp/ceph-object-corpus-master
+
+export CORPUS_PATH=$CEPH_MNT/client.0/tmp/ceph-object-corpus-master
+$mydir/../../../src/test/encoding/readable.sh
+
+echo $0 OK
index 81545852cf515a9a31f360d970914d58340288ce..230043a9630721bee82040c8757a1060b037b4eb 100755 (executable)
@@ -1,11 +1,16 @@
 #!/usr/bin/env bash
 set -e
 
-source $(dirname $0)/../detect-build-env-vars.sh
 
 [ -z "$CEPH_ROOT" ] && CEPH_ROOT=..
 
-dir=$CEPH_ROOT/ceph-object-corpus
+# check if CORPUS_PATH is set then use it for dir, if not use $CEPH_ROOT/ceph-object-corpus
+if [ -n "$CORPUS_PATH" ]; then
+    dir=$CORPUS_PATH
+else
+    source $(dirname $0)/../detect-build-env-vars.sh
+    dir=$CEPH_ROOT/ceph-object-corpus
+fi
 
 failed=0
 numtests=0