File tree Expand file tree Collapse file tree 7 files changed +33
-724
lines changed Expand file tree Collapse file tree 7 files changed +33
-724
lines changed Original file line number Diff line number Diff line change 77env :
88 CARGO_TERM_COLOR : always
99 VALKEY_REPO_URL : https://github.com/valkey-io/valkey.git
10+ TEST_FRAMEWORK_REPO : https://github.com/valkey-io/valkey-test-framework
11+ TEST_FRAMEWORK_DIR : tests/valkeytests
1012
1113jobs :
1214 build-ubuntu-latest :
4143 git checkout ${{ matrix.server_version }}
4244 make -j
4345 cp src/valkey-server ../binaries/${{ matrix.server_version }}/
46+ - name : Set up test framework
47+ run : |
48+ echo "Cloning test framework..."
49+ git clone ${{ env.TEST_FRAMEWORK_REPO }}
50+ mkdir -p ${{ env.TEST_FRAMEWORK_DIR }}
51+ mv valkey-test-framework/src/* ${{ env.TEST_FRAMEWORK_DIR }}/
52+ rm -rf valkey-test-framework
4453 - name : Set up Python
4554 uses : actions/setup-python@v3
4655 with :
@@ -100,6 +109,13 @@ jobs:
100109 make distclean
101110 make -j SANITIZER=address SERVER_CFLAGS='-Werror' BUILD_TLS=module
102111 cp src/valkey-server ../binaries/${{ matrix.server_version }}/
112+ - name : Set up test framework
113+ run : |
114+ echo "Cloning test framework..."
115+ git clone ${{ env.TEST_FRAMEWORK_REPO }}
116+ mkdir -p ${{ env.TEST_FRAMEWORK_DIR }}
117+ mv valkey-test-framework/src/* ${{ env.TEST_FRAMEWORK_DIR }}/
118+ rm -rf valkey-test-framework
103119 - name : Set up Python
104120 uses : actions/setup-python@v3
105121 with :
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ tests/.build
44__pycache__
55test-data
66.attach_pid *
7+ tests /valkeytests *
Original file line number Diff line number Diff line change 5757 cp src/valkey-server ../binaries/$SERVER_VERSION /
5858fi
5959
60+
61+ TEST_FRAMEWORK_REPO=" https://github.com/valkey-io/valkey-test-framework"
62+ TEST_FRAMEWORK_DIR=" tests/valkeytests"
63+
64+ if [ -d " $TEST_FRAMEWORK_DIR " ]; then
65+ echo " valkeytest found."
66+ else
67+
68+ echo " Cloning test framework..."
69+ git clone " $TEST_FRAMEWORK_REPO "
70+ mkdir -p " $TEST_FRAMEWORK_DIR "
71+ mv " valkey-test-framework/src" /* " $TEST_FRAMEWORK_DIR /"
72+ rm -rf valkey-test-framework
73+ fi
74+
6075REQUIREMENTS_FILE=" requirements.txt"
6176
6277# Check if pip is available
Original file line number Diff line number Diff line change @@ -130,4 +130,4 @@ def test_rdb_restore_non_bloom_compatibility(self):
130130
131131 assert self .server .num_keys (client = new_client ) == 1
132132 assert new_client .get ("string" ) == b"val"
133- new_server .exit ()
133+ new_server .exit ()
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments