From 07a5129d76f6453333ce05c414a6f25576c54380 Mon Sep 17 00:00:00 2001 From: cpwu Date: Thu, 6 Jan 2022 16:57:23 +0800 Subject: [PATCH] [TD-12532] (other):Modify the operation steps of installing third-party libraries when using the test framework --- tests/How-To-Run-Test-And-How-To-Add-New-Test-Case.md | 5 ++--- tests/requirements.txt | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 tests/requirements.txt diff --git a/tests/How-To-Run-Test-And-How-To-Add-New-Test-Case.md b/tests/How-To-Run-Test-And-How-To-Add-New-Test-Case.md index 247a7f6d7d..d917291b3b 100644 --- a/tests/How-To-Run-Test-And-How-To-Add-New-Test-Case.md +++ b/tests/How-To-Run-Test-And-How-To-Add-New-Test-Case.md @@ -8,10 +8,9 @@ 3. mkdir debug; cd debug; cmake ..; make ; sudo make install -4. pip install ../src/connector/python ; pip3 install - ../src/connector/python +4. cd ../tests && pip3 install -r requirements.txt + -5. pip install numpy; pip3 install numpy fabric2 psutil pandas(numpy is required only if you need to run querySort.py) > Note: Both Python2 and Python3 are currently supported by the Python test > framework. Since Python2 is no longer officially supported by Python Software diff --git a/tests/requirements.txt b/tests/requirements.txt new file mode 100644 index 0000000000..2128c1d7fd --- /dev/null +++ b/tests/requirements.txt @@ -0,0 +1,5 @@ +../src/connector/python +numpy +fabric2 +psutil +pandas \ No newline at end of file -- GitLab