File: 03-Use-system-python3-cram.patch

package info (click to toggle)
libcork 1.0.0~rc3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,024 kB
  • sloc: ansic: 12,975; python: 605; makefile: 331; sh: 238
file content (41 lines) | stat: -rw-r--r-- 1,023 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From: Roger Shimizu <rosh@debian.org>
Date: Mon, 23 Aug 2021 00:18:35 +0900
Subject: Use system python3-cram

---
 tests/CMakeLists.txt | 2 +-
 tests/ccram          | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index afa2d3f..69abeaa 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -82,7 +82,7 @@ make_u128_suite(sub)
 # Command-line tests
 
 if (NOT CRAM_EXECUTABLE)
-    set(CRAM_EXECUTABLE "${CMAKE_CURRENT_SOURCE_DIR}/cram.py")
+    set(CRAM_EXECUTABLE "cram3")
 endif (NOT CRAM_EXECUTABLE)
 
 if (PYTHON_EXECUTABLE)
diff --git a/tests/ccram b/tests/ccram
index 6eb3766..ccd4e88 100755
--- a/tests/ccram
+++ b/tests/ccram
@@ -31,7 +31,7 @@ if [ "$1" = "--cram" ]; then
     CRAM="$1"
     shift
 else
-    CRAM="$ROOT/tests/cram.py"
+    CRAM="cram3"
 fi
 
 if [ "$1" = "--tests" ]; then
@@ -44,4 +44,4 @@ fi
 
 export ROOT
 
-PATH="$BUILD:$PATH" exec "$PYTHON" "$CRAM" "$@" "$TESTS"
+PATH="$BUILD:$PATH" exec "$CRAM" "$@" "$TESTS"