Browse Source

[Docs] fix test commands in CONTRIBUTING.md

Wojtek Porczyk 4 years ago
parent
commit
56203eced6
1 changed files with 8 additions and 4 deletions
  1. 8 4
      CONTRIBUTING.md

+ 8 - 4
CONTRIBUTING.md

@@ -120,15 +120,15 @@ One can run tests manually:
 PYTHONPATH=path/to/graphene/Scripts
 PAL_LOADER=path/to/pal-Linux
 export PYTHONPATH PAL_LOADER
-python3 -m pytest -v -rs test.py
+python3 -m pytest -v -rs test_pal.py
 ```
 
 It is also possible to run subset of tests:
 
 ```sh
 # after env export
-python3 -m pytest -v -rs test.py::TC_01_Bootstrap
-python3 -m pytest -v -rs test.py::TC_01_Bootstrap::test_100_basic_boostrapping
+python3 -m pytest -v -rs test_pal.py::TC_01_Bootstrap
+python3 -m pytest -v -rs test_pal.py::TC_01_Bootstrap::test_100_basic_boostrapping
 ```
 
 The shim unit tests work similarly, and are under LibOS/shim/test/regression
@@ -144,5 +144,9 @@ To run these tests:
 ```Bash
 cd LibOS/shim/test/apps/ltp
 make
-./syscalls.sh
+make ltp.xml
+# or
+make SGX=1 ltp-sgx.xml
+# or manually run the tool with options you need:
+./runltp_xml.py -c ltp.cfg -v src/runtest/syscalls
 ```